HNHacker News
TopNewBestAskShowJobs

ergl

629 karma · joined August 1, 2014

Contact at github.com/<HN username>
submissionscomments
ergl··on Senators introduce bipartisan antitrust bill to promote app store competition
Yes it does. Does the government have control over the fact that cars must have airbags and seatbelts?
ergl··on Some Britons crave permanent pandemic lockdown
Results are here: https://www.ipsos.com/sites/default/files/ct/news/documents/...

"To what extent, if at all, would you support or oppose each of the following rules being in place permanently, regardless of the risk from COVID-19?"

"Having a curfew against leaving home after 10PM without a good reason": 19%

ergl··on Getting to know logical clocks by implementing them
You can implement a vector clock with physical time: instead of a lamport clock per node entry, make the nodes exchange messages with their physical timestamp, and use that as the value for the different entries. As long as the physical clock of any given node advances monotonically (this can be configured for NTP), you'll be safe.
ergl··on Pijul – Datacenter on Fires
> Also, "what I wrote" is just a small script to extend my previous setup (which used PostgreSQL) to replicae.

I wouldn't discount your work, etcd is very stable, so it probably works very well for your use case.

As for using Cockroachdb, I guess it depends on your use cases: with what you have now, it seems like local reads are able to read stale data (someone updates x at the leader, while you read locally), but it might not be a problem for Nest. Cockroach will always try to read the latest version of the data, so unless you need serializability, the cost of switching might not be worth it.

ergl··on Pijul – Datacenter on Fires
Re: the part about using your own home-grown leader replication on top of Postgres: it seems it focuses on electing a new leader if it fails: do I understand that all database traffic gets routed to the leader? Do you serve read-only queries from the local replica?

The described setup looks like something that cockroachdb would be able to handle nicely, which perhaps is a little more battle-tested than what you wrote.

ergl··on Erlang/OTP 24 highlights
HiPE support is getting wonky, I don't know if many people use it, and I'm not sure it supports the latest OTP versions.

The Erlang folks are looking for maintainer volunteers to continue working on HiPE support, they don't have the manpower right now to maintain it themselves.

ergl··on Gleam 0.15
Curious, how are you planning to translate processes to the browser?
ergl··on Apple AirDrop shares more than files
The issue with phone number hashes has been known for a while. See for example this post by Project Zero[0] where they leverage the issue (search for "Enabling AWDL") to remotely activate airdrop.

[0]: https://googleprojectzero.blogspot.com/2020/12/an-ios-zero-c...

ergl··on IT companies warn in open letter: EU wants to ban encryption
This is already done extensively: https://en.wikipedia.org/wiki/PhotoDNA and https://blog.cloudflare.com/the-csam-scanning-tool/
ergl··on Incident: American B38M near Nassau on Mar 29th 2021, pitch trim issue/failure
In more profane terms: https://news.ycombinator.com/item?id=17733579
ergl··on Based Cooking
No need to guess, just check out the author's youtube channel[0], look at the thumbnails. It's /g/ tier "humor"

[0]: https://www.youtube.com/c/LukeSmithxyz/videos

ergl··on The Future of Group Messaging
Check out how Zulip does threads, it looks very similar to this. The main view shows a chronological list of posts along with its thread title, and you can click on one to show the entire thread as a normal chat. Even PMs show up in the feed interleaved with everything else.
ergl··on WhatsApp and most alternatives share the same problem
> that's the one he didn't like to be ridiculed over and asked the organizers to take down.

This is repeated every single time, when the reality is that Moxie asked the organizers _in advance_ not to record the talk[0]:

> I just prefer to present something as part of a conversation that’s happening in a place, rather than a webinar that I’m broadcasting forever to the world. I have less faith in the internet as a place where a conversation can happen, and the timelessness of it decontextualizes.

[0]: https://twitter.com/moxie/status/1211427007596154881

ergl··on The Fantasy of Opting Out
Needs a (2019) in the title
ergl··on Changes to LastPass Free
I've been using macpass for a while on osx, and it works pretty well (and looks better than keepassxc): https://macpassapp.org/
ergl··on Pony – High-Performance Safe Actor Programming
Zigler looks interesting! I've given it a look before, would be very nice if it could support Erlang too, but I imagine Elixir macros are doing a lot of work for you.

I think the biggest hurdles when writing NIFs are:

* Interacting with Erlang terms from C/Rust/Zig. Admittedly both zigler and rustler help in this regard, by wrapping Erlang terms. Pony is able to expose raw pointers and structs to C, which I've felt easier to work with.

* Dealing with the Beam's preemptive scheduler. This isn't as big of a problem now with dirty schedulers but still a mismatch compared to normal Erlang code. Pony uses a cooperative scheduler everywhere, so you'll already be used to splitting long tasks in different steps by the time you need to use the FFI, which makes the transition easier.

ergl··on Pony – High-Performance Safe Actor Programming
One thing that reference capabilities allow you to do is pass data between actors without copying. Erlang is very eager in copying almost everything you put in a message to a process (with the expection of big binaries, etc).

Whether this is has a big impact on running systems remains to be seen, Erlang is very good at quickly collecting data.

Another thing that I would say Pony has that Erlang doesn't is an easy FFI mechanism. You can write NIFs for Erlang, but in my experience writing native code or wrapping C libraries has been much easier in Pony.

ergl··on Pony – High-Performance Safe Actor Programming
We do have an online playground! You can try it here: https://playground.ponylang.io/

It's linked from the page, but we should make it more obvious.

ergl··on Pony – High-Performance Safe Actor Programming
Occasional Pony committer here. You're right, and improving how errors are handled for socket operations has been in my mind for a while.

If you have used it and have any ideas on what you'd like to see there, feel free to drop by Zulip!

ergl··on Ordered Key-Value Stores
I'm not entirely sure about what you mean, and I'm not terribly familiar with TiKV.

In general, a single node partition will use ordered storage. At a higher level (partitions/shards), you use either key ranges or hashing to route keys to partitions: https://tikv.org/deep-dive/scalability/data-sharding/

It seems TiKV uses range partitioning, so that's giving you the order across nodes.

ergl··on Ordered Key-Value Stores
See https://tikv.org/deep-dive/key-value-engine/introduction/. You can specify the storage engine, although all the available engines in that page order the keys: rocksdb allows prefix search, and both B and LSM trees naturally order keys.
ergl··on Ordered Key-Value Stores
There's almost no content in the linked article, but I'm confused at the sentence "there is none that meets all those requirements" taking into account the "software" link[0] at the end with plenty of examples. FoundationDB, TiKV, or any variation of RocksDB / LevelDB tend to include these features.

[0]: https://hyper.dev/81aabee4001a47bf9c8bdf4475201ba7.html

ergl··on It’s dangerous to think humans have a destiny outside Earth
I think the article is both too simplistic and too outside HN's regular ideas regarding space, science and progress, which makes it easy to see how it was received as it was.

As you say, there's a much more nuanced way of explaining the parallels between space colonization and mythology. Another common trope you can read in these discussions is the "myth of limitlessness":

In this way, modern technology conveys an ideology of limitlessness by offering itself as a way of overcoming all manner of limits, chiefly those that arise out of our being situated in the world as embodied creatures. But cultural and moral boundaries also yield to modern technology. At every turn, we tend to choose the tools, devices, and techniques that allow us to act beyond or irrespective of the limitations of place and time that have historically conditioned the texture of human existence. At the far end of this tendency we encounter the transhumanist disdain for the human body, otherwise and unaffectionately designated our meat sacks.

– https://theconvivialsociety.substack.com/p/the-convivial-soc...

ergl··on Mobilizon – A free, federated tool for events and groups
This should get you started: https://www.eff.org/deeplinks/2020/04/eff-other-nonprofits-a...
ergl··on Unexpected, Useless, and Urgent, or What RSS Gets Right
He must be using a different RSS than me, because RSS for me is another endless feed.

If the answer is "you're not curating the list of people you follow well enough", then I don't see how RSS is different than any other network. Re: Twitter, is very common to hear people say "You have to curate your feed!", or "You have to use lists!". RSS is the same, if you subscribe to a handful of personal pages, then RSS will be nice. If you use RSS to subscribe to magazines, you're going to get a big list of articles. The same applies to FB or Twitter.

ergl··on The ‘Caspian Sea Monster’ rises from the grave
Alaska is only 55 miles (88km) from Russia.
ergl··on “Assault on Reason” Endangers Democracy (2008)
David Foster Wallace 1990's E Unibus Pluram also digs into this a bit, and also talks about the influence of a possible future smartphone (taken from a proposal by George Gilder):

The downside of TV's big fantasy is that it's just a fantasy. As a special treat, my escape from the limits of genuine experience is neato. As my steady diet, though, it can't help but render my own reality less attractive, render me less fit to make the most of it, and render me dependent on the device that affords escape from just what my escapism makes unpleasant.

[...]

My real dependency is on the fantasies and the images that enable them, and thus on any technology that can make images fantastic. Make no mistake. We are dependent on image-technology; and the better the tech, the harder we're hooked.

[...]

An exponential surge in the mass of televisual images, and a commensurate increase in my ability to cut, paste, magnify, and combine them to suit my own fancy, can do nothing but render my interactive [telecomputer] a more powerful enhancer and enabler of fantasy. [...] . Insights and guides to human value used to be among literature's jobs, didn't they? But then who's going to want to take such stuff seriously in ecstatic post-TV life, with Kim Basinger waiting to be interacted with?

– https://jsomers.net/DFW_TV.pdf

ergl··on Bottlenecked on Haskell's Text Library
Not that I'm aware, although I spotted this one on github: https://github.com/mikea/cpp-stream-fusion, based on a paper discussed at the time on HN: https://news.ycombinator.com/item?id=5507204

Stream fusion (or deforestation, in general) is useful in languages that encourage function composition. For that, functions must receive and return a value that can be composed together. In my experience, languages in the style C or C++ encourage functions that modify the argument in place (caller supplies their own buffer, for example), which bypasses the problem of creating intermediate copies of the final result.

ergl··on Zoom Rolling Out End-to-End Encryption Offering
The same that prevents Whatsapp from doing the same: trust.
ergl··on Faith in government declines when mobile internet arrives
Authority rests on information control. High status roles generally depend on access to and control over the dominant communication channels of the time.

[...]

Of all social roles, those of hierarchy are affected most by new patterns of information flow. The loss of information control undermines traditional authority figures. Further, because information control is an implicit rather than an explicit aspect of high status, the changes in hierarchy are surrounded by confusion and despair.

[...]

Many Americans are still hoping for the emergence of an old-style, dynamic "great leader." Yet electronic media of communication are making it almost impossible to find one. There is no lack of potential leaders, but rather an overabundance of information about them. The great leader image depends on mystification and careful management of public impressions. Through television, we see too much of our politicians, and they are losing control over their images and performances. As a result, our political leaders are being stripped of their aura and are being brought closer to the level of the average person.

– From Joshua Meyrowitz's No Sense of Place, 1989

← PreviousPage 5 of 10Next →