That was fast.
- 0 Posts
- 48 Comments
ANTLR is for writing parsers. You don’t need a new custom parser, just use an existing XML parser.
There are IDE extensions that show the diff of the entire PR locally without having to squash anything. So yes, it’s weird to reinvent a square wheel.
sim642@lemm.eeto
Programming@programming.dev•EBNF Grammar for ANSI C (+ Guide on reading EBNF)
1·2 years agoI am currently writing a C compiler, with my own backend (and hopefully, frontend) in OCaml.
But why write your own C frontend? It’s much more of a pain than people imagine. I maintain a C frontend implemented in OCaml (the project itself goes back 25 years) and it’s still not on par with GCC or Clang.
For any other language, sure, but C has so many “wonderful” features, starting with the lexer hack. Your grammar conveniently overlooks this issue but it’s something you’ll have to deal with to actually implement it. So it simply won’t be as nice as theory suggests.
sim642@lemm.eeto
Programming@programming.dev•If a parameter isn't used, what should I pass? - The Old New Thing
1·2 years agoYes, but with things like syscalls it’s easier to do this than require every high-level thing building on the syscall to be modified and recompiled. Very few people need to use such low-level APIs.
sim642@lemm.eeto
Programming@programming.dev•Mozilla will move Firefox development from Mercurial to Microsoft’s GitHub
4·2 years agoThis is the crucial detail that everyone is missing.
It’s the same as with the Linux kernel GitHub mirror.
sim642@lemm.eeto
Programming@programming.dev•Hacktoberfest 2023: My comeback to Open Source!
2·2 years agoI might be the minority who was affected by this but how they handled the physical goodies last year was the last straw for me. Unlike all the spammy contributions that rush to it, I didn’t rush creating some pointless PRs on the first day or whatever. My last PR finished its embargo period a few days before the end of October. They even sent out a congratulations email, but when I clicked the link and went to the website there wasn’t anything there. Only when I checked their discord, I saw others with the same confusion and someone semi-officially saying they might’ve run out. It’s obvious they didn’t even ever consider running out and had no system in place to handle that.
Other than that, some of the rules they introduced in recent years were also so detrimental to meaningful PRs even though they thought it’d motivate that, instead of spammy PRs. Clearly that didn’t work at all and actually had the opposite effect in some cases. It was a lot easier to get spammy PRs counted than meaningful ones.
I could rant in more detail about the latter if you’re interested, but I’ll refrain right now.
sim642@lemm.eeto
Programming@programming.dev•Hacktoberfest 2023: My comeback to Open Source!
2·2 years agoHacktoberfest.
sim642@lemm.eeto
Programming@programming.dev•Hacktoberfest 2023: My comeback to Open Source!
2·2 years agoI still do both (and did before), but now just don’t bother with Hacktoberfest.
sim642@lemm.eeto
Programming@programming.dev•Hacktoberfest 2023: My comeback to Open Source!
2·2 years agoNice that someone’s happy about it. As a long time open source contributor and maintainer, I gave up this year because it’s gone downhill.
sim642@lemm.eeto
World News@lemmy.ml•Ex-North Dakota lawmaker charged with traveling for sex with minor, receiving child sex abuse images
1·2 years agoHence the question…
sim642@lemm.eeto
World News@lemmy.ml•Ex-North Dakota lawmaker charged with traveling for sex with minor, receiving child sex abuse images
11·2 years agoFinally one person on Lemmy who can read… Apparently everyone else thinks I said pedophilia is fine lmao. My comment was only about the travel aspect.
sim642@lemm.eeto
World News@lemmy.ml•Ex-North Dakota lawmaker charged with traveling for sex with minor, receiving child sex abuse images
1·2 years agoSex with a minor is illegal regardless if you travel. That’s all I said…
sim642@lemm.eeto
World News@lemmy.ml•Ex-North Dakota lawmaker charged with traveling for sex with minor, receiving child sex abuse images
1·2 years agoSex with a minor is illegal regardless if you travel. That’s all I said…
sim642@lemm.eeto
World News@lemmy.ml•Ex-North Dakota lawmaker charged with traveling for sex with minor, receiving child sex abuse images
11·2 years agoSex with a minor is illegal regardless if you travel. That’s all I said…
sim642@lemm.eeto
World News@lemmy.ml•Ex-North Dakota lawmaker charged with traveling for sex with minor, receiving child sex abuse images
12·2 years agoSex with a minor is illegal regardless if you travel. That’s all I said…
sim642@lemm.eeto
World News@lemmy.ml•Ex-North Dakota lawmaker charged with traveling for sex with minor, receiving child sex abuse images
12·2 years agoSex with a minor is illegal regardless if you travel. That’s all I said…
Title gore: if we find a way, then what?