Hacker Newsnew | past | comments | ask | show | jobs | submit | CSDude's commentslogin

I wish if err != nil return err was just 1 token.

Joking aside, as much as Go's stdlib and tools do the heavy lifting here, Go's verbostiy and expressing simple things in lots of lines worked against me most of the time.


Heh, I checked https://platform.openai.com/tokenizer to see if they made it 1 token, it's not.


I've had a really terrible time getting LLM to properly handle errors as return values. It seems that bubbling up errors, in a side channel, to a contextually relevant point in the code (exceptions) seems MUCH easier for LLM to reason about/implement properly.

Maybe my problem is I'm using a language with exceptions, so trying to go against the statistical grain, with return values, is just too much.


Exceptions are inherently better for high-level code, where basically every loc can fail and 99% of the time you only want to bubble that up. You only want errors as values in systems code, where exceptions would be landmines. Rust and Go both did that because they were at least originally designed for systems code.

Also, Go makes it way too easy to accidentally swallow an error. Rust doesn't have that problem.


I createad an MCP server for my company I worked at for almost a year now with all Dynamic Client Registration (DCR). We just ignored the state as with most other MCPs wre doing it, just used it for logging.


I know its not going to be there but wish we had Windows as well.


Install Windows 11 ARM under the macOS "UTM" App. This lets you run x86 Windows programs on Apple silicon.


A major use case for LocalStack is CI/CD.

When you're running hundreds of integration test suites per day in CI pipelines, the free tier is irrelevant. You need fast, deterministic, isolated environments that spin up and tear down in seconds, not real AWS calls that introduce network latency, eventual consistency flakiness, rate limits, and costs that compound with every merge request.

It'd be great to just use AWS but in practice it doesn't happen. Even if billing doesn't, limits + no notion of namespacing will hit you very quickly in CI. It's also not practical to give every dev AWS account, I did it with 200 people it was OK but always caused management pain. Free tier also don't cover organizations.

> they MUST learn that there are no hard spend limits, and the only way to actually learn it, is to be bitten by it as early as possible

This is a bizarre take. "The best way to learn fire safety is to get burned." You can understand AWS billing without treating surprise charges as a rite of passage.


All my vertical videos in iCloud show up cropped horizontal for some reason. If I go to edit I see the whole video. I really do not want to trust any cloud provider to maintain my years of archives of family photos and videos. Glad things like this exist. I just need properly date-foldered files, without no duplciates. Is that so hard?


Sounds like the contact sheet view is just using square preview thumbails?


All my vertical videos in iCloud show up cropped horizontal for some reason.

Turn your phone? /ducks


It allows you to mock the whole universe so it becomes a hammer instead of nicely designed functions, interfaces.


I had a similar experiment ~10yr ago, see relevant discussion https://news.ycombinator.com/item?id=11064694

And updated domain: https://mustafaakin.dev/posts/2016-02-08-writing-my-own-init...


Interesting ... Do you still maintain the site?


I used Xmonad for a while, then switched to awesomewm used it for years. It was good on a 1366x768 screen to use space efficiently.


Imagine being a world class F1 driver and (someone) still have to upload your CV somewhere.


a couple of weeks ago Verstappen raced in a "Advanced-amateur" competition in Germany - he had to be "trained" by an official instructor in a restricted car because he hadn't raced there before

I imagine the instructor "What could I teach Verstappen now..."


There is an embedded one in DuckDB for a while now and it's great. I get the apeal of yours but this one is much easier to use for same cases:

https://duckdb.org/2025/03/12/duckdb-ui


This is not a self hosted one though. You can not use default ui offline, you can not guarantee data safety


It's very weird they don't offer it by default, but there are workarounds.

(You can use it offline)

https://github.com/duckdb/duckdb-ui/issues/62


some of the comments on that thread are surprising. Are people not aware that software can be bundled in such a way as to run on machines not having internet access?


the background is this UI is the MotherDuck UI for their cloud SaaS app. MotherDuck is a VC-backed DuckDB SaaS company, not to be confused with DuckDB Labs or the DuckDB foundation

MotherDuck decided to take their web app UI and make it a locally usable extension via DuckDB. however as noted in that thread, the architecture is a bit odd as the actual page loads once the extension is running from MotherDuck’s servers (hence the online requirement)

I don’t think it’s intentionally malicious or bad design or anything, just how this extension came about (and sounds like they’re fixing it)

disclaimer: I do know and actively work with the MotherDuck folks, I’ve also worked w/ DuckDB Labs in the past


Thanks, any recommendations on where to find the best information reference/resource for DuckDB-Wasm?


> MotherDuck is a VC-backed DuckDB SaaS company, not to be confused with DuckDB Labs or the DuckDB foundation

Separate entities, but cooperative/comprised of many overlapping people, right?


Afaik no overlapping people


Anyone know if there is a similar selfhosted/run local option?


`duckdb -ui` and you can launch a local server bound to 127.0.0.1


Doesn't do charts though (meaning: it does statistic histograms on your columns but no custom chart like OP's software does).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: