HNHacker News
TopNewBestAskShowJobs

mg

7,565 karma · joined August 19, 2011

I like to build web projects and to meet like-minded people.

www.gibney.org

submissionscomments
mg··on I'm going to build my own OpenClaw, with blackjack and bun
But does the agent have access to a whole computer to write those tools?

Couldn't it write them in a web based dev environment?

mg··on I'm going to build my own OpenClaw, with blackjack and bun

    how would claude code work from a browser environment?
If you want an agent (like OpenClaw) to write software, why have it use another agent (Claude Code) in the first place? Why not let it develop the software directly? As for how that works in a browser - there are countless web based solutions to write and run software in the cloud. GitHub Codespaces is an example.
mg··on I'm going to build my own OpenClaw, with blackjack and bun
I wonder if we really need agents to have control of a full computer.

Maybe a browser plugin that lets the agent use websites is enough?

What would be a task that an agent cannot do on the web?

mg··on The engine of Germany's wealth is blocking its future

    German chancellor Friedrich Merz ... 
    lashed out at German workers to
    “simply do a little more,”
Germany literally pays people to do nothing.

A friend of mine, an engineer who works in the German car industry, recently told me that nowadays he has a lot of free time. Because the company he works for has so few orders that the company is granted "Kurzarbeitergeld" - the government pays 60% of the salary if the employees work less.

That blew my mind. If I had fewer orders, I would work more to increase the quality of my product and my efficiency. Working less as a reaction to losing market share seems completely counterproductive to me.

mg··on MacBook Air with M5
What basic office tasks are that?

The last time I was excited about the performance of local computers was in the 90s I think.

Modern laptops are so insanely fast. Not sure if they are 2x, 10x or 100x faster than I need them to be. But I never hear fans. I never have to wait for the machine these days.

mg··on MacBook Air with M5
The one thing that interests me most when it comes to laptops these days is weight. So I jumped right into the tech specs section and looked it up. Since this is the "Air" laptop of the company that is popular for thin and lightweight devices, my hopes were high.

But ...

The 13 inch version is heavier than a ThinkPad X1 Carbon. Which has a 14 inch screen and can run Linux.

mg··on EU mandates replaceable batteries by 2027 (2023)
I'm not sure. I have not seen them on any large retailer in the USA like Amazon, Walmart, Newegg, BestBuy etc.

Maybe if someone here is in the USA and has bought one, they can chime in and tell where they got it from?

mg··on EU mandates replaceable batteries by 2027 (2023)
I have been maintaining this chart of phones with replaceable batteries available in the USA for 10 years now:

https://www.productchart.com/smartphones/removable_battery

Man, is it empty these days. The chart used to be pretty full. Now it only has about 1% of all phones that are in the Product Chart database. As the other 99% have fixed batteries.

I'm looking forward to see if the EU decision will push some companies to do this for their US versions too and revive the chart.

mg··on America's $1T AI Gamble
Are you located in a country where Google does not yet show AI answers?

In most countries, AI answers are the central aspect of Google now. Not the ranked pages.

mg··on America's $1T AI Gamble
I don't think we have seen "all functionality" yet.

We have not seen iterative AI use for example.

The use case, where you tell the model "Solve this task. Then solve it again. Keep the better solution, then solve it again. On and on. Tomorrow, show me the best solution.".

And also not the "Run a company on your own" use case.

Those might make people and companies use models full-time. The price of that will be way different from current subscription prices. The TCO of a single instance of a SOTA model is on the order of $100k per year.

mg··on America's $1T AI Gamble
The earnings do not need to come via direct monetization.

Google search revenue for example was over $200B in 2025. This revenue will be tightly coupled to the quality of their AI models in the future.

mg··on America's $1T AI Gamble
Sometimes it works. Steve Jobs aimed for 1% market share with the iPhone:

https://youtu.be/VQKMoT-6XSg?t=4605

Now it is at 20%.

mg··on America's $1T AI Gamble
My napkin-math approach to get a bird's eye perspective on the situation:

A $1T investment needs to produce on the order of $100B in yearly earnings to be a good investment.

Global GDP is about $100T.

So one way for things to work out for the AI companies would be if AI raises GDP by 1% and the AI companies capture 10% of the created value.

mg··on Termux
Is Termux still needed, now that new Android phones have a full Linux available?

I keep reading on https://www.reddit.com/r/androidterminal/ about user experiences with it and it seems pretty great.

mg··on The browser is the sandbox
This is a great example of how useful the File System Access API is.

On http://co-do.xyz/ you can select a directory and let AI get to work inside of it without having to worry about side effects.

The Fily System Access API is the best thing that happened to the web in years. It makes web apps first class productivity applications.

mg··on Why Is Greenland Part of the Kingdom of Denmark? A Short History
I wonder what would happen if the USA offered to pay $1,000,000 to every Greenlander if Greenland becomes part of the USA.

That would be just $50B - a pretty cheap way to increase the size of the USA by 20%.

mg··on New Lego smart-play system
I don't have kids, but if I did, I would probably not go for Lego but for 3D-Printing.

It shouldn't be hard to print pieces that can snap together. In all kinds of colors and all kinds of forms.

I imagine the adventure of printing new pieces would be a fun thing for the kids and the parents. And when the kids are old enough, they can print pieces on their own. And a bit later design pieces on their own.

Would there be any downside to this approach?

mg··on The most famous transcendental numbers
How did you test the output of Math.random() for transcendence?

When you apply the same test to the output of Math.PI, does it pass?

mg··on The most famous transcendental numbers
Three surprising facts about transcendental numbers:

1: Almost all numbers are transcendental.

2: If you could pick a real number at random, the probability of it being transcendental is 1.

3: Finding new transcendental numbers is trivial. Just add 1 to any other transcendental number and you have a new transcendental number.

Most of our lives we deal with non-transcendental numbers, even though those are infinitely rare.

mg··on Animated AI
Is there an error in the first video at 00:25?

https://www.youtube.com/watch?v=eMXuk97NeSI&t=25

It says the input has 3 dimensions, two spatial dimensions and one feature dimension. So it would be a 2D grid of numbers. Like a grayscale photo. But at 00:38 it shows the numbers and it looks like each of the blocks positioned in 3D space holds a floating-point value. Which would make it a 4-dimensional input.

mg··on You can make up HTML tags
My problem with custom tags is that they require a hyphen, and that makes it impossible to have consistency between tag names and variable names.

With classes, I can do:

    carList = document.querySelector('.carList')
With custom tags, that is not possible because variable names cannot have hyphens in them.
mg··on Font with Built-In Syntax Highlighting (2024)
Contenteditable plus the CSS Custom Highlight API (which highlights ranges instead of elements) might indeed allow for a good solution. But I have not yet seen an editor that does that.
mg··on Font with Built-In Syntax Highlighting (2024)
It seems to have the same problems all of the web based editors I have seen have. Either they capture ctrl+f and take away the native search experience. Or they have a broken search experience. This one is in the latter category.

When I hit ctrl+f on that page and type "export":

First it says "1 of 4 matches" but nothing is highlighted.

When I hit enter, it says "2 of 4 matches" and again, nothing is highlighted.

When I hit enter again, it says "3 of 4 matches" and the first match is highlighted.

When I hit enter again, it says "4 of 4 matches" and the second match is highlighted.

mg··on Font with Built-In Syntax Highlighting (2024)
This is interesting.

I have yet to see a good web based text editor with syntax highlighting. They all mess with the native search functionality of the browser. Because they can't just use a textarea for the edit area. With this approach, it would be possible.

I wonder how usable a Python version of this would be?

mg··on Arborium: Tree-sitter code highlighting with Native and WASM targets
That works on the text inside a textarea? Is there a demo showcasing this somewhere?
mg··on Arborium: Tree-sitter code highlighting with Native and WASM targets
Oh, you are right!

Hmm .. and the approach already shows its weaknesses when I play with it: When I search for something on the page, it gives me twice as many hits as there are. And jumps around two times to each hit when I use the "next" button.

I wonder if that is fixable.

mg··on Arborium: Tree-sitter code highlighting with Native and WASM targets
Give me a few more weeks and I will probably have something online. You can find me on social media or feel free to connect via email.
mg··on Arborium: Tree-sitter code highlighting with Native and WASM targets
I'm currently building an online 3D-Editor that supports OpenSCAD and Python as the input language.

The ease of use to highlight static text via Arborium seems nice:

    <script src="arborium.iife.js"></script>
    <pre><code class="language-python">
        def hello(name):
            print("Hello " + name);
    </code></pre>
But does it support editing highlighted text? If not, one would have to do some trickery by hiding a textarea and updating the <code> element on each keypress, I guess. Which probably has a thousand corner cases one would have to deal with.

And how would one add SCAD support?

mg··on Show HN: Boing
I just wanted to write about a similar observation when using it in FireFox on Linux:

When wiggle the spring, keep the mouse inside the white area until it is at rest, press CTRL+u to see the source code, move the mouse to close the source code tab and close it - for some magical reason the spring is moving again for a little bit.

mg··on The original ABC language, Python's predecessor (1991)

    DISCOVER THE SHOCKING TRUTH ABOUT HOW TO hello WITH name:
        PRINT "hello " + name
← PreviousPage 2 of 34Next →