HNHacker News
TopNewBestAskShowJobs

shortrounddev2

2,427 karma · joined June 15, 2023

submissionscomments
shortrounddev2··on Nvidia takes $1B stake in Nokia
AI is a bubble and will pop soon, theres no way even 80% of the spending has yielded the returns they were looking for. Nvidia cards will lower in demand though probably the bubble will be a net gain for nvidia over the preceding 4 or 5 years, though it will take them a while to regain their peak market cap
shortrounddev2··on Hi, it's me, Wikipedia, and I am ready for your apology
I remember being told in school that we shouldn't use Wikipedia (not just for citations, but at all) because anyone can edit it. We were told to use other websites directly, or better yet: paper books.

I would get in trouble for "talking back" when I pointed out that anyone can make a website or write a book, too.

shortrounddev2··on Text-to-SQL is dead, long live text-to-SQL
I've always found it odd that most databases don't expose a kind of query bytecode API that SQL can be converted to. It would allow more kinds of languages, different SQL dialects, compile-time optimizations, and perhaps ORM could be compiled directly into your target database spec. Would reduce the amount of string operations by client code, at least
shortrounddev2··on Simplify your code: Functional core, imperative shell
It also invites exceptions as error handling instead of a monadic (result) pattern. I usually do something more like

    Result<Users> userRes = getExpiredUsers(db);
    if(isError(userRes)) {
        return userRes.error;
    }

    /* This probably wouldn't actually need to return a Result IRL */
    Result<Email> emailRes = generateExpireyEmails(userRes.value);
    if(isError(emailRes)) {
        return emailRes.error;
    }

    Result<SendResult> sendRes = sendEmails(emailRes.value);
    if(isError(sendRes)) {
        return sendRes.error;
    }
    
    return sendRes; // successful value, or just return a Unit type.
This is in my "functional C++" style, but you can write pipe helpers which sort of do the same thing:

    Result<SendResult> result = pipe(getExpiredUsers(db))
        .then(generateExpireyEmails)
        .then(sendEmails)
        .result();

    if(isError(result)) {
        return result.error;
    }
If an error result is returned by any of the functions, it terminates immediately and returns the error there. You can write this in most languages, even imperative/oop languages. In java, they have a built in class called Optional with options to treat null returns as empty:

    Optional.ofNullable(getExpiredUsers(db))
        .map(EmailService::generateExpireyEmails)
        .map(EmailService::sendEmails)
        .orElse(null);
or something close to that, I haven't used java in a couple years.

C++ also added a std::expected type in C++23:

    auto result = some_expected()
        .and_then(another_expected)
        .and_then(third_expected)
        .transform(/* ... some function here, I'm not familiar with the syntax*/);
shortrounddev2··on Simplify your code: Functional core, imperative shell
In linq (C#)

    IEnumerable<User> getExpiredUsers(DbSet<User> users)
        => users.Where(u => u.ExpiresAt < DateTime.UtcNow);
Such simple logical expressions (called expression trees) get converted to SQL queries
shortrounddev2··on Society will accept a death caused by a robotaxi, Waymo co-CEO says
Americans accept pedestrian deaths caused by huge monster truck F350s every single day. Not that an AI powered car running people over is nothing, but nobody in the US gives a shit about pedestrian deaths
shortrounddev2··on It's insulting to read AI-generated blog posts
Whenever a PM at work "writes" me a 4 paragraph ticket with AI, I make AI read it for me
shortrounddev2··on Advent of Code 2025: Number of puzzles reduce from 25 to 12 for the first time
I think the majority of people celebrating christmas are not doing so for religious reasons
shortrounddev2··on Advent of Code 2025: Number of puzzles reduce from 25 to 12 for the first time
I thought the purpose was to be a fun thing we used to kill time over the holidays
shortrounddev2··on Why I code as a CTO
Ive worked on both ends of the spectrum and id prefer too much process to too little

With too little process, people release bugs that I then have to scramble to fix. The CEO who pushed to skip QA and unit testing and everything in the name of release never has to deal with the consequences of their impatience

shortrounddev2··on US hits $38T in debt. Fastest accumulation of $1T outside pandemic
The federal government wipes its ass with the constitution every day, why shouldn't states do the same?
shortrounddev2··on US hits $38T in debt. Fastest accumulation of $1T outside pandemic
The sick man of Europe gets sicker
shortrounddev2··on US hits $38T in debt. Fastest accumulation of $1T outside pandemic
If you ever go outside of the US it is shocking how much other countries do with so little. Countires with a tenth of our population and an even smaller fraction of our GDP have cheap, efficient, high quality health care systems and clean, convenient public transportation. They have well equipped classrooms with teachers who don't have to work two jobs to get by. They have highly skilled police forces whose training is measured in years, not weeks. These countries are not perfect, but they seem to govern far nore effectively than the richest country on that planet. I'm not even talking about an idealized Europe; some southeast asian countries are like this too.

So yeah, where is the money going? When you combine state, local, and federal, the US spend nearly a trillion dollars a year on education (more than our military!) but where does it go? We regularly churn out illiterate graduates and teachers have to commute from another state away in order to find somewhere affordable to live. We spend more money per capita on healthcare than anyone else in the world for worse coverage and worse outcomes.

I hypothesize that the dollar's status as the world reserve currency is actually a bad thing. It makes it cheap for us to borrow money and as a result encourages all kinds of social pathologies associated with ZIRP

shortrounddev2··on Scripts I wrote that I use all the time
> Why prioritise node instead of jq?

In powershell I just do

    > echo '{"foo": "bar"} | ConvertFrom-Json | ConvertTo-Json
    {
        "foo": "bar"
    }
But as a function
shortrounddev2··on Doing well in your courses: Andrej's advice for success (2013)
Depends on your note-taking strategy. I would just transcribe what the professor was saying and ended up not paying attention. I turned my brain into a transcription machine and didn't take any time to grok anything I heard, then I had to re-read the textbook later. Nobody ever "taught" me how to study, so I was bad at it. Failed my way through high school and dropped out of college
shortrounddev2··on Abandoned land drives dangerous heat in Houston, study finds
Something is more profitable than nothing, always
shortrounddev2··on Replacement.ai
Manual labor was replaced with factory labor, factory labor replaced with knowledge work. If knowledge work is replaced with AI, what do we go to then? Not to mention that the efficiency gains of the modern tech industry are not even remotely distributed fairly. The logical extreme conclusion of an AI company would be where the CEO, Founder, 100% owner, and sole employee coordinates some underling AIs to run the entire company for him while he collects the entire profit and shares it with no one, because American government is an oligarchy
shortrounddev2··on Abandoned land drives dangerous heat in Houston, study finds
Land value tax would fix this
shortrounddev2··on Why the open social web matters now
I believe the corporation for public broadcasting should provide funding for local member stations who run their own nodes on fediverse sites, and then federate those nodes together
shortrounddev2··on Zorin OS 18
God we can only hope so
shortrounddev2··on Show HN: JPlus – The Java Superset Language
This is cool - I often wish java had some of the nice features of C# without having to go all the way into Kotlin.

In your post, you say:

>Compile to standard Java bytecode and run anywhere the JVM runs

But in github, the readme says that it transpiles to Java. Does this compile to bytecode, or transpile to java?

shortrounddev2··on GitHub code review is nigh unusable
I'm a fan of Gitlab. Moved all my repos over there and shut down my github account
shortrounddev2··on How I bypassed Amazon's Kindle web DRM
Yes, my wife uses it all the time
shortrounddev2··on Steve Jobs and Cray-1 to be featured on 2026 American Innovations $1 coin
Side effects of the vaccine basically. I guess technically headaches or fatigue would be a vaccine injury

But I use the phrase "thought to" intentionally: I don't know what the science says now, but at the time there were reported cases of myocarditis in people who took the JnJ vaccine. This was like May of 2021, so I don't know if the science ever panned out on that, but it definitely drove discussions around health equity with the vaccine

shortrounddev2··on LINQ and Learning to Be Declarative
I like to return IEnumerable instead of List<>:

    IEnumerable<Product> GetExclusiveProducts(List<Product> source) =>
        source
            .Where(p => p.ProductTitle == "iPhone")
            .OrderBy(p => p.TypeOfPhone);
That way the user can decide if they want a List or Array or Set or whatever, and you can also add additional queries to this

Also better to pass IEnumerable to the function instead of List, for the same reasons

Also I forget the syntax but you can use an extension method to add it to linq I think

shortrounddev2··on JustSketchMe – Digital Posing Tool
For some reason reminds me of making stop motion animation with Garry's mod
shortrounddev2··on Steve Jobs and Cray-1 to be featured on 2026 American Innovations $1 coin
During the pandemic there was controversy about who received Moderna/Phizer vs who received J&J's vaccine. They were giving black neighborhoods J&J because it didn't have as strict refrigeration requirements, and a lot of black neighborhoods don't have a nearby pharmacy which can store the vaccines. J&J was thought to be less effective and had a higher rate of vaccine injury though.
shortrounddev2··on America Is Sliding Toward Illiteracy
Tech illiteracy at some age groups is insane to me. I understand that my 93 year old grandma wasn't great at this sort of thing. But I encounter people who are in their 20s who don't know how to print a document, or people in their 50s falling for obvious AI scams. Didn't Jurassic Park come out in 93? Did they just think people were getting eaten by dinosaurs?
shortrounddev2··on Anthropic's 'anti-China' stance triggers exit of star AI researcher
I think neither he nor Anthropic are wrong. China is an adversarial nation of the United States. If his allegiances are to the PRC, he is justified in leaving.
shortrounddev2··on Why Americans don't want to move for jobs anymore
especially since moving for work usually means moving to somewhere more expensive. If I live in a lower COL city and get laid off, my savings would carry me a lot further. If I move to San Francisco or New York for a job and get laid off, I'd have to find a new one immediately
← PreviousPage 3 of 34Next →