HNHacker News
TopNewBestAskShowJobs

ojnabieoot

1,423 karma · joined August 28, 2019

Functional-first developer. I like F#, Scheme, and Idris.

Currently “on sabbatical” learning more about operating systems and native code.

submissionscomments
ojnabieoot··on Haskell is a Bad Programming Language (2020)
It means that the type system is flexible enough to encode specific domain logic in a way that can be verified by the compiler (and therefore always be correct at runtime unless there is a bug in the compiler). Likewise, it means that plainly incorrect domain logic (eg due to a typo) is far less likely to occur than in a Python program. Some of this can be encoded by statically typed languages like C (“the average of an array of floats is a float”) but not all of it (“given a function that maps floats to floats, applying that function to an array of floats returns an array of floats”).

Python of course has none of this (“this average function actually returns the string ‘fix me!’ on some inputs because the programmer forgot to fill in and else branch”). Mypy is a useful tool but it doesn’t stop type-incorrect code from being executed and isn’t as powerful as Haskell. Likewise, the Haskell compiler certainly doesn’t catch everything, but it does completely eliminate many common Python bugs.

There is obviously a “spectrum” since no general purpose language has a truly rigorous type system.

ojnabieoot··on Haskell is a Bad Programming Language (2020)
> the vast majority of the software is not written in Haskell in its actually running.

The vast majority of software has horrible domain and security bugs! I am not one of those people who complains about the bloated state of websites or app stores, but the vast majority of software is not “fine,” especially software written in Python or JavaScript.

ojnabieoot··on Haskell is a Bad Programming Language (2020)
I am personally not a huge fan, but like many statically-typed functional languages, Haskell is great for

- creating new programming languages and DSLs

- problems in finance, energy, medicine, etc., that are more correctness-sensitive than performance-sensitive (it is widely used in Bitcoin brokerages / exchanges / etc, and in general blockchain technologies)

- highly-concurrent scenarios that would otherwise involve a lot of painful management of threads/locks/etc

Facebook’s Haxl is a good example of software that uses Haskell effectively: https://engineering.fb.com/2014/06/10/web/open-sourcing-haxl...

ojnabieoot··on Emacs Symbolic Integration
In general - developers use calculators all the time (most frequently via Google these days, but also via REPLs) so a dedicated calculator is a self-evidently useful widget for any editor. It’s is not essential fir a new editor in 2021 but considering emacs has had Calc for some time, it is worthwhile to make improvements to widely-used legacy software. Many emacs users have used Calc in lieu of alternative “developer calculators” like Octave, the R REPL, etc, so it’s not like Calc is an extraneous feature.

It’s uncommon for developers to deal with integral equations in their day-to-day work. But it’s obviously not unheard of - integral equations show up naturally in many domains of finance and engineering. I’ve had to deal with numeric integration on .NET in one of my jobs. Sometimes an exact symbolic solution is easier for the developer and the CPU than a numeric technique, so for a small handful of developers a symbolic integral calculator is a handy (if somewhat specialized) tool, and not just some bell-and-whistle.

ojnabieoot··on Why Clojure? (2018)
You can do indentation with the same semantic rigor as parentheses - the problem with Python is less that it’s whitespace-significant and more that it’s procedure-based rather than expression-based. Parenthesis might mitigate this somewhat to the human eye (at the cost of some clutter and compromised immediacy), but unlike a LISP the Python interpreter doesn’t really understand what an expression is.

By contrast, I never have these kinds of semantic issues in whitespace significant languages like F# - I make mistakes that I might make less often in Scheme, but the compiler usually sets me straight since it realizes a branch isn’t returning a value, etc.

In my view parentheses versus whitespace is really a judgment call based on how your eyes read the source code. The crucial thing is having something like s-expressions.

ojnabieoot··on 50 Years of Text Games – A 2021 Journey from Oregon Trail to A.I. Dungeon
Lost Pig was my starting point for contemporary IF: https://en.wikipedia.org/wiki/Lost_Pig (and it’s probably still my favorite)
ojnabieoot··on WSL2 corrupting Git repositories and shell history
I am not arguing in favor of Excel! I hate Excel. I don’t have it installed on my personal devices. I never use Excel unless I have to. I am saying that Excel does specific things that are widely used in industry (especially finance and industry) which are not supported by Calc and that Calc is not a good replacement for many businesses.
ojnabieoot··on WSL2 corrupting Git repositories and shell history
The point is that VBA macros are portable across Excel but not between Excel and Calc. Calc does not support VBA macros. As many businesses need to consume spreadsheets with VBA macros, and since porting VBA to Python isn’t sustainable, Calc is simply not a good enough replacement for enterprise.

I am not sure that one anecdotal blogpost supports the idea that industries are moving from Excel to Python. It is more likely that people are productionizing Excel spreadsheets with Python these days, instead of C++ or Java.

ojnabieoot··on WSL2 corrupting Git repositories and shell history
Calc is really not an adequate substitute for Excel if you need to use VBA macros - which might be coming from your customers! And in the wild I see plenty of older Excel documents (before 97) which I don’t think are compatible with LibreOffice. Obviously this isn’t an ideal situation but historical data around prices/etc from the 90s are often stored as old Excel binaries.

In general I think using Calc (or Google Sheets) instead of Excel is a bad idea for a business. Word processing and spreadsheets - sure (although there might be some things specific to Word/PPT that I am not aware of). But Excel is a very specific piece of software and should not be thought of as a general “spreadsheet tool.”

ojnabieoot··on More than 73% of American adults are overweight or obese
I’m sorry but you can’t just make broad sweeping claims like this with literally zero supporting logic or evidence:

> However, making people people believe that they can eat whatever they want, can be obese and still healthy doesn't help at all... it is very destructive and unhelpful in the long run.

First of all, I can’t think of a single body positivity activist who says “you can eat whatever and you’ll still be healthy.” It doesn’t really help your argument when the first target is a preposterous strawman!

More to the point: body positive ideologies might be damaging in the long run. But it might not be! You have absolutely no evidence either way - nor could you, even in principle! - and it’s extremely irritating to see such strongly-stated ignorance.

One of the major impetuses for the body positivity movement is the incredible danger of anorexia nervosa, which is the most lethal mental illness and has been spiking dramatically since the 80s. And as an unambiguously psychological disorder, nervosa rates are much more easily understood as a consequence of societal views of body image than obesity rates.

To be blunt: although there isn’t extant data, I strongly suspect that body positivity saves more lives than it loses. There will be many more women discouraged from starving themselves than women discouraged from moderate exercise and reasonable diets.

Regardless, obviously the body positivity movement has nothing to do with the 21st century rise in US obesity rates (not to mention Mexico). The problem in both countries is much more agricultural/economic. And it strikes me as a bit ridiculous (or dishonest) to suggest that marginalizing body-positive ideologies can reduce the obesity rate.

ojnabieoot··on Does GPT-2 Know Your Phone Number?
Again: you could make the same argument against the fire department (“don’t rely on the government, learn fire suppression yourself”) or dangerous pharmaceuticals (“the peer-reviewed articles are out there, you just need to learn how to read them”), or protection against assault and theft, or protection against dangerous wild animals, etc etc. In general your argument is “proving” way too much and doesn’t say anything useful.

Nobody is disputing that the government can be corrupt, and at its best will be incapable of protecting everyone from everything. And if you are sincerely anarchist then that’s more of an ideological dispute beyond the scope of this comment.

But I suspect that you actually support regulation around food and medicine, since “a fatal case of salmonella is a small price to pay to make sure we don’t rely on the government” isn’t actually a good argument. And, unlike people who are ignorant about computer technology, you probably have empathy and understanding for people who are ignorant about whether the ground beef they are purchasing is actually safe to eat. You would not be sympathetic to a libertarian food safety specialist came in and said “well I can tell that the ground beef is unsafe, why not teach everyone my skills so they can defend themselves?”

The idea that the government can protect people when it comes to health, medicine, transportation, and personal property... but NOT when it comes to privacy, is just not coherent.

ojnabieoot··on Does GPT-2 Know Your Phone Number?
I am in fact saying “the majority of humans are not capable of defending themselves against every possible criminal, and therefore that responsibility belongs to the government.”

I sincerely have no idea what your problem is.

ojnabieoot··on Ask HN: What Lived Up to the Hype?
Not the OP, but I think in FotR the Bombadil interlude is an unnecessary distraction that saps a lot of the momentum from the story, and it’s tonally inconsistent with the rest of Middle-Earth (as seen up to that point). And the character simply has little relevance for the entirely of the book - only briefly mentioned at Elrond’s council and then in Return of the King, and never actually revisited. His only tangible impact on the plot involves giving the blades of Westernesse, which could have been accomplished in a much more straightforward way. In general the Bombadil scenes are confusing, even to dedicated Tolkien fans, and only detract from the book.

For the film, it is really the pacing issue that is most crucial: FotR is already a long and complicated movie, and it really doesn’t have a second to spare on unnecessary scenes. And, unlike a book, movies can’t really be digested slowly (especially not in a theater). The Bombadil scene is a small oddity in the book but it could have been a fatal flaw in the film, disengaging audiences before we even get to Bree.

I think Bombadil could have been effective later in the trilogy - where the fact that the Ring has no affect on him would carry more dramatic weight, and where the “tonal inconsistency” would be surprising and refreshing rather than confusing. Perhaps shortly after meeting the Ents - it would strengthen the idea that Bombadil is vastly powerful (even compared to Sauron) but aloof from human/elf/dwarf concerns.

ojnabieoot··on Does GPT-2 Know Your Phone Number?
> The moral of the story here isn't that companies need to stop storing data, or that we need to run ML researchers out of town.

There is a lot of space between “user data and ML research on that data needs to be closely regulated” and “run the ML researchers out of town.” This uncharitable exaggeration makes critics sound like an uninformed mob and closes yourself off to legitimate ideas. This directly leads to logically flawed and morally gross suggestions like:

> It's that people really need to start using the encryption technologies that were built decades ago to protect some of their most valuable assets, their mental model of the world.

It is simply not reasonable to expect most Facebook/Skype/etc users to know enough about encryption to make good decisions here - for the same reason that you can’t expect people to have detailed understanding of food science to protect themselves from unscrupulous grocers, or to have a detailed understanding of medicine to protect themselves from fraudulent doctors. It really doesn’t matter if this knowledge has been around for “decades” since it’s still specialist knowledge.

Protecting digital privacy from unscrupulous tech companies and unethical ML researchers is a job for the government. Suggesting otherwise is victim-blaming. “The problem is that society is dumb and needs to become smart through the power of self-righteous scolding” is not helpful.

ojnabieoot··on Ask HN: What Lived Up to the Hype?
I absolutely dreaded The Fellowship of the Ring because of how terrible the animated LotR film was. I loved the books but was convinced they were unfilmable.

Instead, I think the movies are sincerely better than the books.

ojnabieoot··on Ask HN: What was a book that changed your life?
Rudolf Carnap - An Introduction to the Philosophy of Science

Maybe it didn’t “change my life” but as a physics/math student this was probably the single book that most affected my internal ideology, by simply raising so many questions I hadn’t ever considered (or if I had, it was clumsy and inadequate).

ojnabieoot··on Ask HN: What moment led to you becoming a coder?
I really didn’t want to be - I went to grad school for math, and generally disliked the programming I was familiar with (basic C, intermediate Scheme, and a lot of MATLAB). I had written some small games in C and TI-BASIC in middle school, and enjoyed writing algorithms in Scheme, but otherwise found programming tedious and frustrating. I never did it for fun. And as a practical matter I was too ivory-tower to get even a MATLAB job (no Simulink / etc). So although I could program I never considered myself a “coder.”

Fast forward to an analyst gig at a startup that didn’t work out due to an unscrupulous CEO: I ended up homeless and took an entry level C# job. So “economic desperation in 2016” was, unfortunately, the moment.

But it turns out programming in C# is a lot less frustrating than MATLAB! There was a whole world in “practical” computer science that I was completely unaware of.

Later I discovered dependent types and theorem provers, which I suppose means I’ve come full circle. In 2021 I am taking time off to work on a serious Idris project :)

ojnabieoot··on Possible Radio Emission from Exoplanet Detected
I think this is getting the causality backwards:

> As such we listen for radio signals as a way of communication, because that's what we are doing.

It’s not because we expect aliens to be using radio communication or to follow the same path we did. It’s more because electromagnetic radiation is the only thing we can reasonably detect. If the aliens are communicating with gravity waves somehow, our sensors are probably not good enough to determine it. And if it’s some new physics we haven’t discovered, how would we even know what to look for? EM waves are really the only good option we have right now.

That said, it is reasonable to assume that a technologically advanced civilization is using some fashion of electromagnetic devices, which therefore generate radio waves and could be detected.

But I don’t think anyone is claiming that every technologically advanced civilization will have a detectable radio signal. It’s just the best tool we have.

ojnabieoot··on Possible Radio Emission from Exoplanet Detected
The title is in an odd spot where, on the face, it is completely anodyne, and not at all misleading or “clickbait.” Yet even sensible readers (like me!) see “radio” and “exoplanet” in the same sentence and think “ALIENS!”

Very awkward spot for the science PR people writing this. It’s almost like it needs extra words to prevent people from adding

“Possible (But Definitely Non-Alien) Radio Emission From Exoplanet (Which Cannot Support Life) Detected”

ojnabieoot··on Cyberpunk 2077 Refunds
It’s true that Central and Eastern European governments have lagged behind North America and Western Europe when it comes to sexual freedom and LGBT rights, and that reactionary views are more widespread in those societies. The problem is that the Republicans in America is exactly as misogynistic and anti-abortion as Law and Justice in Poland. It is quite likely that Roe v Wade will be turned over in America in 2021. These things are not static and can change dramatically in a decade. Trying to make this about national attitudes is a mistake that only leads to confusion and misunderstanding.

And with Poland and Hungary especially, the government has become strongly anti-LGBT in response to increased public support for LGBT rights, as part of a general authoritarian far-right ideology. This complicated political development with a homogenous expression of Hungarian/Polish society.

And in the case of CD Projekt Red in particular: for starters, you can’t claim “golly, those humble Poles just have different views than you American folk” when your game is set in America, is clearly about American culture, was heavily marketed towards Americans, and prominently features major American actors. And CD Projekt Red has repeatedly apologized for their transphobic GOG ad campaign. They are not hicks who are unaware of some Ivory Tower concern by elite American liberals. They are in fact fully aware of what they are doing and they made a moral choice.

ojnabieoot··on Cyberpunk 2077 Refunds
You are just full of shit. Kaczynski wouldn’t have described LGBT rights as a “threat to Poland” if it weren’t for all the brave Polish activists who do in fact care about these things. 30% of Poles support same-sex marriage.

The idea that the governing party of Poland speaks for all Poles is just fascist bullshit.

ojnabieoot··on Cyberpunk 2077 Refunds
> it's a Polish game from a studio with no American office and apparently with little regard for the current trend in American culture (cue The Guardian review)

The Guardian righty criticized Cyberpunk for misogyny and xenophobia. The idea that these concerns are just some quirk of Anglo-American culture which is alien to Poles is an idiotic, offensive, condescending assertion which manages to be equally wrong about both America and Poland.

ojnabieoot··on Cyberpunk 2077 Refunds
> Also, people shoulnd't expect a next-gen game to run well on prev-gen hardware

What a ridiculous excuse. If a developer releases a game for a console, it should run well on that console. If the game is too fancy for the console then it shouldn’t be released. And if the developer insists that the game runs well on a given console, but they never release screenshots and it turns out they were lying, then their behavior is truly deceptive and inexcusable.

This Barnum-esque idea that it’s PS4 owners’ fault for letting CD Projekt Red rip them off is gross. Although it’s pretty funny that the suggestion always comes from people who think they’re defending CD Projekt Red.

ojnabieoot··on Zero to Emacs and Org-roam: a step-by-step guide on Windows 10
Do any friendly folks here have advice about shell choices in emacs on Windows 10? Using MSYS typically works well enough for me for simple commands, but I always have a separate Powershell window open for more detailed work and actually running my compiled binaries. Generally I have found the shell in emacs on Windows to be very finicky and difficult to use.

It has always been a minor pain point and I’ve had trouble finding reliable info. Ideally we could just use Powershell but I understand this is quite tricky. Powershell.el[1] didn’t actually work for me (beyond the editing mode) when I last tried it but I do see there’s a somewhat recent update.

[1] https://github.com/jschaf/powershell.el

ojnabieoot··on A new release for GNU Octave
In practice it seems like Octave isn’t a great alternative to MATLAB in industry because so many industrial customers use proprietary MathWorks packages (eg Simulink) that are missing in Octave.

The fundamental problem is MATLAB/Octave simply aren’t as useful as Python for real world stuff (a bit of syntactical awkwardness around linear algebra is worth painless web access and system IO). The languages also aren’t as nice as R for statistics and machine learning. And nowadays they don’t have much performance benefit either. In most cases I think Octave/MATLAB provide too little benefit and too many drawbacks.

Octave is a great option as a personal calculator, and be the best option for small mechanical/electrical engineering firms. MATLAB code is unusually clear and expressive for numerical calculus and linear algebra, so are a good choice for problem domains where the math is very complicated but the dataset isn’t terribly large (e.g., models of crack formation in ceramics). I worked at a place that used Octave to run a free MATLAB script that did some very complicated microeconomics: a lot of very smart professors have written many useful algorithms in MATLAB, so being able to run them without porting is nice.

But I think Python and R have, sadly, made MATLAB as a language mostly obsolete for future development. The real relevance is MATLAB as an analysis tool with lots of MathWorks goodies.

ojnabieoot··on Visa and MasterCard Are Trying to Dictate What You Can Watch on Pornhub
I don’t think that word is as “key” as you are saying it is! It is profoundly irresponsible to presume ignorance and wait for there to be hard evidence. There is hard evidence that PornHub has repeatedly allowed underage pornography on their website despite significant public criticism, and hard evidence that PornHub (and therefore VISA and MasterCard) profited from its distribution. Moral and legal propriety compels action without giving PornHub executives a benefit of the doubt they do not deserve.

It is also not like these issues are new. Pornhub has been criticized for allowing underage pornography since at least 2009, when footage of men raping a 14-year-old girl was uploaded to the site and not removed for 6 months, despite the videos racking up hundreds of thousands of views and the girl’s family repeatedly pleading with PornHub to remove the video. This has been a known problem with PornHub for over a decade. Even if the executives are just profoundly ignorant and bad at their jobs, that is not a good enough excuse in a court of law.

> That's like saying we should boycott the telephone company because a child molester made a phone call.

It is really more like saying that we should boycott the phone company because the child molester ran a nationwide criminal conspiracy around sexual assault using a premium phone service, and the phone company did nothing despite the problem being repeatedly brought to their attention. In which case: yes, boycott the damn phone company and demand a criminal investigation of its executives.

A big part of the problem is people completely trivializing the issue. The EFF doesn’t even mention child exploitation! Pretending this is just about censoring legal pornography, or blowing small instances out of proportion, is completely dishonest and morally despicable.

ojnabieoot··on Visa and MasterCard Are Trying to Dictate What You Can Watch on Pornhub
Lol no you can’t! I mean except for fast food but it is ridiculous to compare that to a gun (or sexual exploitation).

If visa/MasterCard learned that you were using their card to buy drugs and guns for children, they would terminate your account and contact social services.

ojnabieoot··on Visa and MasterCard Are Trying to Dictate What You Can Watch on Pornhub
> having something to do with child porn, not due to legal liability

I am sorry but how are you not understanding that this is one and the same?????

If it were proven in a court of law that

- your associate’s business knowingly trafficked in child pornography - you had reason to believe they were complicit in child pornography - you continued working with that business anyway

then that exposes you to severe criminal liability, the kind that sends you to jail even if you’re a Vice President at VISA. And it should! Child pornography is a heinous crime that goes unpunished far too often. “Gee officer, I’m just a humble MasterCard corporate lawyer, how was I supposed to know?” is a ridiculous excuse.

ojnabieoot··on Record Breaking Number of Journalists Arrested in the U.S. This Year
This sort of unthinking, reflexive cynical glibness encourages the public indifference that allows things like this to happen:

> The numbers are staggering. Arrests of journalists skyrocketed by more than 1200% in comparison to 2019.

This is in fact new.

ojnabieoot··on Longest known exposure photograph ever captured using a beer can
I don’t think ‘known’ really qualifies as a “weasel word” in this context. To me, “weasel word” is a somewhat wishy-washy or putatively unnecessary qualifier designed to weaken a statement in a way that allows the statement to be phrased in a way that seems much stronger. “Dozens of supporters” meaning “25 people” is weaselly; “virtual unanimity” instead of “99.9% support” is not always weaselly (though it could be depending on the context); “largest known in the observable universe” instead of “the largest we’ve happened to spot in a telescope” is not at all weaselly.

In this context: “are you sure it’s the longest long-exposure in the world? Have you checked every single camera or device that employs a camera obscura technique?” isn’t a very reasonable objection. And “known” isn’t a weasel word so much as a tautological qualifier. It doesn’t weaken the statement in anyway, it just clarifies that the author is not ominiscient.

If the headline was “believed to be one of the longest” because they were aware of a longer long-exposure, that would be much more weaselly.

← PreviousPage 5 of 12Next →