HNHacker News
TopNewBestAskShowJobs

alde

447 karma · joined May 2, 2017

submissionscomments
alde··on Time is a dimension, but not like space
How would you compare two infinities? E.g. speed of light inside a moving train vs speed of light outside of it.
alde··on Kubernetes and back – Why I don't run distributed systems
Running a self-hosted Mongo cluster is tedious and complicated task by itself. Mongo Inc isn’t incentivized to make it easy and user friendly because they have a cloud offering for you.

In addition to that Kubernetes isn’t really tailored to stateful workloads, so there are all sorts of gotchas and surprises there.

alde··on Russian troops use Starlink licensed and imported from Dubai
Ukraine might economically collapse under the weight of the war machine of one the biggest military powers in the world. You could do better than spinning classic Russian propaganda tropes of "Ukraine is the most corrupt country on Earth". There is corruption in Ukraine, more than in the EU but about the same level as other non-EU countries like Moldova, Serbia, Kazakhstan etc.
alde··on We are turning into subscription slaves (2023)
I stopped clicking on any Medium links a while ago. Why even sponsor this walled garden?
alde··on PostgresJs: PostgreSQL client for Node.js and Deno
Glad you are liking pgTyped. Transactions are supported as pgTyped is just a thin wrapper around node-postgres: https://github.com/adelsz/pgtyped/discussions/448
alde··on The Kakhovka Dam Disaster Revealed an Archaeological ‘Goldmine’
From what I read, the Zaporizhzhia nuclear plant can’t be restarted unless the dam is rebuilt.
alde··on Death Valley Just Had the Hottest Midnight on Record
Thank you
alde··on Russia to Withdraw Troops from Kherson
This. As a Ukrainian with relatives near Kherson, it is too early to judge. Russians have been changing their uniform to civil clothes and spreading through the city after semi-forcibly “evacuating” locals from their homes.
alde··on The Central Social Institution in Prague, Czechoslovakia, 1937
It is fun to think if it as if this is what data structures would look like if they were physical objects. A hash table taking a whole building.
alde··on Poll: How are you doing currently?
Maybe consider moving to Europe and learning a local language? Pay may not be as great, but life does flow slower here, and people come off as less materialistic and career focused.
alde··on Ask HN: MacBooks seems to be the only viable option these days
This is becoming even more the case given that Asahi Linux is maturing and you can already run Linux (somewhat stable) on an ARM MBP.
alde··on Geniuses of the past were aristocratically tutored
The article assumes there is an infinite linear pool of ideas that we can take from. This is not the case. All-encompassing models like general relativity, the standard model and quantum mechanics can only be discovered once, same goes for music and other old fields. Not to comment on minor errors in the article like quoting Olaf Spengler instead of Oswald Spengler.
alde··on Estonia, allies to trigger NATO Article 4
Latvia and Estonia are already in NATO and they border Russia.
alde··on A delightful quirk of relativity theory
It is interesting that "real" observations of relativistic objects are quite different from what you expect them to be. For example, a cube passing by at relativistic speed would appear as if it is rotating towards you. This allows you to see some of its sides which you normally wouldn't [1].

[1] https://en.wikipedia.org/wiki/Terrell_rotation

alde··on Category Theory: Lecture Notes and Online Books
This might be an unpopular opinion, but category theory isn't very useful at low levels of abstraction. It is an elegant mental framework/model that can be used to generalize many concepts, but in my experience such generalizations rarely give additional insights about the concept it is generalizing.
alde··on AWS us-east-1 outage
S3 bucket creation is failing across all regions for us, so this isn't an us-east-1 only issue.
alde··on Tricks I wish I knew when I learned TypeScript
TS !== crazy OOP. For some reason, there are people who just want to use Java style OOP in TS. Nest.js is one library heavily promoting that. I can't digest such codebases, they are the definition of over-engineering to me. Fortunately, out of dozens of medium to big TS projects I worked on, only one used that style. In all the other projects there were very few if any classes.
alde··on Terraform vs. AWS CloudFormation
The C in IaC stands for Code, and code is best written in proper programming languages. Both CF and Terraform are greatly limited by their use of yaml and hcl. Tools like AWS CDK and Pulumi, especially when used with a typed language like TS, are the future of IaC.
alde··on Scientists create matter from pure light, proving the Breit-Wheeler effect
Photon - photon scattering in vacuum is a known process, they can interact through virtual particles. The problem is that the probability of such an event is very low and requires very high photon energies.
alde··on America Had an Atomic Mecha Warrior Robot
404
alde··on Developer tools can be magic but instead collect dust
Yes, odd. Data point: me and most of my SE friends/coworkers pay for JetBrains IDEs (I was pretty deep into emacs and vim for many years prior to switching).
alde··on Ask HN: How to Become an Expert at AWS?
Stephane Maareks courses on Udemy helped me a lot. Go for AWS certs after you feel confident. It may sound like the certs are fluff, but they really helped me systematize all of my AWS knowledge.
alde··on How to Think for Yourself
I am sure that if you took the other path you would likely regret it just the same. Grass is always greener on the other side.
alde··on Apple Watch Series 6 delivers breakthrough wellness and fitness capabilities
Most sport/smart watches like Garmin and Suunto have had a blood oxygen measurement function for a couple years now. Not sure what the "breakthrough" is here, I guess it is the Fitness+ app.
alde··on Sortition
Good question. Does someone know how sortition helped fix the oligarchy problem in Ancient Greece? I can't find an immediate answer on wiki, even though it claims that.
alde··on The Vintage Beauty of Soviet Control Rooms (2018)
This is not true. There was a whole institute doing industrial design: the Soviet Scientific Research Institute of Industrial Aesthetics [1]. That institute was also publishing a monthly "Technical Aesthetics" magazine from 1964 to 1992.

[1] https://en.wikipedia.org/wiki/VNIITE

alde··on Show HN: PgTyped – Typesafe SQL in TypeScript and Postgres
You might find io-ts [1] interesting. It allows to write composable parsers that do both runtime checks and have correct result types.

Opt-in runtime checks for SQL queries are also on the roadmap for PgTyped. You are welcome to open an issue to track our progress there if you think this feature will be useful for you.

[1] https://github.com/gcanti/io-ts

alde··on Show HN: PgTyped – Typesafe SQL in TypeScript and Postgres
Looks like Zapatos still requires the user to manually specify param/result types for custom SQL queries?
alde··on Show HN: PgTyped – Typesafe SQL in TypeScript and Postgres
ORMs like Diesel are definitely very useful. The problem I have with them is that their ORM abstraction often leaks. Fixing these abstraction leaks is a hard problem [1]. Ofc, there has been attempts to reconcile relational DBs with OOP like languages, but they are not very popular. [2]

PgTyped and some similar libs try to solve a simpler problem (typing static queries) and can be used to build more complex solutions when needed.

Writing query result/param type assertions by hand and using tests to guarantee type synchronization between DB and code wasn't maintainable on most projects I have seen.

[1] https://en.wikipedia.org/wiki/Object-relational_impedance_mi...

[2] https://en.wikipedia.org/wiki/The_Third_Manifesto

alde··on Show HN: PgTyped – Typesafe SQL in TypeScript and Postgres
Thanks! Not really, just basic vector shapes and an isometric projection grid to make sure perspective is right.
← PreviousPage 2 of 3Next →