HackerLangs
TopNewTrendsCommentsPastAskShowJobs

afiori

3,726 karmajoined 7 lat temu
This about had been empty long enough; I will use it for a book recommendation: Unsong, by Scott Alexander

http://unsongbook.com/

My guess is it will be the weirdest book you will have ever read.

If it is not, please, I am curious about what is your weirdest book :)

Submissions

What Is Man, That Thou Art Mindful of Him?

astralcodexten.com
1 points·by afiori·9 miesięcy temu·0 comments

comments

afiori
·przedwczoraj·discuss
To be pedantic the ad hominem fallacy is about trying to deny an argument by attacking the author, so in a discussion about zig Vs rust if Andrew isn't trying to enter the discussion and just argue "that guy was stinky, glad he is gone" is not really an ad hominem, just not classy let's say.
afiori
·przedwczoraj·discuss
Just use unsafe then
afiori
·przedwczoraj·discuss
I agree with your point, but for completeness:

> How is not having to mark your unsafe code as unsafe a good thing?

The problem with unsafe code in Rust is that IIRC nobody actually figured out yet the "rules" of unsafe i.e. which invariants you can stretch and which can cause UB. My (not super up to date) understanding is that this is an active area of research and progress is being made and also that in practice there are many well understood usages.

In short unsafe rust is somewhat worse than C++ as the boundaries of UB are less well understood/defined
afiori
·6 dni temu·discuss
A tool to do automatic migrations eg react often publ
afiori
·12 dni temu·discuss
This looks like something only a libertarian would like
afiori
·12 dni temu·discuss
Well people that have been hearing of the slippery slope fallacy their whole life might end up biased against such an approach
afiori
·12 dni temu·discuss
Regexes should have been a structured language not an hodgepodge of DSLs
afiori
·16 dni temu·discuss
The issue is that many modern DOM APIs assume js semantics and types (eg promises, iterables, etc) so you need to "reimplement" some js semanthic in wasm; sorta like how apple added a few custom instructions on the M1 chip specifically for the type of floating point operation required by js.
afiori
·16 dni temu·discuss
Which makes me think that I have never heard of signed images/artefacts
afiori
·21 dni temu·discuss
I understand ai hate but I would rather avoid a future where everybody talks in purposely weird and unstructured sentences to avoid being similar to ai

By necessity a lot of people write very similarly to how llm do
afiori
·24 dni temu·discuss
This does not address how much the JWT header is a security footgun (eg you can inline remote keys into the header). if you are doing something simple you can disable all "advanced" features and be pretty safe but if you are doing something a bit more complex it is not so easy.

The only case where JWTs are actually useful is when the producer and consumer do not share a DB (eg OAuth/OIDC, iot deployments, heavy microservice architectures) otherwise a good cached session store should handle well up to a few orders or magnitude below google scale.
afiori
·26 dni temu·discuss
Conceptually maybe you can compile flash to SVG+js but this has nothing to do with the point. Many insist (I have no direct experience) that the flash ecosystem (especially the editor) was and is unsurpassed as a publishing platform for interactive experiences.

Today with the current focus on mobile+low latency+e-commerce optimizations flash would probably have shown a lot of limitations, yet JavaScript, SVG, canvas, http webgl etc still fail to provide a "competitor" to what flash used to be.

The web simply went in a different direction, one that left many unsatisfied
afiori
·30 dni temu·discuss
oh no, a new edge case tech has not replace the most popular tech stack ever, yet another failure after webGL
afiori
·30 dni temu·discuss
Sure, figma is 6% of the internet
afiori
·30 dni temu·discuss
Asking for 0% js 100% wasm website is like wanting a C-free linux distro
afiori
·30 dni temu·discuss
Java's vm does not start in milliseconds nor has dozen independent implementations in every ecosystem
afiori
·30 dni temu·discuss
Because Java was doing nothing similar, a better comparison would be .NET CLR that actually tried to be a decent compilation target.

Also security, Java has reflection so you cannot reliably sandbox java libraries
afiori
·w zeszłym miesiącu·discuss
This comment starts with a no, but agrees with the parent...
afiori
·w zeszłym miesiącu·discuss
Long term archival is often also about long term support and there just going with the most popular/supported ones might be a safer bet, eg in the extreme case if I wanted to save some digital photos in a time capsule I would likely choose PNG and JPEG
afiori
·2 miesiące temu·discuss
Maybe even split it into a set of small reusable coherent utility classes