News for hackers. Stuff that matters.

jiaaro

Re:Has AI Tells on Wednesday October 14, 2026 @01:48PM (#50091828)
I don't see the source code, where did you find that?

[Edit] Or are you implying that readers should direct an LLM at the entire article and expect an equivalent tool to be produced

Re:Avoiding Duplicate Objects in Django Querysets on Tuesday January 27, 2026 @07:08PM (#46789097)
Exists is a useful tool that you should certainly know how to use. Whether or not it's faster than distinct depends on the rest of the query. I've optimized queries where distinct is faster than exists. It's been some time, but I think it boils down to the relative sizes of the tables and how many of the exists queries actually find something (and how often they find more than one something).

Also, some databases (like clickhouse) allow for `any` joins which avoid producing duplicate rows. For example:

    select author.*
    from author
    inner any join book on (
        book.author_id = author.id 
        and book.title like 'Book%'
    )
Re:Kafka at the Low End on Wednesday February 19, 2025 @03:54PM (#43107524)
Random and round robin partitioning are the configurations being discussed.

The main point of the article is that low message volumes mean you can get unlucky and end up with idle workers when there is still work to be done

Re:Oracle's Jump to Nashville Surprises Austin on Thursday April 25, 2024 @03:43PM (#40162099)
The linked article says, in reference to Oracle relocating its HQ to Austin:

> Oracle, which was founded in Santa Clara, Calif., in 1977, later had its headquarters in Redwood City. The software giant, at the time of its move to Texas, said that relocation was to allow a more flexible approach to its workforce

> The company had neither asked for nor received economic incentives from Austin to relocate, said city officials. Nashville pledged $175 million in incentives and the state of Tennessee $65 million to help build the Oracle campus in 2021

The main difference is that you wouldn’t instead drive the whole way instead once you find out the risk. But people do drive the same places they fly
Re:Show HN: Sqlbind a Python library to compose raw SQL on Monday February 26, 2024 @02:15PM (#39515639)
`str(queryset.query)` does not give you executable SQL. Query parameters are not escaped or encoded in that representation of the query. That escaping/interpolation of query parameters is performed by mogrify. I agree the name is odd, and I don't know why they use it other than "transmogrify" being an obscure word for "magically transform".

debug_toolbar and silk are both tools that show you what queries were executed by your running application. They're both good tools, but neither quite solves the problem of giving you the executable SQL for a specific queryset (e.g., in a repl).

Re:Show HN: Sqlbind a Python library to compose raw SQL on Monday February 26, 2024 @01:18PM (#39514892)
If you use postgres, psycopg provides `cursor.mogrify(query, params)` which returns the actual query that will be executed . For example:

    cursor.mogrify(*queryset.query.sql_with_params())
Alternatively, you can set the log level of the `django.db.backends` logger to DEBUG to see all executed queries
On the other hand, these things see a lot more annual miles than consumer vehicles so the payback period should be shorter. I agree though, that probably it would require some kind of government involvement to get broad adoption.

Also, I imagine it's easier to find extra space for batteries in the the trailer than the tractor.

Regenerative breaking seems like a more important improvement though.

I think the suggestion is that a spreadsheet is the not the right tool for the job.

There is very likely value in dedicated genetics-specific software, even in the form of an excel add-on.

[edit] Here's one, and it's free: https://biology-assets.anu.edu.au/GenAlEx/Welcome.html - so maybe this change from microsoft was necessary

Re: on Wednesday August 30, 2023 @03:17PM (#37327495)
Based on the paper Dang linked, it appears that epoxy is involved in all queries to all data stores it coordinates
Re: on Wednesday August 30, 2023 @03:15PM (#37327473)
Does Epoxy use postgres' own transaction ids across datastores? If not, does it implement its own "transaction id horizon" like postgres has so that you can assume all transactions before a certain counter are committed?
I’m not an industry expert either, but ear plugs don’t block sound taking other paths to the ear drum like bone conduction. The mix knob on this limiter can’t be turned to 100%
Re:Kafka Is Dead, Long Live Kafka on Monday August 07, 2023 @12:34PM (#37036771)
The blog post mentions that partitions are too low-level an abstraction to program against. Does that mean WarpStream doesn't use partitions?

Do you provide any ordering guarantees like Kafka does at the partition level?

Re:Understanding Database Indexes in PostgreSQL on Thursday May 18, 2023 @12:46AM (#35984210)
And this is even true for some more exotic indexes where you might not expect it like exclusion constraints with gist. It’s much more expensive to maintain with a range as the first column and a highly selective id for the second column than the other way around (you want the highly selective column first)
Re:Freedom Clock on Saturday March 25, 2023 @06:00PM (#35307895)
As an American I can confirm that, not only do we say “4th of July,” both phrasings are in common use for any date of the year.

March 5th is more commonly heard in USA than 5th of March, but nobody would look at you funny either way.

Re:The Page with No Code on Saturday January 21, 2023 @10:11PM (#34473840)
One could argue that for some content, how to style it is just a suggestion anyway. Ie you could think of “our style guide for text content can be found at this address” as metadata for semantic HTML documents
Re:Manage Like an Engineer on Thursday January 12, 2023 @04:48PM (#34360731)
Yeah - It does seem like the author is trying to apply too many lessons learned from managing computers and software to managing people.
Re:Ask HN: What sub $200 product improved your 2022 on Saturday January 07, 2023 @03:20PM (#34292292)
Agreed, 70 USD probably has a healthy margin. But, I also value that it's been calibrated, tested for reliability, and is already designed/assembled.
Re:Ask HN: What sub $200 product improved your 2022 on Friday January 06, 2023 @01:23PM (#34278726)
Agreed, I use the cheapest monitor on this page (currently $69 USD) – a little awkward to change the settings, but runs on USB power, monitors CO2 and temperature, and beeps when you exceed a (configurable) threshold so you know to open a window. I keep it next to my desk

https://www.co2meter.com/collections/desktop

Re:Ask HN: Programs that saved you 100 hours? (2022 edition) on Tuesday December 20, 2022 @10:46PM (#34076404)
K9s - https://k9scli.io/ Terminal (ncurses?) Kubernetes client

Bash “wait” command to do multiple things in parallel without extra _stuff_. Eg

    (
      dothing.sh &
      slow_stuff.sh &
      more.sh &
      wait
    )
Those of us born in 1986 (in New York at least) had neither form of drills
Re:Python 3.11 Delivers on Friday December 16, 2022 @01:06AM (#34011048)
Lots of people have already written programs in Python. Now their programs will run a little faster without any work. It’s like the barista saying, “coffee’s on me today.”
Re:Tutors / tips to change your English accent on Sunday August 07, 2022 @11:56PM (#32382275)
I live in Austin, and I frequently have to tell people I know, especially people from New York, that hardly anyone here talks the way they expect (I lived in New York for a long time before Austin). A related misconception: thinking it’s a desert.
Re:Volkswagen enters battery business with $20B investment on Thursday July 14, 2022 @06:02PM (#32101986)
I think that ship has sailed - ICE vehicles have obscene amounts of power these days even in “slow” vehicles
Would be cool to show actual uses of struct in the CPython source in the examples (with the link to explain and a link to the struct in the context of its use)
Re:Triangle Grids on Sunday July 10, 2022 @01:41PM (#32046900)
I’m working on a triangle-grid board game, probably for playdate (wip builds: https://jiaaro.itch.io/3nclosure)

I was surprised to find play testers had a hard time internalizing the grid - e.g. making mistakes that result in losing the game in the opponents next turn.

Also, I used simple x, y coordinates for each cell with even-numbered indexes being the upward-pointing triangles and odds being the downward-pointing ones. Similarly odd-indexed rows were offset right by half a triangle to make them align properly

[edits]: added details

Re:Show HN: 2synths on Saturday July 09, 2022 @08:53PM (#32040829)
You should put those instructions in the page :)
Re:Show HN: See3ee.com – Find Cars like you find EC2’s on Thursday July 07, 2022 @02:59PM (#32017871)
I'd love to see range data on the USA Cars tab

Older »