Better HN
topnewbestaskshowjobs
Log inSign up

olivergregory

68 karma · joined Apr 20, 2023 (3y ago) · 33 submissions

Submissions

comment 5d ago · link · parent

Every card, permanent, spell, etc. is an object in Magic. So I’m using a set multimap, with the key being the zone the card is in. Those filters you mention are actually cheap until you get unrealistic numbers like those that let you win this turn or the next one. You could create an index of the mana cost, the types, but that ends up being over-engineered.

I’ve tested using an ECS just for handling the core of the objects, but that lead nowhere event though it seemed a good fit from some perspectives.

I’m not surprised that an array is actually efficient after trying so many implementations.

comment 2mo ago · link · parent

Living in Belgium, my country has people producing stuff. But does it have a small business producing that one specific item I absolutely require for my project? It’s very likely it doesn’t. If I extend my search to the whole of EU, yes, probably one or two small businesses make those. Are there sufficient people in Belgium to buy this item if I wanted to create a small business to do so? No.

This tax is probably closing a loophole, but it’s badly designed and hurts small businesses more than anything because small businesses are the most likely to send to other countries to build their initial base. This tax reduces the discovery of what people do in ways no other tax did before.

comment 8mo ago · link · parent

I built codix because AI coding agents waste a lot of tokens grepping and guessing their way through codebases. They search for symbols by name, get imprecise results back, and sometimes just hallucinate definitions that don't exist.

codix indexes your code into a local SQLite database using tree-sitter, then provides precise symbol lookups, reference finding, and relationship queries (callers, callees, implementations, supertypes).

It also supports refactoring: `codix rename` finds every occurrence of a symbol across the codebase using AST analysis (not text search), shows you a dry-run diff, and applies it with --apply.

    cd your-project
    codix init
    codix find UserService
    codix callers save
    codix impls Repository
    codix rename save persist          # dry-run
    codix rename save persist --apply  # apply
It supports Go, Java, JavaScript/TypeScript, Python, and Rust. The index auto-refreshes on every query, so it's always current.

The output is designed to be token-efficient for agents, but it works fine for humans too. Adding it to your agent is one line in CLAUDE.md or AGENTS.md.

MIT licensed, written in Rust, ~5k lines. Contributions welcome — especially for new language plugins.

4.

Codix: Code indexing and refactoring tools for AI agents(github.com ↗)

3 points · by olivergregory · 8mo ago · 1 comment

comment 10mo ago · link · parent

Don't you mean Thales?

comment 1y ago · link · parent

I litterally gained one hour off my charged battery when I switched these two settings off, just a week ago, and I keep my browser up to date. So not for me.

comment 1y ago · link · parent

That’s the extension Privacy Badger.

comment 1y ago · link · parent

Set the browser.ml.chat.enabled and browser.ml.enabled to false as they intensively use the processor and drain the battery. All that to just find the best name for your tab groups. I prefer to have my laptop last one more hour instead.

comment 1y ago · link · parent

It seems nice. However is there any way to query arrays within the datastructure itself? Or go deeper in the hierarchy, such as "model.cost"?

comment 1y ago · link · parent

Calls it "correct the map", manages to write "Belguim" instead of "Belgium".

comment 1y ago · link · parent

NoScript does the job. Not a single ad in sight.

comment 1y ago · link · parent

She allowed the law to pass by not voting against. There was enough abstention for her voice to matter.

She stole money from the EU, an act she did after being voted MP. She couldn’t have done it if she had not been elected. So, basically she was elected, stole money and she still should not be barred from the next presidential election after she allowed that ban law to be voted?

She chose the path, she should face the consequences.

comment 1y ago · link · parent

The grades are explained at the bottom of the page.

Regarding Startpage, It's not mandatory to show the cookie banner if you don't track. Startpage doesn't track you at all, so it's grade A.

Wikipedia has that all the bad things happen to your account except for the tracking, but you can still use Wikipedia without using an account. I agree that it's a B.

I'm not familiar enough with Tor to answer that grade.

comment 1y ago · link · parent

Yes, but not by CNN, even though they should have known better.

comment 1y ago · link · parent

He's an opportunist, always has been, always will be. Opportunists don't have sides: they roll all the times.

comment 2y ago · link · parent

It's not about the effectiveness: it's about the message.

comment 2y ago · link · parent

Saying it won't make it real. It's a myth, it's been debunked several times. The myth persists.

comment 2y ago · link · parent

They won't leave.

For 50 years in the US, the maximum tax rate was right below 80%. That didn't make the country poorer, on the contrary: that was the time the US asserted itself as the main planetary superpower. "The rich will leave" is a myth. Probably some opportunists like Elon Musk will, but he's just the (extremely) vocal minority. Most recently in Norway after a targeted tax, out of 230k+ millionnaires and billionnaires, a lot vocally said they would leave while only 30 actually did, which was just marginally over the usual migration rate for that category of people.

So even though no one ever proved that "the rich will leave" (while the opposing has been shown numerous times) over the last century, the simple workaround is to make the tax global or at least as wide as possible, which is what is attempted here.

comment 2y ago · link · parent

I don't see any browser extension. Is that in the pipe?

comment 2y ago · link · parent

An install file for Firefox.

comment 2y ago · link · parent

I don't get how I can download all (free) icons locally, to use in another framework than react. Anyone could bulk download without having to favorite each icon independently?

comment 2y ago · link · parent

Slig, I don't know how to reach you other than here.

Today's hardest puzzle (#110 @ 2024-03-23) says that "Theodore's favorite player is Italian".

The list comprises of the following players: Di Stefano (Argentina then Spain), Maradona (Argentina), Ronaldinho (Brazil), Ronaldo (Brazil or Portugal, depends on who the game speaks about), Rooney (England).

That's roughly what I don't like with your implementation: the grids cannot be solved by themselves. Some external knowledge is required, and in this case, the knowledge is incorrect. Basically, the hint here should say: "Theodore's favorite player is <whoever the AI thinks is Italian>".

comment 2y ago · link · parent

It's very nice. I couldn't finish the hardest difficulty: I must be missing something.

I've found some issues: - when refreshing, all progress is lost, including previously solved puzzles. I guess that you could store the current state of the daily puzzles in a cookie or on the drive. -

And I've some suggestions: - maybe add a grid like this one[0] in a tool or something to help us solve the hardest puzzles. I don't know if it's relevant, but i feel it is. I didn't need to use this kind of grid until the hardest puzzle, but again, I couldn't finish it, so I'm not sure it's useful. - make the coloring of the grid optional: they're distracting when solving the puzzle, I think

Anyways, very nice! I can't wait for tomorrow's puzzles :)

[0]: https://murdle.com/

comment 2y ago · link · parent

I wish it was possible to manually check the clues since I'm writing them down on paper.

comment 2y ago · link · parent

Yes, that's correct. The 2 starts there.

comment 2y ago · link · parent

Doesn't copyright apply the moment of release? Since it's not released, it's not copyrighted. The rest would indeed apply, of course, but I'm not sure about copyright.

comment 2y ago · link · parent

I don't know if I want to subscribe. But what I do know is that I don't the price, but to know the price I must first provide my e-mail address. Nope! Give me the price before I give you my e-mail address.

Edit: Oh, it's behind JavaScript. I disable it all the times. Well, whatever.

comment 2y ago · link · parent

Reminds me of this simplified git-like project[0] once featured here. I learned a lot about git with this project.

[0]: https://www.leshenko.net/p/ugit/

comment 3y ago · link · parent

Well, the deal is indeed they advertise to me. But they may not tell "you pay with your privacy or your money". That's the law. There are other forms of advertising that are not based on my private data. Those forms of advertising pay less? That's the problem of Meta, not mine.
12