News for hackers. Stuff that matters.

fprotthetarball

Re:Anthropic acquires Bun on Tuesday December 02, 2025 @01:42PM (#46124790)
I'm wondering if Bun would be a good embedded runtime for Claude to think in. If it does sandboxing, or if they can add sandboxing, then they can standardize on a language and runtime for Claude Code and Claude Desktop and bake it into training like they do with other agentic things like tool calls. It'd be too risky to do unless they owned the runtime.
Re:Claude Code Checkpoints on Thursday August 28, 2025 @09:16AM (#45051784)
> Git won't catch new files the agent is adding.

Another problem I inadvertently dodged by using Jujutsu with Claude Code :)

I tend to send a lone "commit" message to Claude when I think I'm in a spot I may want to return to in the future, in case the current path doesn't work out. Then Claude commits it with a decent message. It knows how to use jj well enough for most things. Then it's really easy to jj new back to a previous change and try again.

Re:What is going on with US weather radar today? on Tuesday July 15, 2025 @07:45PM (#44577139)
Does clear air mode pick up wildfire smoke? There has been an awful lot of that lately over the US from Canada and the West Coast.
Re:The missing introduction to Jujutsu version control on Sunday December 22, 2024 @03:55PM (#42489013)
There are still branches, but they aren't named by default. You give them names with "bookmarks", which you can push to remote git repositories as branches.

This lets you work on things without having to worry about giving it a name. This turns out to be pretty helpful when you're experimenting — just "jj new <revision>" and start editing. If it turns out to be something you want to share, "jj bookmark create <name>" and then you can push it. (You can also push without giving it a name, in which case you'll get a git branch with a name based off of the change id.)

Change IDs stay constant with each change, so you use those as a type of branch name when switching between the features you're working on.

Re:Htmx 2.0.0 has been released on Tuesday June 18, 2024 @05:35PM (#40722375)
No, I just stop and restart when I feel like I'm in a good spot. Nothing fancy.
Re:Htmx 2.0.0 has been released on Monday June 17, 2024 @06:38PM (#40711966)
My backend for a simple web application I'm working on is entirely in Rust. Highlights:

- axum: web application framework - https://github.com/tokio-rs/axum

- axum-htmx: axum extractors, responders, guards for htmx - https://github.com/robertwayne/axum-htmx

- rusqlite: SQLite bindings - https://github.com/rusqlite/rusqlite

- maud: HTML templating as a macro - https://maud.lambda.xyz

The way maud lets you compose markup works very nicely with htmx. The HX-Request header lets you know if the request is coming from htmx or if it is a regular request. You either call the top-level function if it's a regular request to get the entire page rendered, or call a subset of functions to get the appropriate partial rendered if it's an htmx request.

It's also nice to easily have tests for the rendered pages. My unit tests cover verification of the rendered HTML, too.

Re:piku: The tiniest PaaS you've ever seen on Sunday June 09, 2024 @04:08PM (#40627183)
I have a similar setup, using snare to handle the webhook endpoint: https://github.com/softdevteam/snare

GitHub will call the webhook after a push to main and a successful test suite run. Snare runs a shell script on my server to git pull, build, deploy, and call a cronitor.io hook for monitoring deploy success.

I've been pretty happy with how relatively simple it is and how well it works.

Re:OpenAI's chaos does not add up on Monday November 20, 2023 @12:03PM (#38350592)
> I have a pet theory about the "AI revolution" or AGI that keeps getting relentlessly confirmed as events unfold: Microsoft sees a massive financial upside to this technology that no one else sees and this is being kept under wraps.

If AGI is "a highly autonomous system that outperforms humans at most economically valuable work", I am Microsoft and have AGI, and other businesses do not, I am putting it charge of a Windows VM in Azure and offering it to companies to run aspects of their businesses. Why stop at "GPTs" if I can offer you specialized Clippys?

Put all your data in Microsoft 365, let Clippy do its thing, and you're saving a lot of money on not supporting people. Microsoft gets their cut, and you get to fire your employees. Win-win.

Re:Searx is no longer maintained on Thursday September 07, 2023 @09:25PM (#37428128)
Kagi allows you to provide custom CSS if you want to tweak it to your liking. I've used it to remove some of the widgets I don't personally find useful, and to replace some icons.

https://help.kagi.com/kagi/features/custom-css.html

I bought a Flowbee in 2009 for $83 total. I cut my hair around once every 3 weeks, so I have paid 34 cents per cut so far, ignoring electricity cost of running a vacuum and the Flowbee for a few minutes.
This is also my experience. I regularly fill up my 8 qt as high as I'm able to, as long as I think I can carry the pot without spilling.

It takes 30-45 minutes to cool down enough to depressurize, but the lid is always clean so the food is likely staying in the pot.

Re:Run Llama 2 Uncensored Locally on Wednesday August 02, 2023 @07:22PM (#36979274)
Ollama is the best I have seen if you want to play around with LLMs.

After installing the application and running it, you run "ollama run <model name>" and it handles everything and drops you into a chat with the LLM. There are no dependencies for you to manage -- just one application.

Check out the README: https://github.com/jmorganca/ollama#readme

Re:Custom Instructions for ChatGPT on Thursday July 20, 2023 @07:52PM (#36808382)
I have heard that shared conversations would also share the custom instructions. This is probably not ideal if people are putting personal information in them. Guessing they're plugging that hole.
Joplin does, and it works rather well. I have been planning on migrating my notes since the acquisition, but wanted to see what their next move was.

Joplin seems like the best at handling my mix of text notes, PDF files, and images at the moment. If it doesn't work out, though, at least I have my data in a more open form.

Re:OpenAI: Introducing SuperAlignment on Wednesday July 05, 2023 @06:08PM (#36607865)
A minor inconvenience when GPT-4 has no problem learning how to use a code interpreter.
Re:Fastmail Is Down on Friday June 30, 2023 @10:29AM (#36535563)
> But can't access it through my home internet, but my phone is just fine if I turn off wifi.

Thanks for the tip. I can't access it via my home provider, but T-Mobile works. Interestingly enough, I'm getting new email notifications on my home provider; I just can't read the mail through it. They're probably using an unaffected Google service for notifications.

Re:Dust XP1 switches to GPT-3.5-turbo, is now free to use on Wednesday March 08, 2023 @12:28PM (#35071964)
"store them for debugging purposes" is a bit concerning if they then become available if law enforcement requests data, or if you guys are hacked and everything leaks.
Edge already refuses to install it through the .CRX file, even in developer mode. I have it installed by loading the unpacked version using these instructions:

https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean...

Re:Ask HN: What $500-2500 product improved your 2022 on Friday January 06, 2023 @06:45PM (#34283051)
I bought a Miele canister vacuum in 2008. Still going strong after 15 years and many pet hairs. They're built very well.
Re:Notepad Calculator on Wednesday December 28, 2022 @02:49PM (#34165048)
Settings > Calculator > Wolfram|Alpha. You provide a Wolfram ID from WolframAlpha and then "= ?" in a sheet will query WolframAlpha for the previous variable.

https://twitter.com/soulver/status/1592207142047698945

Re:Notepad Calculator on Wednesday December 28, 2022 @01:16PM (#34163919)
Soulver's WolframAlpha support is great, too. No need to switch to a browser to bring in some real world data.
Re:Recoll – Full-text search for your desktop on Thursday December 01, 2022 @01:16PM (#33820209)
If you are on macOS, HistoryHound is a decent browser search. It supports many browsers and even text you may just want to search from a directory.

https://www.stclairsoft.com/HistoryHound/

Re:Simon Peyton Jones – Haskell Foundation Podcast on Sunday October 16, 2022 @03:10PM (#33226308)
Type systems of functional languages are generally capable of representing more. You can have the type system validate application state at compile time for you, for example.

If it compiled before and worked and your refactored version also compiles, chances are you didn't break anything.

> He clearly wants https://nim-lang.org/

I think a lot of people want Nim, but either don't know about it, or some language feature turned them off. There are a few polarizing language design choices, but every language has something. Perhaps it just needs a killer app using it in some visible fashion (e.g., Lua in Neovim and Hammerspoon).

Sounds like this: http://jsquiz.wtf, but the website is now down.

Referenced here: https://www.aleksandra.codes/javascript-quiz

Looks like it may be available here: https://wtf-js-quiz.netlify.app

Re:Mastering Nim – now available on Amazon on Wednesday June 29, 2022 @06:48PM (#31926642)
I have no problem paying the same price for an eBook as print. If there is some reason a physical product must be involved, bundle both. I'll keep the eBook and donate the physical book to a library.
Re:Mastering Nim – now available on Amazon on Wednesday June 29, 2022 @05:40PM (#31926042)
I am hoping for an eBook. I don't have a lot of space for books, but my computer or phone is always nearby.
I've been trying out Nix lately and did something similar to get a croc binary. My system package manager didn't have croc and also didn't have the Go version required to compile croc, but Nix did have the latest Go.

Ran this:

  nix-shell -p go --run "go install github.com/schollz/croc/v9@latest"
and got it compiled. In retrospect, I should have just used the croc package in Nix, but the simplicity of this approach is a vast improvement over the alternative of getting Go myself and cluttering up my system with random build tools for one-off compilations.
> You don't have to share your sources with the rest of the company?

Everything is checked into the company BitBucket. People just don't spend much time looking at personal repositories. Every craftsman has their jigs.

I have been using Nim for everything lately. If I have a problem I would typically write a shell script for, I'll use Nim with nimcr. If the problem expands beyond a single file, I'm in a good spot to create a project and have production-ready solutions.

The interoperability with other languages makes it a safe choice if I find I need to integrate into an existing project. I'm never coding myself into a corner.

I've never used a language as versatile as Nim. It's my secret weapon at work. I want more people to use it, but I do like my advantage...

Older »