HNHacker News
TopNewBestAskShowJobs

nlitened

2,133 karma · joined March 30, 2016

https://www.latypoff.com/
submissionscomments
nlitened··on Composition shouldn't be this hard
The way I see it, Clojure was created to address most of the philosophical problems highlighted in the article, and its ecosystem has developed under the influence of such ideas.

It embraces the dynamic nature of things. Every program that must do I/O is dynamically typed at the edges - so statically-typed languages must have both the facilities for dealing with dynamic types and static types, and use those differently for "inner" and "outer" parts of the program. The Clojure ecosystem makes it more approachable to work with dynamic data, and as a result, program's parts (modules, even functions) use the same machinery as the program as a whole. What helps, off the top of my head:

1. Immutability of values, persistent data structures, explicit state management - it turns out most of the "problems" with dynamic types are not due to the fact that types are unknown, but the fact that they may change over time. Most of concurrency problems also become irrelevant with immutable values.

2. Powerful data specs/schemas allowing to express full business requirements and constraints on expressible values (not possible with static typing anyway) — making invalid states unrepresentable and actually meaning it.

3. Concise unified model for working with different logical data structures, also nested data structures.

4. Simple asynchronous communication mechanisms and patterns between independent modules of a programs.

5. Rich extensible aggregates of data with namespaced keys as the object model.

6. An ethos of extreme backward compatibility (and tools for achieving and maintaining it) through accretion of novel values/parameters/features, enabling reloadable workflows, which makes it easy not only to redefine functions in code while program is running, but also updating individual programs while interconnected system is running, without breaking things.

The downside is that tools that reduce complexity are not very easy to use for people with less experience, so they cannot be too popular. People tend to overcomplicate, and to be quick to dismiss well-thought-out solutions.

nlitened··on Composition shouldn't be this hard
> You end up rebuilding semantics over and over again (validation, mapping, enrichment), and a lot of failures only show up at runtime.

I think die-hard fans of static typing mostly fail to acknowledge this objective reality and its implications. Every time they encounter this problem again and again, they approach it as if nobody thought of this before, and didn’t develop reliable abstractions to productively work in these environments.

nlitened··on ChatGPT Images 2.0
Yep, that’s the irony, that’s why I’m being tongue in cheek about Marxists’ “seize the means of production”, because people who produce capital also work very hard
nlitened··on ChatGPT Images 2.0
It’s about time we shaft the gatekeepers of talent, and redistribute and socialize the means of art production.
nlitened··on Stop trying to engineer your way out of listening to people
In these situations, the non-technical people don’t understand the costs, the technical people don’t understand the benefits. The communication from both sides is needed to find a good cost-to-benefit tradeoff
nlitened··on Stop trying to engineer your way out of listening to people
What you say: I don’t want to take responsibility.

What management hears: I want someone else to take responsibility for me.

nlitened··on SI Units for Request Rate (2024)
> "count" is an incomplete type, the same as "array" is an incomplete type. "count of fruit" would be a complete type, compare to "Array of int64".

Javascript has arrays of unspecified types, and count of items of such arrays. I don’t think your analogy holds

nlitened··on Ban the sale of precise geolocation
Ever seen entire countries of people locked up in their homes within a week — for months?
nlitened··on Ban the sale of precise geolocation
So Instagram and TikTok?
nlitened··on A simplified model of Fil-C
No, rewriting in any language is bad by itself. What Fil-C gives you is that you don’t need to rewrite old programs. You spend zero effort, and immediately your battle-tested program is memory safe and free of any potential future vulnerabilities. With Rust you spend man-years on a rewrite, and as a result you have a new untested program full of subtle bugs, which you need to spend another 10 years of real-world use to uncover.
nlitened··on Claude Opus 4.7
Joke's on you, I use Java as Clojure with a clacky split keyboard, feels great.
nlitened··on IPv6 traffic crosses the 50% mark
For example, compared to migration from 3G to 4G networks. As I understand, from the launch of 4G to complete shutdown of 3G it took around 12—14 years.
nlitened··on I run multiple $10K MRR companies on a $20/month tech stack
> There are zero reasons to limit yourself to 1GB of RAM

There is a good reason: teaching yourself not to over-engineer, over-provision, or overthink, and instead to focus on generating business value to customers and getting more paying customers. I think it’s what many engineers are keen to overlook behind fun technical details.

nlitened··on Artemis II is competency porn
If you honestly care about these things so much, surely you’re a big Elon Musk and SpaceX fan
nlitened··on The effects of caffeine consumption do not decay with a ~5 hour half-life
> does it taste as good as espresso?

Coffee is an acquired taste, I think. People conditions themselves to like the bitter taste of coffee over time. I remember hating the taste of coffee (or beer, for example) in childhood.

nlitened··on Illinois Introducing Operating System Account Age Bill
> Slippery slopes are a logical fallacy

How is this a counter-argument? I often read this, as if there's some international trusted organization of logical thinkers that has approved inclusion of slippery slope to a list of logical fallacies that must never be invoked in a conversation.

Every single time five years later it turns out that the slope actually was slippery.

nlitened··on AirPods Max 2
If I had to guess, I think it’s marketing — just like adding weights to the insides to make them feel more “premium”.

I’d guess that the target audience would argue that real lossless music experience requires high-bandwidth wires, and is not possible over the air without degradation.

nlitened··on 301M Records Exposed: The HIPAA Breach Epidemic
Unless somebody from management AND engineering goes to jail, it's literally just cost of business.
nlitened··on Sub-$200 Lidar could reshuffle auto sensor economics
Cameras are cheap, but, as I understand:

1) it's not cheap to produce lidars at a stable predictable quality in millions;

2) car driving training data sets for lidars are much scarcer (and will always be much scarcer due to cameras' higher prevalence) and at a much lower quality;

3) combined camera+lidar data sets are even scarcer.

nlitened··on Sub-$200 Lidar could reshuffle auto sensor economics
Even if so, it doesn't mean that capital deployment efficiency and expected payoff make equal sense in all directions.

Then again, it's good that we have self-driving companies with lidar and without — we will find out which approach wins.

nlitened··on Sub-$200 Lidar could reshuffle auto sensor economics
If your vision is good enough to drive in rain/snow/fog, you don't need lidar in clear conditions. If you planned to spend $10B on vision and $10B on lidar — you would be better off spending $20B on better vision.
nlitened··on Sub-$200 Lidar could reshuffle auto sensor economics
As I understand, lidars don't work well in rain/snow/fog. So in the real world, where you have limited resources (research and production investment, people talent, AI training time and dataset breadth, power consumption) that you could redistribute between two systems (vision and lidar), but one of the systems would contradict the other in dangerous driving conditions — it's smarter to just max out vision and ignore lidar altogether.
nlitened··on Portugal: The First Global Empire (2015)
> Countries rise to power because they are in the right place at the right time, even if monarchs and nationalists will always attribute it to God preference

Isn’t it literally the God’s preference of a country for this place and time, from both secular and religious points of view?

nlitened··on Undo in Vi and Its Successors
I would guess that you just remember at which file offsets you need to insert what, and which offset ranges you need to delete from the original file — and on file save you just do a single linear sweep to update the file contents on disk.
nlitened··on Why I Joined OpenAI
Sir, your top three comments in the comment section are about how not important the compensation package is for you
nlitened··on Why poor countries stopped catching up
I wonder if there is an example of a country that doesn’t have resources, so “powerful countries” cannot “take” them?

Or every country has resources, and weak countries are those that prefer to sell them for cheap rather than work on making use of them?

nlitened··on Stargaze: SpaceX's Space Situational Awareness System
As far as I understand, bad faith actors already have wide possibilities for disruption and abuse. This system allows for better good-faith coordination for mutual benefit.
nlitened··on Show HN: TCP chat server written in C# and .NET 9, used in the terminal
From what I see, the code is incorrect in reading “messages” from TCP socket stream, and will be failing randomly in production with messages longer than 1500 bytes, and also sometimes when even shorter.

Instead, the TCP socket must be treated as a stream of bytes, and use either some delimiter as message boundary (like \n, while escaping any newlines inside JSON), or write message size before the message bytes itself, so that the code knows how many bytes to read until full message is read.

Edit: to clarify, TCP protocol does not guarantee that if you write some bytes in one go, they will be read in one go as well. Instead, they may be split into multiple “reads”, or glued together with the preceding chunk, or both. It’s a “stream of bytes” protocol, it only guarantees that written bytes come one after another in the same order.

So the “naive” message separation used in code above (read a chunk and assume it’s the entire message that was written) will work in manual tests, and likely even in local automated tests, but will randomly break when exposed to real network conditions.

nlitened··on Claude Code On-the-Go
> because government will have more money now

Ah, so your idea is the good old “only the emperor who controls the violence apparatus should have a lot of money and power”?

It’s not a very original idea, and it has been tried many times, and it failed many times.

> but then we should be even more careful who gets to the top

Right, so “for some reason only the greedy power hungry psychopaths get to the top in the current system — let’s fix it so that there can’t be many of them, only one government who has power to take away other people’s wealth and concentrate it immensely, surely we will figure out how to make sure it’s not filled with greedy power hungry psychopaths as we go”

nlitened··on Finland detains ship and its crew after critical undersea cable damaged
Your move is sinking a civil cargo ship in response to an attack on naval bases? Ok
← PreviousPage 3 of 25Next →