Better HN
topnewbestaskshowjobs
Log inSign up

nuc1e0n

435 karma · joined Mar 15, 2020 (6y ago) · 516 submissions

Submissions

comment 2mo ago · link · parent

There was a HN article about how LLMs can optimise SQL query execution plans recently.

https://news.ycombinator.com/item?id=49731285

It seems LLMs are better at writing SQL queries than doing the data summarizations themselves. Makes sense as SQL queries occupy much less space in a context window.

comment 2mo ago · link · parent

Neat. Can this model learn which table indexes to create that would improve performance? In my experience, nested loops will be chosen in a query plan over poorly chosen indexes, but well chosen indexes will result in drastic speed ups.

comment 3mo ago · link · parent

Is fab process re-engineering something an AI could help with?

comment 3mo ago · link · parent

Why SDL 2 and not SDL 3? Was the project started before SDL 3 was released?

comment 5mo ago · link · parent

I mean nul terminated strings aren't great, but neither are strings with a defined length Strings generally have poor performance, so making them easy to use isn't necessarily a good thing.

comment 5mo ago · link · parent

That's what pascal did back in the day, but 255 byte strings were all that was needed back then so only a byte was needed to store the length. Does that still sound maintainable? Anyhow, some developers put data into strings when they shouldn't, and require doing that in the APIs they publish. Strings, whether NUL terminated or with stored length, aren't always the best choice architecturally so making them easy to use isn't necessarily a good idea.

comment 5mo ago · link · parent

I'm of the opinion AI slop code will become untenable way before that.

comment 5mo ago · link · parent

Why bother 'cheating' at all? If you don't want to follow those precepts, then just don't.

comment 5mo ago · link · parent

I doubt the dropoff is as large as 100k tokens. I start a new session and paste the best results from the previous one as soon as as LLM makes more than a couple of missteps. Theres too much focus on fixing what's wrong rather than going back to what worked and amending in a different way.

If you don't point out what's wrong I find the LLM will go into great technical detail which consumes a lot of tokens, but not 'see the wood for the trees'.

It seems to me human beings also have mechanisms to compact context, which may be why we can forget what we came into a room for when going through doorways. I think it would be interesting to research which markers we use to compartmentalize our thinking.

comment 5mo ago · link · parent

c memory allocation functions can be implemented in 1000 lines or so. I've done it myself. Maybe more are needed to handle strange operating systems or architectures, as glib does.

comment 5mo ago · link · parent

Replying to this comment so I can refer to it later.

comment 6mo ago · link · parent

I disagree. But maximising the acquisition of bits of paper and numbers on a screen above happiness and day-to-day needs is the American way.

comment 6mo ago · link · parent

The article claims tensorflow uses eigen. That's not entirely accurate, although the pre-packaged builds of tensorflow are probably configured to use it. Tensorflow can also be configured to use BLAS/LAPACK at build time and not eigen.

comment 7mo ago · link · parent

Maybe you can install homebrew and open source apps to make it more Linux like, but you'll still be stuck with Mac OS's shonky window and task management UI unfortunately.

comment 9mo ago · link · parent

> but it's much closer to an "interesting lab demo" than an "obituary for human programmers."

Was it being sold as the latter? I thought it was strange that a fuss was being made over this tech demo, and that explains why.

Parsing regular languages into other regular languages is exactly what transformer based LLMs should be good at.

A while ago there was an AI system publisized that was trained to generate animations from the game doom that was sold as AI created computer games. But the output made no sense if you watched for more than a few seconds. Isn't this the same kind of scare tactics dressed up as innovation?

comment 10mo ago · link · parent

Interesting. I'll look into that. The Hippocratic oath says that a physician should do no harm (ἐπὶ δηλήσει δὲ καὶ ἀδικίῃ εἴρξειν). It's a personal value judgement as to whether some intervention is providing medical care or causing harm. I consider reckless genetic modification to be causing harm.

comment 10mo ago · link · parent

I can't see how genetic modification would be the correct way to treat such injuries.

Maybe substances that can trigger epigenetic effects would be more relevant to such things. I understand a Japanese team is working on a means of triggering tooth regrowth by means of an injection. I've got no problem with that. Or something like Skele-Gro from Harry Potter either.

comment 10mo ago · link · parent

If you think so, what sources would you recommend? According to Wikipedia on medical ethics, "These values include the respect for autonomy". Not expecting any level of self control doesn't show respect for autonomy IMHO.

comment 10mo ago · link · parent

Medical ethics boards already do such things don't they?

comment 10mo ago · link · parent

Some issues could only become evident over a period of hundreds of years with gene editing. That's longer than any medical trial I'm aware of. And mistakes made would be difficult, if not impossible, to undo.

If medications can already do what's required for cholesterol issues, why wouldn't we continue to use them rather than making some change to affect a complex balance that could cause problems over very long timescales?

If we were to be editing a specific gene to match what the wider population has, then I'd be more ok with that.

comment 10mo ago · link · parent

Genetic treatments have the scope to not only have unintended consequences, but unintended consequences that can last over generations of people. I am in favour of them for some things, but we need to tread very carefully with the technology.

comment 10mo ago · link · parent

Maybe such a mutation would be a suitable target for a gene editing treatment. I'm not aware of all the issues involved there. I think the linked article doesn't have enough detail to form a fair opinion with.

comment 10mo ago · link · parent

I wouldn't go that far. Other, less invasive treatments should still be available IMHO, but there should remain an element of personal accountability. Gene editing is a very powerful tool, and messing with complex systems in powerful ways that we don't fully understand could be a recipe for many troubles down the line. I think the use of gene editing should be very surgically applied to obviously detrimental mutations, not for some scatter gun like approach.

What if the body raising cholesterol levels serves some purpose we aren't yet aware of? I've heard there's some evidence that medication to reduce blood pressure has a potential link to the onset of Parkinson's disease. Maybe messing with blood pressure in that way without addressing underlying causes has been a mistake, and messing with cholesterol levels without addressing underlying causes could also be.

comment 10mo ago · link · parent

This is not an acceptable use of gene editing IMHO. Cholesterol can be managed by diet. High levels of Cholesterol are down to choices made, not some inherited disease that patients couldn't avoid from when they were born.

comment 10mo ago · link · parent

By whose judgement is the css you speak of 'broken'? Just making random code changes without a corresponding ticket is a recipe for troubles down the line. If you must do unprioritised work at the bare minimum create a issue tracker ticket to provide more information than can fit in a commit message. Something like selenium is good to automate acceptance testing (with screenshotting) cross browser as well.

comment 10mo ago · link · parent

In the corporate environments I've worked in it is often company policy that all commits to source code control should have messages that start with reference codes to the coresponding ticket in the issue tracker (often jira). This how I look up the whys and wherefores of code changes.

comment 10mo ago · link · parent

I gather decompiling mario 64 wasn't easy either. Just having C++ that can be recompiled to other architectures would seem to be useful. The original Eliza chatbot was converted to modern C++ in a similar way recently, and that used a compact representation for its logic as well.

comment 10mo ago · link · parent

Has anyone considered decompiling eloquence? With something like ghidra or ida pro? Mario 64 was turned back into high level language source code this way.

comment 11mo ago · link · parent

My experiences with ONNX have not been pleasant. Conversions from models written with Tensorflow and Pytorch often fail. I recommend using TFLite or Executorch for deployment to edge devices instead.
12345
18