Tubbles

joined 2 years ago
[–] Tubbles@lemmy.world 15 points 2 years ago

Its like the C of web, it'll be a hundred years to kill it

[–] Tubbles@lemmy.world 1 points 2 years ago (1 children)

Another way could be to run that through a compiler with optimization activated, and then decompile the resulting binary back to code. But if you want to optimize hot code then usually mathematical reduction is seldomly wherein the problem lies

[–] Tubbles@lemmy.world 2 points 2 years ago (1 children)

I can highly recommend you have a look at some HDL languages, eg Verilog can look roughly like your example and synthesizes down to logic elements

[–] Tubbles@lemmy.world 7 points 2 years ago (5 children)

The most low level languages, such as C, compiles down to CPU instructions, which still is way above logic gates. The CPU in turn reads the instructions and controls the computer to in a way "simulate" what could be described as a boolean expression -- at every CPU clock cycle. The next cycle the permutation of all control signals and computer compinents will be different. I highly doubt any programming language implementation has an IR that resembles what you are looking for, including mathematica. The closest you get is probably HDLs but then you need to do all the mathing yourself

[–] Tubbles@lemmy.world 1 points 2 years ago

Another newcomer is Amaranth HDL which might be more approachable and transpiles to VHDL

[–] Tubbles@lemmy.world 8 points 2 years ago (1 children)

When I read this type of projections, be it energy, money or whatever, it is always the next year that is exploding in volume

[–] Tubbles@lemmy.world 9 points 2 years ago (2 children)

I find dev.to nice

[–] Tubbles@lemmy.world 4 points 2 years ago

I have the totally opposite opinion, since script writing is where I have a proper text editor with templates and snippets and other helpful tools. Its interactive commands at the terminal that I want to behave as much "human" as possible so I don't have to type so much

[–] Tubbles@lemmy.world 2 points 2 years ago (1 children)

What trackpad is that? Really neat build!

[–] Tubbles@lemmy.world 39 points 2 years ago* (last edited 2 years ago) (1 children)

I agree, we need to rewrite it in rust

[–] Tubbles@lemmy.world 1 points 2 years ago

Instead of using xmodmap et al I have opted for using 'english international' as keyboard layout and relying on altgr layer to reach the swedish letters I need. Unless I am mistaken the french letters should be there as well. One big benefit of that is its available and works the same for both windows and linux

view more: next ›