HNHacker News
TopNewBestAskShowJobs

johnnyjeans

606 karma · joined February 20, 2023

submissionscomments
johnnyjeans··on A popular but wrong way to convert a string to uppercase or lowercase
nothing about working with locales, or text in general, is basic. we were decades into working with digital computers before we moved past switchboards and LEDs. don't take for granted just how high of a perch upon the shoulders of giants you have. that's exactly how the mistakes in the blog post get made.
johnnyjeans··on COBOL has been “dead” for so long, my grandpa wrote about it
It's easy to get lost in the modern way we look at compilers and toolchains, but it wasn't always like this. Free compilers basically didn't exist 30+ years ago. Certainly none of the free compilers were good. For the longest time, your only options for Ada compilers were priced at government contractor-levels (think $10k per seat... in the 80s). It's also an extremely complicated language, while C isn't. A single, moderately skilled programmer who can at least make their own FSM parser can write a reasonably complete C compiler in the space of a month. There's no hand-rolling your own Ada compiler. Even just complying with SPARK is a herculean task for a team of experts.

This is much the same reason I'm highly skeptical of Rust as a replacement systems language to C. A multitude of very talented folk have been working on writing a second Rust compiler for years at this point. The simplicity and ease of bootstrapping C on any platform, without any special domain skills, was what made it absolutely killer. The LLVM promise of being easily ported just doesn't hold true. Making an LLVM backend is outrageously complicated in comparison to a rigid, non-optimizing C compiler, and it requires deep knowledge of how LLVM works in the first place.

johnnyjeans··on COBOL has been “dead” for so long, my grandpa wrote about it
Ada will probably go the way of the dodo as Dependent types catch on. It's phenomenal how ahead of it's time it was, and continues to be. Contracts are an absolute killer feature, and I see a lot of people who are otherwise very serious about memory safety scoff about logical safety, not understanding just how powerful that construct really is.
johnnyjeans··on Octopuses seen hunting together with fish, punching those that don't cooperate
Technically speaking, Octopuses don't have tentacles at all. Those are arms. The morphology of "Octopus" is actually a really great example case for demonstrating paraconsistent logic.
johnnyjeans··on No Data Lasts Forever
FTL travel. Alternatively, just displace the universe into a larger, younger universe. Easy peasy lemon squeezy ;p
johnnyjeans··on Hezbollah pager explosions kill several people in Lebanon
No essentially about it. Hezbollah is part of the government, one of many political parties in Lebanon. Just like most of the other major political parties in Lebanon, they maintain their own militia separate from the Lebanese military.
johnnyjeans··on The muscular imagination of Iain M. Banks: a future you might want
The ending of Ring, particularly having everything contextualized after reading all the way to the end of the Destiny's Children sub-series, remains one of the most strikingly beautiful pieces I've ever seen a Sci-Fi author pull off.

Easily the best "hard" Sci-Fi I've read. Baxter's imaginination and grasp of the domains he writes about is phenomenal.

johnnyjeans··on The muscular imagination of Iain M. Banks: a future you might want
Banks' Culture isn't capitalist in the slightest. It is however, very humanist.

If you want a vision of the future (multiple futures, at that) which differs from the liberal, humanist conception of man's destiny, Baxter's Xeelee sequence is a great contemporary. Baxter's ability to write a compelling human being is (in my opinion) very poor, but when it comes to hypothesizing about the future, he's far more interesting of an author. Without spoilers, it's a series that's often outright disturbing. And it certainly is a very strong indictment to the self-centered narcissism that the post-enlightenment ideology of liberalism is anything but yet another stepping stone on an eternal evolution of human beings. The exceptionally alien circumstances that are detailed undermine the idea of a qualitative human experience entirely.

I think the contemporary focus on economics is itself a facet of modernism that will eventually disappear. Anything remotely involving the domain rarely shows up in Baxter's work. It's really hard to give a shit about it given the monumental scale and metaphysical nature of his writing.

johnnyjeans··on Fake CV lands top 'engineer' in jail for 15 years
I certainly wouldn't, especially if it's going to be modeled on other accredited fields like Medicine and Engineering where you can't even see the review board until you've made it through formal education. Software development is one of the few places where someone like me, who is allergic to pedagogy, was able to find professional success not mired in stifling bureaucracy.

The overwhelming majority of software has absolutely zero criticality. The retail staff at your local supermarket can do more damage through negligence than virtually any given programmer. Fucking us over because of an incalculably tiny minority of jobs is a ludicrous proposition. No thanks.

Yeah, there are a lot of people who have no business making this field their profession. It's also a profession that's rather difficult to test for competency without filtering out 95%+ of the workforce. That's why it's important for leadership in charge of those roles to have deep domain knowledge to filter out people who aren't up for it. That's the entire point of an in-depth interview process.

johnnyjeans··on Overdose Deaths Are Finally Starting to Decline. Here's Why
> Additionally, the availability of test strips for detecting fentanyl, as well as other types of drug testing equipment, Cerda says, may have also prevented overdose deaths

Not sure that this is necessarily to do with it. Fent tests have been around and widely available since 2015 or so. It's been testable via normal reagent testing since forever. A large amount of these overdose deaths have been the most destitute of society, a demographic that tends to never practice any degree of harm reduction.

I spent some time getting to know "average" "street users" and it was genuinely astonishing how different of a world it was, compared to the type of drug users I usually rubbed shoulders with. No harm reduction practices, very little knowledge, wild misconceptions, and the absolute state of the "street" market was horrendous. People used to putting crap that's been stepped on 15 different times in their body and paying out the ass for the privilege. 7/10 of every titration I ran on street sourced drugs was grim. I once tried to explain volumetric titration to a street-user in colloquial terms and he thought it was a fairy tale. This is not a world of test strips, weighing, sanitation, basic neurochemistry, etc. It's a world of the most predatory, exploitative, anti-consumer marketplaces taking advantage of people who don't know any better. People who are kept in the dark by poor education and misinformation through legend and sometimes even government institutions. The worse off the person is, the more ignorant they tend to be.

In the wake of the fent/carfent proliferation, you've seen a small number of this segment adopt harm reduction practices. But the overwhelming majority are still recklessly freeballing it. To them, it's the nature of the game.

Please remember to test your drugs. And always measure your doses. Jewelry scales are cheap.

johnnyjeans··on The algebra and calculus of algebraic data types (2015)
I think one of the most critical issues with thinking about ADTs in terms of an algebra is that they lack inverse operations which are otherwise an extremely critical component of how we conceive mathematics. A disjoint union type is formally equivalent to addition, but disunion is never defined, we are given no formal representation of subtraction. The same is given for cognates of division, of logarithms and roots (what those might look like is an interesting, if oft. neglected manner of research)

There's (somewhat) good reasons we don't define these operations, of course. All the same, without being able to represent these inverse operations, the ease of which it maps to familiar notions of the typical algebras we're used to ends up thrown out the window.

The algebra metaphor makes a bit more sense when you move beyond ADTs into more advanced levels of type-theory. Dependent types are a fair bit beyond a mere algebra, instead being more like a complete metalanguage akin to higher-order logic.

johnnyjeans··on No one expects young men to do anything and they respond by doing nothing (2022)
This isn't much of a new phenomenon. There are many examples in European history at least where a monarch puts all of his time and energy into patronizing the arts, causing his kingdom to fall into ruin. Charles V's reign of Spain was plagued with uprisings of disgruntled peasants. Certainly worth looking into for your full write-up. "There is nothing new under the sun" is a great idiom to call upon to back up an argument.
johnnyjeans··on No one expects young men to do anything and they respond by doing nothing (2022)
Presumably it's a postulate, and applies in all reasonable cases. The generalization was given as an example of a larger truism.

To give a specific example: Solving discrimination against Maronites by instituting a system of power sharing which discriminated against Shiites and Druze set Lebanon up for failure. Can you think of an instance where reactionary counter-discrimination solved an issue long-term? Why be skeptical of the assertion of "two wrongs don't make a right"? It's generally observable in all cases that retributive "justice" simply creates resentment, deepens issues and erodes belief and trust in social institutions.

johnnyjeans··on Systemd Talks Up Automatic Boot Assessment in Light of the CrowdStrike Outage
Let's not also forget the "sshd" exploit some months ago was actually a libsystemd issue. An uncomfortable truth that was buried and not reported on at all. These do-it-all monoliths are the death of an ecosystem, and always seem to introduce more issues than they actually solve. If this is the future of Linux, then I'm making preparations to abandon ship.
johnnyjeans··on Nvidia is most valuable company
And if nvidia vanished, there would be no one to care about the IP violation.
johnnyjeans··on CO2 levels surging "faster than ever", beyond anything ever experienced
It has major implications for atmospheric composition[1]. Climates are a massively dynamic system, and they work in really unintuitive and complicated ways. It's a pretty big misconception that we're capable of performing deductive reasoning about them. Even our stochastic workarounds aren't capable of dealing with them very well (see: the commonly joked about unreliability of predictive meteorology), which is why I generally take a very hard skeptical stance whenever I see this kind of conclusive language, outside of purely descriptive measures and careful talk about correlations. The climate is undergoing change that hasn't been seen since about 10k years ago, and that's about all we can say conclusively.

[1] - https://research.noaa.gov/2019/06/05/surprisingly-large-carb...

johnnyjeans··on CO2 levels surging "faster than ever", beyond anything ever experienced
> an increase of 2.9 ppm since May 2023 and the fifth-largest annual growth in 50 years of data recording.

So then it's not faster than ever? Just somewhat fast compared with recent climate data. The author seems to have no capacity to distinguish between a measurement and a change in measurement. The article postulates it's because of "continued burning of fossil fuels" but that wouldn't contribute to a higher rate of change unless the amount of fossil fuels being burned is higher. I'm curious if there's some post-covid economic effect leading to this, but from what I've read it seems to be just because we're in an El Niño phase?

johnnyjeans··on User Interfaces
Disappointed to see there's no mention of things like the Blit terminal, Motif, CDE, etc!
johnnyjeans··on Centuries of milk marketing warped the way we think about dairy and nutrition
> Therefore, the nutritional composition of the industrially produced cow's milk today is complicated.

As it is for most things found within the grocery store. Modern cultivars of produce for instance, have been bred within a short time-frame for size, productivity, shelf-life and consistency. All of this has created a result of the food that we eat having a massively hampered nutritional profile. Personally, I hypothesize that it's this same effect behind the fact that heirloom vegetables bought directly from small, independent farms tend to have a much higher subjective quality in taste. The changes we've experienced in our society have been drastic over the last few hundred years, and it's allowed our population to explode in such a way that hasn't been seen since the agricultural revolution, but nothing comes for free.

> The real issue is that both sides push their own respective agenda, oftentimes driven by questionable motives, aiming to win or gain a upper hand at any cost.

As is usually the case. Hence why I don't hesitate to call out the existence of dairy industry propaganda which erases the concept of non-bovine milk, and uses language like "necessity" to describe its products. Anybody even remotely versed in nutritional science will know that there is no essential nutrient with a singular source. You can even stay hydrated without actually drinking pure water for fucks sake, but it hasn't stopped charlatans from using misleading language to assert some ridiculous picture with no bearing to reality.

> China is big

It's important to note that that the time of these assimilations (~2000-300BCE) China was not even remotely close to what it was today. What is now South China was in fact a completely different society, and a precursor to what is now called Vietnam. Vietnam itself meaning "southern viets", and not in the 1960's sense.

johnnyjeans··on Centuries of milk marketing warped the way we think about dairy and nutrition
And yet the rhetoric is not about the usage of dairy in its role as a garnish, it's about presenting plant milks as a genuine dietary alternative to mammalian milk. I don't find that it's the people who buy plant milk for their coffee to be the same people implying that milk's popularity was invented out of thin air by mad doctors of the post-renaissance.
johnnyjeans··on Centuries of milk marketing warped the way we think about dairy and nutrition
Things are not so cut and dry. For instance, did you know that a diet which includes fermented dairy populates the gut biome with bacteria that will break it down for you[1][2]? And that the placebo effect plays a role in symptoms of lactose intolerance[3]? The idea that milk wasn't drunk in East Asia in antiquity is a misconception as well. It was artificially dropped in Ancient China while assimilating pastoral societies as part of a larger scale dietary reform[4].

Additionally, cow milk represents a single dairy product amongst a plethora of ones. Everything from Horse milk to Goat's milk is consumed globally, and much dairy is consumed as further processed food like fermented milk, yogurt, cheeses, etc. which generally aren't considered by Americans when talking about dairy, for whatever reason, even when supposedly attempting to "unplug" from the dairy industry's propaganda.

[1] - https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4066025/

[2] - https://pubmed.ncbi.nlm.nih.gov/15277142/

[3] - https://gut.bmj.com/content/41/5/632

[4] - https://www.asianstudies.org/publications/eaa/archives/china...

johnnyjeans··on Centuries of milk marketing warped the way we think about dairy and nutrition
It's been interesting watching the reactionary rally against dairy over the last 10 years. Watching laypeople with zero scientific background write editorials on nutrition-adjacent topics is always a great workout of patience.

One of the more bewildering things I see is comparison of mammalian milks to plant milks... despite the two not being even remotely comparable. Plant 'milks' are just going through a lot of effort to take generally decent foodstuff (oats, nuts, etc.) and watering them down, massively reducing the nutritional density and content. The macro and micro content of things like oat milk, cashew milk, and so on are next to water because that's basically what they are. They're made by leeching a tiny amount of these legumes and grains into water, often artificially fortified with one or two vitamins. I leave it as an exercise to the reader to compare the nutritional profile of cashews with that of cashew milk and that of cows milk.

> But that talking point masks the reality that milk is only so convenient and affordable because the USDA, with taxpayer dollars, has made it so through intensive, sustained investments.

This is a really weird assertion to make when dairy has been a massively important staple of advanced societies for thousands of years, and continues to be in places like rural India, Turkey, Central Asia, and more. It's also not necessarily off-base, but that's because it holds true for all foodstuffs in the modern US. Because of how large our societies have gotten, the affordability of goods is directly tied to intentional prioritization of their supply chains by the organizational arm of society (government.)

johnnyjeans··on Bootstrapping a Forth in 40 lines of Lua code
I do not. As far as I'm aware, SML is much like C in that despite being a relatively simple language, there aren't many toy implementations floating around.
johnnyjeans··on Bootstrapping a Forth in 40 lines of Lua code
There are a lot of languages that are actually pretty small if you just boil them down to their primitives. Prolog and most other rule engines, especially CLIPS, jump to mind. ANSI C and SML. SML in particular is cute if you use your tiny Prolog to implement the type system ;-)
johnnyjeans··on Kids sickened by police training may have ingested decades old chemical weapons
He didn't say otherwise. Under the legal definition, my 'death vindaloo' made with 3 moruga scorpion peppers is a chemical weapon, and simply the act of cooking it as a combatant in a warzone would constitute a war crime. It's also immensely delicious and one of my favorite meals, I make it twice a month.
johnnyjeans··on How terminal works. Part 1: Xterm, user input (2021)
what if... we could scrolljack.... the terminal

rips bong

johnnyjeans··on D-Expressions: Lisp power, Dylan style [pdf]
For me, it's concatenative languages. Grammar so simple that BNF is of dubious usage.

4 3 2 1 + + +

johnnyjeans··on C-Macs – a pure C macOS application
> Sloppiness /is/ Unix design, that's intentional. It's called "worse is better".

That's missing the point. It's about simplicity through well designed abstraction. Unix was a runaway game engine that became Bell Lab's standard for talking to computers because it was vastly simpler than the poorly engineered MULTICS and friends. That's why it won.

> On the other hand, nobody uses Plan9

I use Plan 9 every day. I'm replying to you from inside abaco. I run a tablet with it, have a whole network of machines (most of them virtual). I'm in the middle of a project to create a light fixture I can talk to in 9p. It's not the first DIY IoT thing I've made to control over a Plan 9 terminal. My grid also runs my email, my file servers, an LLM chatbot (though this is actually served from a Linux machine via Inferno tsk tsk.) The only reason I use anything else is due to my job requiring me to ship a product in C++ and OpenGL. For something that doesn't "actually work", I find that it actually works excellently.

johnnyjeans··on C-Macs – a pure C macOS application
They do if you want them to be signed.
johnnyjeans··on Intel unveils largest-ever AI 'neuromorphic computer' mimicking the human brain
Traditional NNs didn't work very well either, until we were able to run them at massive scales. That's why they didn't see much adoption or use until the late 2000s/early 2010s. SNNs are much more difficult to run at scale, but that difficulty is solved with analogue computers[1][2]. We don't have details, but I'd bet this is just Intel's crack at a modern analogue processor, with some design concessions specifically for running SNNs.

[1] https://www.mdpi.com/2079-9268/13/4/55

[2] https://www.mdpi.com/1424-8220/23/14/6275

← PreviousPage 6 of 8Next →