Better HN
topnewbestaskshowjobs
Log inSign up

osigurdson

5,068 karma · joined Aug 11, 2018 (8y ago) · 3,140 submissions

Submissions

comment 1d ago · link · parent

I initially tried GTK but found it added a lot of overhead. In my experiment, I used Wayland directly and draw the pixels using the CPU. Another trick was to render fonts directly. Using these approaches, the binary is under 300MiB and the initial PSS is < 1MiB.

I was thinking of maybe turning it into a minimal UI framework. I noticed that Quickshell apps in Hyprland are comparatively very large so something lighter weight might be useful.

comment 2d ago · link · parent

The Golang designers were trying to remove "modern" stuff from C++, Java, etc., because they felt these features didn't help anything. Most of that is uncontroversial except for enums and error handling.

If you wanted to try making a better Go, suggest trying to borrow any good ideas from Rust and Zig - not C++ and Java (Gorz maybe?).

Anyway, fun times that we can all make new languages now in an afternoon!

comment 2d ago · link · parent

Agree. I learned quite a few things in this exercise, actually. Another one is that conventional font rendering uses a lot of memory as well. Link below if anyone is interested:

https://github.com/osigurdson/mib

comment 2d ago · link · parent

I did an experiment to see how small and efficient I could make a desktop Linux app. One thing I learned is GPU adds a lot of memory overhead without much benefit for very basic apps.

comment 6d ago · link · parent

We should probably take a step back and think about why we ever did code review in the first place. I'd say there were two primary forms: "mentor review" and "peer review".

"Mentor review" describes the situation where there is a knowledge imbalance between the author and reviewer. It can represent an onboarding situation but it isn't static - there are always areas of the codebase that some people are more familiar with than others.

A "peer review" is more the situation where both the author and reviewer have similar knowledge in a given area. The purpose of the review here is primarily to look for oversights.

I'd say, the peer review should be deprecated at this point. AI can generally do a better job at looking for minor / localized problems. The "mentor" type review should stay however as it is still very valuable.

comment 6d ago · link · parent

I suppose it is worth studying but the result is unsurprising to anyone who has ever used AI for coding.

comment 1w ago · link · parent

If a million people generate code by hand, who owns it? The answer is the first person to copyright it. I don't know if it should change with AI.

comment 1w ago · link · parent

Open sourcing all AI generated code isn't practical and doesn't really even address the issue. An AI model is never going to be able to properly provide attribution or determine what code used what license anyway. Instead, GPL code should be removed from AI training sets going forward by default. Essentially, anyone who does not want AI to train on their code / work of any sort should be able to opt out.

While this will not impact current models, future models would eventually be free of it.

comment 1w ago · link · parent

I wanted to explore what is possible in terms of making a very minimal GUI app on Linux / Wayland. It's a Markdown scratchpad thing for throwaway notes https://github.com/osigurdson/mib.

I was able to get it down to under 300KiB and I absolutely love how fast it starts.

If interested, grab the code and see if you / your agent can make it even smaller!

10.

Show HN: mib – A 300KiB Vim-Style Markdown Scratchpad for Linux / Wayland(github.com ↗)

4 points · by osigurdson · 1w ago · discuss

comment 2w ago · link · parent

>> to me Go is the new C compiler

In what sense? Go has a GC and binary sizes are relatively pretty huge. Its closer to Java and C# than C.

comment 3w ago · link · parent

Incredible that SO sold for $1.8B at one point.

comment 4w ago · link · parent

>> If you have suggestions on how to name our products better, I'm all ears

<version>-<size>

Where <version>: 6.0, 6.1, etc., and <size>: xs | sm | md | lg

E.g. 6.1 Terra = 6.1-sm

If you eventually make specializations like "math" and "jokes" then I would call it something like 6.1-jokes-sm.

comment 1mo ago · link · parent

>> Claude Code lives in its own repository, separate from the monorepo

I thought mono meant one.

comment 1mo ago · link · parent

What are some use cases (if any) that the language is not suitable for?

comment 1mo ago · link · parent

Even in the M7, I doubt AI is having much impact other than benefiting from AI spending. Its hard to point to any non-AI products in the M7 that have meaningfully improved since 2023.

The problem isn't that "AI doesn't understand..." this or that, as concluded by the article though. Its more a lack of creativity and incorrect reasoning about what AI can and cannot do. For one, whole role replacement is pure fiction and likely will never happen with LLMs. I expect most businesses will look very different in the next 10 years due to AI and it will not be smooth as the needed creativity will mostly happen in startups (and perhaps companies that can truly operate like startups) and diffuse out from there. I'd expect a lot of churn in the S&P493 and even the M7 most likely.

comment 1mo ago · link · parent

I think you've answered your own question. The models simply aren't that good yet. If they were, the prompt would be something like "Find the most lucrative product that we can build. Then build it and start selling it. No mistakes".

comment 1mo ago · link · parent

The might actually know real design principles vs what ever we made up in the 00s.

comment 1mo ago · link · parent

Although I was personally fairly invested in UML, OO, etc., in the 2010s, it is undeniably true that classes, inheritance and all that is incredibly out of fashion today - people just found it didn't really help. It's interesting that this is now the solution to AI coding.

comment 1mo ago · link · parent

When I first saw this I was convinced it was AI slop. Nope! This is absolutely incredible. I've also never really resonated with Tesla aesthetic in the past but they really nailed it here imo. This car looks phenomenal - I hope this style trickles down to other models.

comment 1mo ago · link · parent

You're thinking the whole AI boom is just a front for crypto mining?

comment 1mo ago · link · parent

Beyond a certain scale, humans cannot organize themselves in a completely altruistic manner, even in Europe. The best we can hope for is for gatekeepers to mostly wield their power for the good of most people - we have to accept some error rate. Making all such practices illegal would only serve to make things less visible with little actually changing. It might even lead to more corruption.

comment 1mo ago · link · parent

Answering my own question. Andrew says "we almost had it but ripped it out" ... here: https://youtu.be/zwi5b5xSsKA?t=2711.

comment 1mo ago · link · parent

I suspect they can't easily tell the difference between a high quality LLM based contribution and a low quality one.

comment 1mo ago · link · parent

Curious as to the state of evented IO / io_uring in this version.

comment 1mo ago · link · parent

I can't imagine many situations where you have many cpu bound go routines. Most people aren't doing SPMD / open mp / similar in Go or other GC type languages. The main point is efficiently waiting for IO with an understandable programming model.

comment 1mo ago · link · parent

Haha! Laughing at my own comment: "a goroutins shares memory". The iPhone keyboard wins again.
12345
105