this post was submitted on 26 Jul 2024
276 points (95.4% liked)

Programmer Humor

31969 readers
930 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
276
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 

What does your sleep paralysis demon ask you?

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 27 points 1 month ago (4 children)

Yes. Markup-Languages are a subset of Programming-Languages. Turing completness doesn’t matter as things like magic the gathering and habbo hotel are Turing complete

[–] [email protected] 31 points 1 month ago (2 children)

I am markdown and latex programmer.

Idk it just feels wrong.

[–] [email protected] 5 points 1 month ago

If you can write a moderately complex math equation in tex on the first try, you’re a programmer in my book.

[–] [email protected] 2 points 1 month ago

idk css feels just as frustrating

[–] [email protected] 10 points 1 month ago

So Habbo Hotel is a programming language.

[–] [email protected] 4 points 1 month ago (1 children)

I feel like programming language produces programs, and makeup languages formatted documents.

I wouldn't consider a formatted document to be a program, so I don't consider a markup language to be a programming language.

Doesn't make it less valuable, though

[–] [email protected] 2 points 1 month ago (1 children)

ACKSHUALLY ... markup languages do not produce a formatted document. They define semantic elements of the document. The formatting is done by the compiler (whatever it is in the individual context) based on styles defined by a styling language.

[–] [email protected] 1 points 1 month ago

That's true! Although many people use makeup to do styling using the default styles... Which is... Not great.

But regardless I think my point still holds, it's not providing instructions for a machine, it's the data the instructions act on. But the difference between data and instructions is a blurry one

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago)

'This markup language isn't even as capable as Habbo Hotel, but it counts anyway because I just called it a programming language.'

There is a literal hierarchy of syntaxes which are recognized by different categories of machine. Programs require a Turing machine. Anything lesser - in a subset like pushdown automata or finite-state machines - doesn't need a proper computer. So it's not a program.

[–] [email protected] 11 points 1 month ago (6 children)
[–] [email protected] 10 points 1 month ago (1 children)

idk it seem nobody has an answer. Can we just call it "mid-level"?

[–] [email protected] 5 points 1 month ago

Yes, es soon you start pointer arithmetic you dig your own grave. Hence low level

[–] [email protected] 2 points 1 month ago

Not when it was invented, no. Compared to today's stack-phobic languages? Certainly.

[–] [email protected] 1 points 1 month ago

I mean idfk how you’re planning on calling a.out without an even, stronger, lower-level language like Bash 3.

[–] [email protected] 1 points 1 month ago (1 children)

I'm writing an NES game in C and struggling with some nonsense that'd be trivial in ASM, so I'm recently inclined to say yes.

[–] [email protected] 1 points 1 month ago (1 children)

Can you just drop to assembly for what you want to do? Gnu compilers even have inline assembly, but with any compiler you should at least be able to built a separate, assembly, object file.

[–] [email protected] 1 points 1 month ago

I can and have, and it's still a tremendous pain in the ass to launder the addresses for labels. The hottest loop in the game draws an arbitrary span of the same tile. It should be trivial to do a jump table - to grab an address from an array and go there. 13 tiles? goto jump[13]. (Or really some stack / return shenanigans, because the 6502 is odd.) But if there's any way to get cc65 to shove the location of an instruction into an array, I haven't found it.

[–] [email protected] 1 points 1 month ago

clearly not, but it is low-er level that other stuff

[–] [email protected] 11 points 1 month ago (1 children)

It's a markup language, not a programming language.

[–] [email protected] 6 points 1 month ago (12 children)
load more comments (11 replies)
[–] [email protected] 10 points 1 month ago (2 children)
[–] [email protected] 6 points 1 month ago* (last edited 1 month ago)

Taco according to the cube rule

[–] [email protected] 3 points 1 month ago
[–] [email protected] 9 points 1 month ago (1 children)

Why does a demon need a moustache?

[–] [email protected] 9 points 1 month ago (2 children)
[–] [email protected] 7 points 1 month ago (1 children)
[–] [email protected] 5 points 1 month ago

So, if he shaves, would that makes him neutral? Good?

[–] [email protected] 2 points 1 month ago

I mean that's what it asks me 😆

[–] [email protected] 7 points 1 month ago (2 children)

You can't write a program in HTML.

End of discussion.

[–] [email protected] 2 points 1 month ago (2 children)

programing languages arent use to make programs they are used to program machines which is exactly what u do with html.

[–] [email protected] 3 points 1 month ago

The "program" is the package of instructions that tell the machine what to do. The instructions are written in a programming language.

With a markup language, the markup is the input to a program (like a browser) that tells the machine what to do.

But I think it's not really boolean, it's a sliding scale. Especially with so many programming languages being interpreted or JIT compiled. I think it's less a programming language than many other programming-related things, but more of a programming language than, say, a slideshow.

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago)

they are used to program machines

Which HTML cannot do, because if it could, that would be called a program. That's what the word means.

HTML makes documents. It's a markup language. It's not even Turing-complete accidentally.

load more comments (1 replies)
[–] [email protected] 6 points 1 month ago

Does HTML or LaTeX or Markdown provide a computer instructions which are executed? I'm going to take the unpopular opinion and say they are programming languages.

[–] [email protected] 4 points 1 month ago

Is fondant a cake?

[–] [email protected] 2 points 1 month ago

Is Linux a operating system?

[–] [email protected] 1 points 1 month ago

37 comments so far and not one answer.

[–] [email protected] 1 points 1 month ago

Hyper Text Markup Language

A. Yes it's a language.

B. People who write HTML have been called Programmers for decades.

C. Are you writing in a kind of pseudo code that the computer is going to transform into another form? Yes.

I think the problem here isn't that HTML isn't a programming language. The problem is that we don't further classify programming languages.

There should be Platform Languages and Client languages.

HTML is most definitely a Client Language.

load more comments
view more: next ›