fennecdjay

u/fennecdjay



r/githubcollab•

Gwion is a project I started 4 years ago to have some tool able to handle music related computations, eg algorithmic composition, real-time responsive machine learning stuff. I'm a musician and was educated for that purpose, therefore I had no former experience/education on programming. However I'm pretty stubborn and this project is very important to me, so I learned enough C to get it going. (I'd say it goes quite well, if we look at the benchmarks)

There already is a bunch a features I wanted, like function pointers, templating, enum ... and more.

Right now I'd like to have a team to discuss

116



r/conspiracy•

My mother references this guy from time to time, as one of the major pushers of 'Big Replacement'. Keep in mind this a view from France. I can't seem to find reliable info to make my mind on the subject, hence my question.

As a side note, I'm not buying on this 'Big Replacement' thingy, but I might be wrong.

016

r/Compilers•

I came upon Pratt lexers recently, which could enable more dynamicity in my language. That lead me to think that I should also rework the lexer. For now, I use a flex/bison generated grammar, with pieces of the preprocessor in both .l and .y files. I think it would be better to have a separate preproccessor, a hand-rolled lexer and a Pratt parser. Is there an algorithm that would best suit the preprocessing task?

33

HI everyone! I recently started thinking about adding tuples and pattern matching in my language. The base syntax is C-like (understand brackets and semicolons). I already have a few special primitives:

  • complex #(xxx) (internally 2 floats on the stack)
  • polar $(xxx) (idem)
  • Vec @(xxx) (internally 3 or 4 floats on the stack)

What would you use for tuples? {{xxx}} @{xxx} or anything else?

The language supports (scopable) switches, but I'd like to turn that into pattern matching, maybe

match (exp, other_exp, ...) {
  case 1, 2 -> some_func();
  default -> other_func();
}

What would you suggest?

925