Newest Questions

8 votes
1 answer
1k views

JavaScript has a handful of primitive types such as strings and numbers. However, when doing something fancy, it often wraps these types inside temporary objects in order to use object methods, a ...
Manngo's user avatar
  • 181
2 votes
2 answers
230 views

I recently read about PHP's true async RFC. The initial real life "picture" (unrelated to PHP or sync processing) that I imagined was a waiter in a restaurant. He/She/It works async, taking ...
marius-ciclistu's user avatar
5 votes
1 answer
1k views

There has been a proposal to start implementing some python optional extension modules in Rust. Eventually, the authors hope to make Rust a core dependency of the language. This creates some ...
mousetail's user avatar
  • 9,627
16 votes
1 answer
2k views

In C++, std::strong_ordering has four valid values, yet instead of being an enumeration, it is a class. This seems weird to me, for it prevents ...
ggZQX6YPvD's user avatar
16 votes
1 answer
2k views

I wrote a simple recursive‑descent parser for my DSL, but every edit in vscode forces me to reparse the whole file. Roslyn (the C# compiler) also uses a hand-written recursive-descent parser yet ...
Rui Gonçalves's user avatar
1 vote
2 answers
334 views

want to design a simple programming language for educational purposes. My goal is to understand the fundamentals of how a language works — defining syntax, grammar, and how code gets executed (...
Anna Cláudia Speck de Souza's user avatar
2 votes
2 answers
383 views

I'm working on a general-purpose language, and right now I'm working on its threading library. So far, I've worked out how to realize idiomatic critical sections - mutex objects that wraps values for ...
DannyNiu's user avatar
  • 467
5 votes
0 answers
152 views

Some operations are distributive over each other. (addition/multiplication, and/or, etc) That property can be used to optimize code with factoring. However, optimal factoring can be quite slow in the ...
ggZQX6YPvD's user avatar
10 votes
2 answers
546 views

I'm looking for examples of DSL's created for UI layout and appearance. There are lots of libraries/frameworks for defining UI's, like SwiftUI and Flutter, but I'm struggling to find actual languages. ...
Fff's user avatar
  • 101
3 votes
1 answer
537 views

So, obviously, the C compiler, when compiling gotos, before inserting the jump instruction, needs to insert ...
FlatAssembler's user avatar
-4 votes
3 answers
217 views

Did C++'s std::forward_list really need insert_after, emplace_after, ...
Dannyu NDos's user avatar
  • 1,485
14 votes
1 answer
3k views

So, WebAssembly has two types of blocks of code, block and loop. When you break with br or <...
FlatAssembler's user avatar
11 votes
4 answers
6k views

So, nearly all (or perhaps all) C-like languages require us to use curly brackets { and } when writing a do-while loop of more ...
FlatAssembler's user avatar
18 votes
2 answers
4k views

In a lot of languages (eg Java, C++, etc), you can use ++ and -- as increment/decrement operators. What was the origin of ...
Otakuwu's user avatar
  • 725
13 votes
6 answers
8k views

Why do optimizing compilers never offer backends in the source language itself? Isn't targeting the source language much easier than targeting assembly? Also, couldn't a source-to-source optimizer ...
ggZQX6YPvD's user avatar

15 30 50 per page
1
2 3 4 5
64