Better HN
topnewbestaskshowjobs
Log inSign up

vgalin

181 karma · joined Feb 16, 2021 (5y ago) · 48 submissions

Submissions

comment 1w ago · link · parent

LLMs generate code that (often) works, but do they write "good code"? Do you find LLM-generated code intuitive, readable, or elegant?

I'm not sure I do, which is why I find it puzzling when I hear/read people saying that LLMs write better code than they can, or at least code that's just as good (re-quoting Bill Gates from the article: "I could see that they are as good as I am").

It's now possible to "vibecode" entire applications without taking a single look at the code, but that’s not what my comment is about.

LLM-generated code isn't meant to be read by humans. LLMs specialize in generating text, and they're very good at it. But what they can't do is generate text as as if it were written by a human, for a human. I get this feeling from LLM-generated code, but also from most of the LLM-generated fiction, instructions, reports, etc.

comment 2w ago · link · parent

I often think about Person of Interest, and when I clicked on the post, I expected to be presented with something else entirely, as the show is now 15 years old. What a pleasant surprise!

I like to compare how similar or different The Machine is to current state-of-the-art LLMs. Interestingly, in this fiction, The Machine's preferred way of communicating doesn't seem to be through text, or even artificial speech. It can see almost everything, and seems capable of improving itself, but it feels "intelligent" in a way that humans or LLMs aren't. Maybe the writers thought that giving it the ability to write text or speak directly would make it "less" in many ways (less mysterious, less machine-like, less intelligent, etc.). It also gives the impression that you cannot really guess what it "thinks" or fully understand it.

I'm also realizing that most of the time, characters don't really have a "conversation" with The Machine, whereas it is a core feature of current-day LLMs. And The Machine doesn't even "create" its communication channels, it uses existing ones (phone booth, radio ...).

comment 1mo ago · link · parent

LLMs are non-deterministic, you could run the same prompt on the same code base with the same models, and have different result. I don't think only one run with each model is enough to draw conclusions.

4.

Valve open-sources Lepton, its Android compatibility layer for SteamOS(gitlab.steamos.cloud ↗)

6 points · by vgalin · 2mo ago · discuss

comment 2mo ago · link · parent

> These are two companies that seem to be slipping in ethics recently

What makes you say that?

comment 2mo ago · link · parent

The introductory video is a bit... daring. Generating tattoos that clearly look AI-generated is not one of the use-cases I'd try to sell.

comment 6mo ago · link · parent

The company doing the actual ID verification (KYC) is probably the last company I'd trust with this kind of data.

To circumvent conversations being flagged as "cybersecurity bad!!!" I often have to use previous models (5.3 for example, and sometimes using them through subagents is enough). And when this method no longer works, local models will be good enough for it to not be a problem (for my use case, at least).

comment 7mo ago · link · parent

I ran gemma4:26b without any tooling access and it gave me the correct answer in a few minutes only (definitely less than 8 minutes, but I didn't timed it).

Specs : RX 9070 XT (24GB VRAM) + 16 GB RAM

gist : https://gist.github.com/vgalin/a9c852605f39ab503f167c9708a46...

(I gave it another go and it found the correct result in about a minute, see the comment on the gist)

comment 8mo ago · link · parent

> And that is shared with chat too.

Huh, I didn't know about that. I'm trying Claude Pro for the first time while comparing it against ChatGPT and I'm (sadly) not impressed at the moment.

When I asked both Codex and Claude Code to "look into" an issue of medium-to-high-complexity in a code base, Codex went with the fix I had in mind and directly and made code changes without being asked or at least asking for permission. It only used a few percents of its 5-hour limits to do it, on `High`.

Claude in the meanwhile misdiagnosed the core of the issue on its first pass (even on Opus 4.6 + Thinking). I had to guide it in the right direction and despite being given the 'answer', it was quite a long process compared to Codex' one-shot. And it hit the 5h limit before being able to finish solving the issue.

comment 2y ago · link · parent

Python library with Rust backend*

comment 2y ago · link · parent

But the older you are, the more likely it is that you have built a family and have children and responsibilities outside of work. You cannot necessarily afford to spend time studying (problems untied to the real world) as much as someone younger I guess.

comment 2y ago · link · parent

I didn't used a kit, but bought the components separately (microcontroller, key caps, switches, wires). It runs custom code as it was sufficient to fit my use case, though QMK may be possible? The keys are mapped from F13 to F22 and can be use in some software that allow custom keybinds.

comment 2y ago · link · parent

I recently built a small hand-wired macro pad using an Arduino Pro Micro equipped with ATmega32U4, it's apparently quite popular amongst hobbyists building custom keyboards. Quick and fun project for a beginner, the most tedious part of this project was to carve the wooden case.

comment 2y ago · link · parent

(Disclaimer, I'm the maintainer of this package, but this kind of use is exactly why I created it at the beginning)

If you know how to use HTML+CSS and would like to generate full-fledged cards, you could use a package such as html2image [0] to combine the text, the image and a card-template image into one final image. Chrome/Chromium has to be available on Colab Notebooks though, that's the only requirement. Using basic SVG without this package could also do the trick.

[0] https://github.com/vgalin/html2image

comment 2y ago · link · parent

People are now boycotting knowledge?

comment 2y ago · link · parent

(translation provided by ChatGPT)

> Terms and Conditions, Price and Service List, Conditions.

> Dear customer,

> our price and service list, our terms and conditions, as well as further conditions which will come into effect on May 1, 2024, can be found on the USB stick.

> With kind regards,

> The Sparkasse Bremen AG

comment 2y ago · link · parent

I wrote a Python package [1] that does something similar! It allows the generation of images from HTML+CSS strings or files (or even other files like SVGs) and could probably handle PDF generation too. It uses the headless version of Chrome/Chromium or Edge behind the scenes.

Writing this package made me realize that even big projects (such as Chromium) sometimes have features that just don't work. Edge headless wouldn't let you take screenshots up until recently, and I still encountered issues with Firefox last time I tried to add support for it in the package. I also stumbled upon weird behaviors of Chrome CDP when trying to implement an alternative to using the headless mode, and these issues eventually fixed themselves after some Chrome updates.

[1] https://github.com/vgalin/html2image

comment 3y ago · link · parent

For further nitpicking: "etc." shall also end with '.' as it is the abbreviated form of "et cetera/caetera". Also, when used in an enumeration, it shall be preceded by a comma.

https://en.wikipedia.org/wiki/Et_cetera

comment 3y ago · link · parent

If this is an established fact, where could one learn more about this?

comment 3y ago · link · parent

The french example sounds off in my opinion, it seems to mix up its consonants/ vowels.

The "OU" sound from "nous" sounds like "EU", or like if the sound was skipped. The "OH" sound from "sommes" sounds like "EU" (again, but less pronounced). The "T" sound from "trop" becames "P" ("pro").

comment 3y ago · link · parent

It appears to be invite-only (even though you can request an invite). I'm not sure about what drove them to do so, but that may be why there is not much activity on the website.

comment 3y ago · link · parent

Interestingly, they have a "barcode" system that allow them (and allow us) to know the age of a given sock.

"Blacksocks knows the age of all socks" https://www.blacksocks.com/en/ageofthesocksen

comment 3y ago · link · parent

This peculiar tool seems to be aimed at developers, so I don't find it surprising.

comment 3y ago · link · parent

If 'someone' (an attacker), introduced themselves physically in your house or workplace (thus obtaining a high level of access) to place hidden cameras and to record you typing your master passwords. And if that someone later retrieved the footage and a copy of your password manager database... Would you blame your password manager for being insecure?

comment 3y ago · link · parent

Then it would be an attack vector of course, but whether it is a vulnerability of the password manager itself would be debatable.

comment 3y ago · link · parent

The XML config file is by default stored locally, as KeePass doesn't support cloud-backup or sync out of the box. If the XML config file is on DropBox, that is because you allowed it (either by uploading it manually or because you enabled sync on a whole directory / directory tree).

comment 3y ago · link · parent

About data stored in-memory, see KeePass.info > Security > Process Memory Protection [0]

> While KeePass is running, sensitive data is stored encryptedly in the process memory. This means that even if you would dump the KeePass process memory to disk, you could not find any sensitive data. For performance reasons, the process memory protection only applies to sensitive data; sensitive data here includes for instance the master key and entry passwords, but not user names, notes and file attachments. Note that this has nothing to do with the encryption of database files; in database files, all data (including user names, etc.) is encrypted. [...]

[0] https://keepass.info/help/base/security.html#secmemprot

comment 3y ago · link · parent

This 'someone' could also, on most computers, install a keylogger to get your master password, or passwords that aren't registered in a password manager. Would you consider this a vulnerability coming from the password manager?

comment 3y ago · link · parent

To perform an export of a KeePass database, the database needs to be opened using (at least) a master password. A database file without its master password is still worthless on its own.

comment 3y ago · link · parent

The export would only be triggered when a database is opened, so the master password is required.
12