HNHacker News
TopNewBestAskShowJobs

kryptonomist

145 karma · joined June 19, 2019

Luzern/Zürich, Switzerland
submissionscomments
kryptonomist··on Web3? I have my DAOts
A winery could assign a token to each physical bottle, and lets its customers freely buy (winery is involved) and then exchange their tokens based on the supposed bottle value ups and downs (winery is not involved any more). Then, from time to time, they come to the winery to take back a real bottle from a token.

Admittedly, there is little to program, but we can imagine all sorts of auctions, games (tokens becoming playable items in a virtual world, but still exchangeable for real bottles), etc., around those tokens.

kryptonomist··on Collapse of international mobility a key factor behind wages growth
"The collapse of international mobility and therefore immmigration is a key factor behind wages growth acceleration in advanced economies."
kryptonomist··on Twelve Years of Go
To me, the greatest advantage of Go is the build time, which is almost instant. So you get the joy of programming like in Python/Js, being able to test very quickly your code, without having to deal with stupid errors coming from type mismatch or function parameters.

Plus, you get the performance of a compiled language, with a simple syntax. Sure, you get just slightly better results with C/C++/Rust, but then you deal with complicated OS level calls, memory and library deployment issues (problems fixed by Go). Yes, a few benchmarks show C#/Java almost as fast, but at the price of a highly optimized syntax not seen in any average programmer. An average guy get superb performance with Go without complications from day 1.

And absent object oriented features are quickly forgotten.

kryptonomist··on The Frenchman who pioneered the modern mercenary industry
And he died at 78 in his bed.

https://en.wikipedia.org/wiki/Bob_Denard

kryptonomist··on Jean-Paul Belmondo has died
Another fun fact, “That Man From Rio” (1964) had a "major influence" on “Indiana Jones” for Steven Spielberg, according to:

https://variety.com/2021/film/opinion/jean-paul-belmondo-dea...

kryptonomist··on Ask HN: Where can I live off 1k USD per month?
Almost anywhere in France, except in big cities.

Pros:

-you get a free healthcare coverage.

-cost of life is reasonable (again, outside of big cities where accomodation is expensive).

-internet connection is good and cheap.

-you will enjoy a few benefits after some paper work. Ex.: the RSA, which is around 500€ you get with very little conditions (not having any revenue, being at least for 3 months in France, having a regular visa, etc.).

-you can legally start to earn money by being declared as auto-entrepreneur, with very little paper work (also with a regular working visa, and with some revenue cap).

Cons:

-language: better find some friend who can speak the language, especially when dealing with the administration.

-check carefully where you settle beforehand, France is one of the most crime-prone country in Europe (https://ec.europa.eu/eurostat/statistics-explained/index.php...).

To be honest, I would not recommend it because of the last point.

kryptonomist··on Neutral Switzerland plans to buy dozens of US F-35 fighter jets
"Switzerland has chosen Lockheed Martin's F-35A Lightning II as its next-generation fighter jet, the government said on Wednesday, angering opponents who have pledged a new referendum to overturn what they dubbed an unnecessary "Ferrari" option."
kryptonomist··on Ask HN: Which stack for prototyping?
Backend: I would stick with Python, but modernized with some bit of dataclass and typings.

A very tempting alternative is Golang, where it's fast build time and light syntax makes it a good candidate for prototyping.

Also, I know many do not like it in this forum, but a document-oriented database such as MongoDb will save you a lot of time when dealing with json style documents.

Frontend: Here, I feel Angular can still deliver, once you have climbed the steep learning curve, the most important being to use a toolkit such as Bootstrap, which is a huge time-saver.

kryptonomist··on Simulating the PIN cracking scene in Terminator 2
Exactly. It was a bit discussed on HN a while ago: https://news.ycombinator.com/item?id=23027207
kryptonomist··on ORMs Are Backwards
After more than 10 years using those ORMs at work, in DotNet/Java worlds, my current opinion on that topic:

-the only project where ORM was worth was a simple backend admin project with many tables and very little load: ORM avoids having to write tedious simple CRUD queries.

-for recruiters, it feels more simple to find people with language X than to find people with language X + SQL. OK but ...

-to understand the intricacies of ORMs takes a lot of time and effort, probably as much if not more as writing proper SQL.

-illustration of the previous point: it is hard to know the amount of data the ORM is really carrying, hence the common situation where half of your DB ends up in memory.

-developers tend to forget performance improvements. For instance, in C#, IQueryable objects are used everywhere, meaning that in any layer of your app, the query that will be pushed to your server might be modified: hard to tweak your performance in such context. More generally, this additional layer makes everybody postpone the time when you have to think about DB performance.

-it prevents you to use advanced DB features (ex.: built-in audit trailig and versioning), either because nobody ends up knowing SQL DB anymore, or because ORM makes it harder if not impossible.

-queries sent by the ORM to the DB seem always huge and be returning more than they should. -for performance or complicated requests, you always end up adding some SQL to your ORM.

-because of the previous point, the maintenance advantage of ORM, namely being able to automatically migrate your DB with your code is lost: you end up having to maintain more or less manually some SQL.

-letting the ORM automatically update the SQL DB during migration on real data always make people sweat: if any problem occurs during that process, welcome in hell. I feel always more comfortable being able to write some SQL fix in worse case.

-for my side projects, I never use ORM, and enjoy it.

kryptonomist··on The wisdom of never leaving your hotel room
And Bill Gates wrote the first code of the FAT system during a 5-day stay in a Albuquerque Hilton hotel.
kryptonomist··on Say No to the “Cashless Future” – and to Cashless Stores
I am not an economist, but in this world of negative interest-rates (now common in Europe), another reason for cashless is to prevent people from keeping cash at home, behavior that make sense when the bank is making you pay for having a positive account.

And as a cryptocurrency enthusiast, this cashless trend is also a way to make it harder to hide your crypto assets: hand-to-hand exchange of cash against crypto is indeed one of the best anonymization way.

kryptonomist··on The Rise and Fall of Object Oriented Programming
One use case where I found OO particularly unsuitable is applications that rely heavily on events. Trying to understand what's happening is hard, when any call to your object structure can trigger changes at any level of your hierarchy, triggering other changes again, and so on.

Luckily, the rising popularity of Swift, Kotlin, and Go, will push for a more reasonable use of OO in combination with FP.

← PreviousPage 2 of 2