Better HN
topnewbestaskshowjobs
Log inSign up

AlienRobot

1,554 karma · joined Dec 3, 2023 (2y ago) · 1,354 submissions

Submissions

comment 2d ago · link · parent

I checked the "Streamplace" platform they mentioned and it seems to be a work in progress, not an actual platform anyone should rely upon.

comment 1w ago · link · parent

I wonder what was it even trained on?

Who ever had the time and will to write unit tests that mock every single function/class being called, checks the strings of thrown errors, etc., for every single function, for several tests per function?

The instant you change the implementation the tests break because it's testing how many times each method has been called of an object that was passed as argument.

That's just an insane way of writing tests. But for AI that's normal for some reason.

It feels like it's making unit tests the "textbook" way that in practice you wouldn't do because in practice half the things it's testing are inconsequential.

comment 1w ago · link · parent

I wonder if Rust is really bad for UI or UI code is just a mess of terrible practices like having event listeners for everything.

comment 1w ago · link · parent

Steam sales have never let me down.

comment 1w ago · link · parent

I think the correct way to solve this problem is completely at odds with AI.

Write less code. Reuse things that have already been written and thus were already reviewed and tested by someone else. Do not reinvent the wheel. KISS.

With AI everyone is implemented a dozen libraries from scratch in their project instead of using something someone else made. Why use a library for 2D geometry when ChatGPT can write one in 10 minutes?

comment 1w ago · link · parent

As clear as "can I take a copyrighted photo, use a photoshop filter on it, and then it's not copyrighted anymore?" is pretty clearly a solved question in any copyright system.

comment 2w ago · link · parent

I wrote this in another comment too, but one thing that helps in this case is to write what you want to implement in English first.

If it doesn't make sense in English, it won't make sense in code. But English is easier to draft and edit than code.

comment 2w ago · link · parent

Absolutely. And ironically one thing I discovered while trying to use AI is that it applies to programming too.

I'd heard that one-shot a project with AI, you need a fairly complete design document instead of a short prompt, so I tried to write one.

In doing that, I'd include the unhappy paths as well, e.g. in describing a list/detail interface: the list shows the X's (I thought: but in what order?) in alphabetical order; when an X is selected, the detail is displayed in the detail pane; (lists should work with multiple selection, so) multiple items may be selected at once, in which case the detail pane should display "N items selected" instead of the interface to edit the items; (a list starts empty, so) if no items are selected, the detail pane should display "No items selected", etc.

Laying out the entire system in plain English helped me have the whole thing inside my head, and see cases where presumptions about how the system would work wouldn't actually hold in practice because they weren't even holding in the text I was writing. So I had to edit the draft to fix my wrong assumptions until it made sense.

And of course the AI managed to do a pretty terrible and disappointing job at it in the end, because it made mistakes in the parts I didn't specify, or placed widgets in the wrong places because the layout that was difficult to explain in text, etc. It's somewhat impressive that anything ambiguous is a spot where AI can make the worst assumption imaginable, like it doesn't have the capacity to intuit "oh, we are making THIS sort of app, so it should look like this". But it was a good learning experience.

I suppose it's a great idea to write out what you're about to do before you set out to do it, because it helps you think about it in whole and in detail. It would be terrible if people stopped doing that.

comment 2w ago · link · parent

I'd say the exact opposite. People who have no idea how technology works shouldn't touch AI at all. "AI can understand human language" is fundamentally false, and it leads people to actually believe AI is "AI" and not just a token predictor.

These people WILL fall victim of their own ignorance and upload all their private information to an AI chatbot.

comment 2w ago · link · parent

The biggest issue with emoji is that it's not an actual glyph. Just think about the gun emoji. It was supposed to be a gun. It changes from actual gun to toy gun to space gun depending on the platform and year.

Imagine if you wrote the word "gun" and then 5 tech giants decided it was their job to change the "g" to a "b". It's ridiculous how lightly we take preserving messages when the whole industry is supposed to be about data.

They are also not specific enough to encode what they are meant to convey. People pick emojis for what they look, and if they look even slightly different the message changes, yet platforms are allowed to design them however they want and then change the design year after year. The letter "a" is still going to be the letter "a" no matter what. The same can't be said for "emoji covering their own mouth" which either looks shocked or mocking you depending on how it's designed.

comment 2w ago · link · parent

Even imgui has screnshots.

comment 2w ago · link · parent

Why https://gpui.rs/ doesn't have a single screenshot of how it actually looks?

The first thing anyone would want to know when choosing a GUI framework is how it looks by default. Every major GUI toolkit has screenshots on their websites.

This happens so often it makes me wonder if people just don't know how to take a screenshot and put it in a webpage with <img>.

comment 2w ago · link · parent

One of the biggest problems with GIMP and Inkscape is how GTK renders numeric inputs. Look at the size of those +/- icons on the toolbar. For drawing software with lots of numeric inputs, that means an insane waste of space. Proprietary software like DaVinci and even Photopea have much smaller inputs, allowing them to create far more complex GUIs and featuring without cluttering the window.

comment 2w ago · link · parent

I miss when MS Paint just opened image files and let you do some basic editing, before layers, background removal and RCE's...

comment 2w ago · link · parent

The only thing I know is that if I wanted to learn how to program, I have thousands of tutorials on the Internet and Youtube teaching everything from if/else to data structures and big O.

But if I wanted to learn software design and architecture, I'd probably not even know where to start.

comment 2w ago · link · parent

Yes, and that's my doubt. Compiling is turning data (text) into code (something executed by the CPU). I thought the point of the hardware is that data can't become code. If data can become code, then data is code, and it doesn't matter if the data is compiled first or interpreted at runtime. There doesn't seem to be a way to prevent "data" from becoming "code".

comment 2w ago · link · parent

I see. I guess this does solve the issue of a program managing to insert arbitrary machine code on an address and point the CPU at it, or replacing the memory where the machine code already exists. But I think there already exists OS-level protections against writable executable memory?

It also doesn't solve one important attack vector: the existing executable has logic that can be used maliciously (e.g. a function that sends a file to the internet), and this logic is executed based on data on memory. In this case you only need to manipulate the data, without manipulating the "code", in order to exploit it.

I'm not sure I understand why would you need special hardware for that.

I think that the principle of "code is data" is that data influences the algorithms either way, so there is not much of a point in separating the two.

comment 2w ago · link · parent

Wait, how do you create programs then? How do you compile?

That doesn't even make sense, to be honest. Interpreted languages like Python aren't running machine code. They are taking data and executing machine code based on the data. Is Python safe?

comment 2w ago · link · parent

How do you turn text into code in this architecture? Through the kernel?

comment 2w ago · link · parent

To be fair, most people aren't writers, so the "average" writing the statistical model can produce is mediocre writing.

comment 3w ago · link · parent

What? No. You're completely wrong. I frequently ask about "X" and the summary cites a single random Reddit post that doesn't even MENTION "X" as source for its assertions. That literally never happened before AI.

comment 3w ago · link · parent

What difference does 24 make when nobody is even sure what is being charged and some of these products burn thousands of tokens just to display a status message.

comment 3w ago · link · parent

I just think it sounds better. Kilotokens, megatokens, gigatokens, teratokens, petatokens.

comment 3w ago · link · parent

The worst thing about tokens is that they call it "millions of tokens."

It should be megatokens.

comment 3w ago · link · parent

I guess this is the new normal.

comment 3w ago · link · parent

The tests aren't reliable if the entire codebase was rewritten, including the tests, and then nobody read the tests.

comment 3w ago · link · parent

A browser does not send 10k requests per minute to open a webpage. Even in the most and modern bloated webpages. And even if it did it wouldn't be to a single website.

A user operating a scraper or a crawler IS operating a scraper or a crawler.

comment 3w ago · link · parent

Google overview frequently cites webpages that don't include the keywords of a query.

This is Google, the most used search engine in the world, made by a company that is at the forefront of AI development.

ChatGPT, Claude, etc,. constantly generate answers without sources and rarely cite anything verbatim. I'm not sure if they could cite something verbatim even if they wanted.

Essentially none of these tools are appropriate for information.

comment 3w ago · link · parent

To put things in perspective, I used to dunk on crypto because of how dysfunctional and how people kept losing money in scams, hacks, or even by accident.

I no longer dunk on crypto.

Not because crypto got better, but because the joke got old. I got tired of dunking on it.

comment 3w ago · link · parent

The words you are using are very confusing.

You can't "move money into an offline crypto wallet that is not online at all."

If "money" i.e. crypto "currency" is in a crypto "wallet" then it is online. Anyone with the key and an Internet connection can transfer it at any time.

The wording is confusing because to someone who doesn't know how cryptocurrencies work it sounds like you can simply "take the crypto offline and put it into a physical device" as if it was a file. But that's not how it works. The physical key merely contains the actual key for the always-online wallet.

12345
46