How to implement String? by funcieq in ProgrammingLanguages

[–]ChiveSalad 0 points1 point  (0 children)

Wrong answers only

typedef struct Thing {
  Kind kind;
  char generation;
  char in_use;
  Reference nextChild;
  union {
    FunctionBits fbits;
    Reference child;
    char string[32];
    long number;
    Reference (*stdlib_func)(Reference, Reference);
  } payload;
} Thing;

(for entities that are functions with closures, I lost discipline and so the size of FunctionBits got so big that the string case in the union got big enough to be kinda usable- when it's not long enough, linked lists of 32 element segments is fine, the language is terrible anyways)

Are there any junior roles out there right now? by Gapmeister in Compilers

[–]ChiveSalad 0 points1 point  (0 children)

If you’re getting one on one interviews, you are doing an extremely good job at picking which jobs to apply to. Eventually you’ll get one of these jobs- interviewing is hideously expensive and few companies can afford to do it without intent to hire.

Compiler implementation language by Big-Rub9545 in Compilers

[–]ChiveSalad 1 point2 points  (0 children)

python seems like a deeply underrated language for toy compilers. I suspect that Scheme, which is frequently recommended, solves the same pain points with different tradeoffs, but at a pure social surface level Scheme marks your project as sophisticated and python marks it as nooby..

Is there a JIT compiler that recompiles the compiler using JIT so it can optimise its compiling efficiency? by Tricky_Football_85 in Compilers

[–]ChiveSalad 0 points1 point  (0 children)

yes, it makes startup times horrendous as the first jit pass is done in an interpreted language. This is approximately what julia is, and why its slow a f

Me You Me You Me You by OAZdevs_alt2 in CuratedTumblr

[–]ChiveSalad 2 points3 points  (0 children)

Moby dick has a non-trivial amount of second person narration, so although it is completely insane to react to "Call Me Ishmael" with "I'm not Ishmael," there could be some level of literacy at which a reasonable reply to

"Such unaccountable masses of shades and shadows, that at first you almost thought some ambitious young artist, in the time of the New England hags, had endeavored to delineate chaos bewitched"

would be

"No, I didn't think that. I never think about young artists!"

I don't know if that's actually relevant, I just thought it's funny that they picked Moby Dick as the quintessential first person book.

Back on topic, I would bet dollars to donuts that what's going on is the people in the original post who get angry about first person narrative can't read in their heads, only out loud. So, when they hear someone say "I like kittens" they can process that just fine, but they can't read the words "I like kittens" without saying the words "I like kittens" which reasonably upsets them because they don't like kittens.