HackerTrans
TopNewTrendsCommentsPastAskShowJobs

afiori

3,726 karmajoined vor 7 Jahren
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·vor 9 Monaten·0 comments

comments

afiori
·vorgestern·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
·vorgestern·discuss
Just use unsafe then
afiori
·vorgestern·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
·vor 6 Tagen·discuss
A tool to do automatic migrations eg react often publ
afiori
·vor 12 Tagen·discuss
This looks like something only a libertarian would like
afiori
·vor 12 Tagen·discuss
Well people that have been hearing of the slippery slope fallacy their whole life might end up biased against such an approach
afiori
·vor 13 Tagen·discuss
Regexes should have been a structured language not an hodgepodge of DSLs
afiori
·vor 17 Tagen·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
·vor 17 Tagen·discuss
Which makes me think that I have never heard of signed images/artefacts
afiori
·vor 22 Tagen·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
·vor 24 Tagen·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
·vor 26 Tagen·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
·letzten Monat·discuss
oh no, a new edge case tech has not replace the most popular tech stack ever, yet another failure after webGL
afiori
·letzten Monat·discuss
Sure, figma is 6% of the internet
afiori
·letzten Monat·discuss
Asking for 0% js 100% wasm website is like wanting a C-free linux distro
afiori
·letzten Monat·discuss
Java's vm does not start in milliseconds nor has dozen independent implementations in every ecosystem
afiori
·letzten Monat·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
·letzten Monat·discuss
This comment starts with a no, but agrees with the parent...
afiori
·letzten Monat·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
·vor 2 Monaten·discuss
Maybe even split it into a set of small reusable coherent utility classes