HackerLangs
TopNewTrendsCommentsPastAskShowJobs

xnacly

560 karmajoined 4 anni fa
website: xnacly.me

“Arguing that you don’t care about the right to privacy because you have nothing to hide is no different than saying you don’t care about free speech because you have nothing to say.” ~ Edward Snowden

Submissions

A go library for interacting with translate.kagi.com

github.com
1 points·by xnacly·19 ore fa·0 comments

Revisiting and Optimising go-iso8601-duration

xnacly.me
2 points·by xnacly·3 mesi fa·0 comments

Building the Worst Vi Emulation for My Mail Client

xnacly.me
3 points·by xnacly·5 mesi fa·0 comments

Poking holes into bytecode with peephole optimisations

xnacly.me
37 points·by xnacly·6 mesi fa·2 comments

The Manchester Garbage Collector and purple-garden's runtime

xnacly.me
23 points·by xnacly·6 mesi fa·0 comments

Go port of A Fast 64–Bit Date Algorithm, based on benjoffe.com/fast-date-64

github.com
2 points·by xnacly·7 mesi fa·0 comments

Building a Minimal Viable Armv7 Emulator from Scratch

xnacly.me
75 points·by xnacly·8 mesi fa·21 comments

Porting a Segmented List from C to Rust

xnacly.me
9 points·by xnacly·9 mesi fa·0 comments

comments

xnacly
·3 mesi fa·discuss
Well it does suck for a huge list of reasons but specifically disqualifying for being the lingua franca would be it being controlled by microsoft
xnacly
·3 mesi fa·discuss
> We write a lot of TypeScript at Cloudflare. It’s the lingua franca of software engineering.

This scares me more than Im able to admit, typescript sucks and in my opinion its way worse than the more commonly used lingua franca of computing, which I would attribute to C. At least C can be used to create shared objects i guess?
xnacly
·4 mesi fa·discuss
Each syscall taking 15ms on top of the normal considered costly time taken for context switching to the kernel seems excessivly slow, no?
xnacly
·5 mesi fa·discuss
Well i do use banking and netflix on graphene os on my pixel 8a and everything works perfectly
xnacly
·6 mesi fa·discuss
Hi, no it doesnt, this example of course breaks using temporary registers used after the optimisation. But thats why peephole is a fallback to ir optimisation, since they are only local.

I honestly didnt think of this possibility while building the optimisation. Since constant folding is done as an ir pass i will remove the peephole pass, thanks for noticing :)
xnacly
·6 mesi fa·discuss
I love jetbrains mono, together with go mono my favourite fonts
xnacly
·6 mesi fa·discuss
Im sorry i forgot to highlight the braces around (2+3)*(4-1);

Either way the parser isnt implemented yet and all ast examples for the compiler are hardcoded
xnacly
·6 mesi fa·discuss
xnacly.me
xnacly
·6 mesi fa·discuss
Assembly requires way more work than compiling to, say C. Clang and gcc do a lot of the heavy lifting regarding optimisation, spilling values to the stack, etc
xnacly
·7 mesi fa·discuss
No clue what that is, I dont talk to hr
xnacly
·7 mesi fa·discuss
what a weird and mean comment, do better
xnacly
·7 mesi fa·discuss
the rust example is so far off being useful and file io seems completly dumb in this context
xnacly
·7 mesi fa·discuss
This, lisp is perfect for representing arbitrary data, nesting is just another sexpr, easy to produce, easy to parse and easy to debug / reason about
xnacly
·8 mesi fa·discuss
Its winter, it takes a literal second to fade out
xnacly
·8 mesi fa·discuss
I think rust macros could shine for this usecase, definitely on my TODO list
xnacly
·8 mesi fa·discuss
The snowflakes do vanish once you scroll down even a single pixel
xnacly
·9 mesi fa·discuss
Well it does, thats why i didnt include it
xnacly
·9 mesi fa·discuss
Same here, the website seems to be working fine on mobile tho
xnacly
·2 anni fa·discuss
I feel like no other embedded scripting language will ever surpass lua. Neovim, roblox and all my projects that needed scripting support use lua, its my first choice.