r/ProgrammingLanguages • • Mar 01 '20

What's your favorite programming language? Why?

What's your favorite programming language? Why?

146 Upvotes

237 comments sorted by

View all comments

Show parent comments

4

u/chalk_nz Mar 02 '20

Not sure that counts as a language, because there's no grammar.

1

u/bullno1 Mar 03 '20

x86 binary, for example, is a language and it does have a grammar of how to encode instruction.

0

u/ChaiTRex Mar 02 '20

A language is just a set of strings. Byte strings are either in the language or they aren't.

1

u/chalk_nz Mar 02 '20

I can't say I've seen that definition, but it seems reasonable. The structure of the strings could loosely be considered a language.

0

u/[deleted] Mar 02 '20

[deleted]

3

u/chalk_nz Mar 02 '20

Oh ok, good to know. I considered a language to have semantics, as opposed to just being a set of tokens.

1

u/east_lisp_junk Mar 02 '20

Yeah, if we're just talking about the set of all bit strings with no semantics attached, then everybody who uses a conventional machine/filesystem is programming in binary.

OP should really specify the ISA and hardware.