HNHacker News
TopNewBestAskShowJobs

afiori

3,756 karma · joined January 23, 2019

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 :)

submissionscomments
afiori··on JMAP for Calendars, Contacts and Files Now in Stalwart
Is der the same as ASN.1?
afiori··on MAML – A new configuration language
with multiple cursors its easier than any alternatives
afiori··on MAML – A new configuration language
super ugly but they work just like inline comments and so are super easy to use/nest/visually detect and such.

for example in css which does not have inline comments vscode fails to reliably comment a block of text.

for strings it is even worse as usually they use the same tokens for opening and closing which make everything more ambiguos

afiori··on MAML – A new configuration language
The best multiline strings are those where you can have proper indentations without having to guess how indentation is handled. bonus points for making nesting easy and making copy-pasting work without breaking indentation.

To my knowledge only Zig's multiline strings work this way

    const hello_world_in_c =
        \\#include <stdio.h>
        \\
        \\int main(int argc, char **argv) {
        \\    printf("hello world\n");
        \\    return 0;
        \\}
    ;
afiori··on User ban controversy reveals Bluesky’s decentralized aspiration isn’t reality
> I'm not sure I can follow your logic of having smaller communities not being decentralized "at user level" whatever you mean by that.

I am making a parallel to how email works. With my own domain I can configure my DNS to use various different email providers and move however I like.

This is both decentralized and federated.

I can also use someone else's domain like gmail.com but then I lose portability for ease of use.

This is federated but not centralized.

Or I can host my own email server on my own domain and deal with spam fileters, bots, etc. directly

This is decentralized but less federated.

Mastodon is federated between instances but each instance is entirely centralized. Even account portability requires admin consent IIRC.

Bluesky is trying to create a space where users can own their own data like you can own your email AND aiming for widespread adoption.

I am not particularly focused on Mastodon, it is just the only part of the fediverse with a modicum of adoption.

afiori··on User ban controversy reveals Bluesky’s decentralized aspiration isn’t reality
But this is completely not decentralized at the user level (especially IIUC mastodon users cannot export/import their data)

Bluesky is trying to build something as decentralized as email where still few providers dominate the market and most use few common ip/domain blacklists.

Yet it is one of the most decentralized protocols on the internet.

I a not saying Bluesky is a masterpiece but I think it is naive to hold it to a higher standard than email as a protocol.

If it fails due to little adoption then it is a fail, if it succeed there is a possibility of it becoming a good decentralized protocol

afiori··on What Julia has that Rust desperately needs
To me it looks like there is an obvious solution: a package should be able to issue an update to change its name.

Something like

- maintainers of package com.foo.pkg want to transfer it to com.bar.pgk

- com.bar creates their own pgk clone and marks it as a successor to com.foo.pkg (with a specific version)

- com.foo.pkg pushes an update with that specific version marked as superseded by com.bar.pgk

- package managers warn users at update time that a change in namespace happened and ask for consent

This could be extended to multiple forks to let the user choose

I feel it would work fine

afiori··on ProofOfThought: LLM-based reasoning using Z3 theorem proving
I feel like a better analogy is trying to rent a truck to move to a new apartment and after repeated failures of trucks not working they just hire a moving company for you to get you to leave
afiori··on A comparison of Ada and Rust, using solutions to the Advent of Code
I believe that the solution here is to make crashes "safe" eg with a supervisor process that should either never crash or be resumed quickly and child processes that handle operations like user inputs.

This together with the fact that the main benefit of range types is on the consumption side (ie knowing that a PositiveInt is not 0) and it is doable to use try-catch or an equivalent operation at creation time

afiori··on You Want Technology with Warts
More like it was moved to a library
afiori··on Python developers are embracing type hints
Now that python has a jit it could use them (not saying it should) for speculative compilation

My understanding is that currently python can collect type data in test runs and use it to inform the jit during following executions

afiori··on Python developers are embracing type hints
Except that typescript structural typing and features make it much easier to swim.

Also python is far less aggressive with lint warnings so it is much easier to make mistakes

afiori··on Python developers are embracing type hints
I don't understand, the parent says that not being C/C++ was a strong point and you give an counter example of a successful language that is not C/C++
afiori··on Python developers are embracing type hints
In the discussion of static vs dynamic typing solutions like typescript or annotated python were not really considered.

IMHO the idea of a complex and inference heavy type system that is mostly useless at runtime and compilation but focused on essentially interactive linting is relatively recent and its popularity is due to typescript success

I think that static typing proponents were thinking of something more along the lines of Haskell/OCaml/Java rather than a type-erased system a language where [1,2] > 0 is true because it is converted to "NaN" > "0"

afiori··on Thoughts on Cloudflare
The problem is that globally the concepts of monopolies being bad and antitrust regulations being good have in practice left the current zeitgeist
afiori··on Typst: A Possible LaTeX Replacement
There are already good html to pdf solutions, people using latex generally would not be satisfied with those
afiori··on Typst: A Possible LaTeX Replacement
The matter isn't really that something is possible only in latex, but that a department/university might have its own template/document class of arbitrary complexity that you would have to reimplement
afiori··on ChatControl: EU wants to scan all private messages, even in encrypted apps
This is a very naive view of surveillance and government trust.
afiori··on ChatControl: EU wants to scan all private messages, even in encrypted apps
In many EU countries neither head of state/government are elected then.
afiori··on Storing Unwise Amounts of Data in JavaScript Bigints
I wonder if it would be worth compressing the bigint as an Uint8Array

So app state -> bigint -> bytearray -> compressed bytearray -> bigint -> packed utf16 string.

Probably it would but help much

afiori··on Terence Tao: The role of small organizations in society has shrunk significantly
Then at worst progress on those would be slower.

At best we would have less monopolistic global powers trying to rent us everyone of our freedoms

afiori··on Libghostty is coming
My understanding is that this is not a philosophy at all, it is an incidental result of a bad set of misaligned incentives, where to be promoted you need to start something new or drive growth and post launch maintenance/growth is weighted much less
afiori··on Liberté, égalité, Radioactivité
If environmentalists had adopted nuclear as one of the renewables we would be burning a tiny fraction of the gas and coal we burn today.
afiori··on Liberté, égalité, Radioactivité
Is that a problem with nuclear or with building almost no new ones in the last 25 years?
afiori··on Testing is better than data structures and algorithms
and if you have too many threads running you could have slowdowns in the system that prevent the race condition from happening
afiori··on Cap'n Web: a new RPC system for browsers and web servers
that is terrible for performance and some operations have external requirements to be sync
afiori··on Cap'n Web: a new RPC system for browsers and web servers
Async/await became ergonomic and widespread only recently, I am sure there were async systems in the '80 but for example nodejs focus on non blocking I/O changed how a lot of people thought about servers and concurrency (whether node was first is almost irrelevant)

Often when something is discovered or invented is far less influential[1] than when it jumps on and hype train.

[1] the discovery is very important for historical and epistemological reasons of course, rewriting the past is bad

afiori··on Cap'n Web: a new RPC system for browsers and web servers
My limited knowledge of Cap'n'Proto (read the docs once years ago) server and clients can peer stubs, so that is server C receives a stub originated from server A via client B then C can try to call A directly.
afiori··on Is a movie prop the ultimate laptop bag?
I think many are failing to come up with a more likely explanation for

> For me, the ultimate laptop bag is one that looks nothing like a laptop bag; it should look like nothing special at all.

afiori··on New H-1B visa fee will not apply to existing holders, official says
they are saying that a H1B worker is in practice gonna get paid 100k less, cost 100k more to the employer, or something in between.
← PreviousPage 8 of 34Next →