[-] [email protected] 1 points 2 years ago

The Elm compiler

[-] [email protected] 1 points 2 years ago

What the actual fuck. It's a made up story I'm sure.

[-] [email protected] 1 points 2 years ago

It's a toy example. In that case, the solution is to assign the expression to a variable to compute its result upfront.

[-] [email protected] 1 points 2 years ago* (last edited 2 years ago)

There are still obvious things the BC cannot get. For example:

struct Foo;

impl Foo {
    fn num(&mut self) -> usize { 0 }
    fn index(&mut self, _i: usize) { }
}

let foo = Foo;
foo.index(foo.num()); //error
[-] [email protected] 1 points 2 years ago

It's like someone has pooped on my screen.

[-] [email protected] 1 points 2 years ago

Htmx is a godsend for that. You actually write HTML while having AJAX easily.

[-] [email protected] 1 points 2 years ago

Funny, I think C++ is literally the worst language to learn programming. I would go with JS or OCaml at first, then Rust if they need manual memory management.

[-] [email protected] 1 points 2 years ago

In my company, we use zenhub on top of github, but I'm not sure it's worth it.

[-] [email protected] 1 points 2 years ago* (last edited 2 years ago)

I'd argue the macros are quite bad:

  • Declarative macros are hard to read, same level as regex
  • Procedural macros require to write a new crate with a ton of boilerplate, sometimes for stuff conceptually really simple (like hash is: apply the same function to every field, then compose the results)

I agree, though, that it's better there're here than nothing. It's just that there is to be a better solution.

[-] [email protected] 1 points 2 years ago* (last edited 2 years ago)

Sorry for the late answer. Those days, I'm interested in Ante. The language creator has some novel ideas for a non-GC memory safe language. And the compiler is written in Rust. It's not finished at all tho.

[-] [email protected] 1 points 2 years ago

As said my sibling comment, I use KDE connect with GNOME shell

[-] [email protected] 1 points 2 years ago

You will wait for at least a year. There still is no support for my M2 laptop.

view more: ‹ prev next ›

hairyballs

0 post score
0 comment score
joined 2 years ago