Readit News logoReadit News
dminik commented on Google is killing the open web   wok.oblomov.eu/tecnologia... · Posted by u/thm
jll29 · 5 days ago
The file you got sounds neither valid nor well-formed. It might not even be XML.

I know you describe a real-life situation, but if XML gets abused it's not XML's fault - like it's not JSON's fault if JSON gets abused

dminik · 5 days ago
Could you elaborate why you think so?

As far as I can tell, the file was a fully valid XML file. The issue is that doesn't really tell you (or guarantee) much.

There's just no one specific way to do a thing.

dminik commented on Google is killing the open web   wok.oblomov.eu/tecnologia... · Posted by u/thm
bayindirh · 5 days ago
This is why you can have attributes in a tag. You can make an XML file self explanatory.

Consider the following example:

    <MyRoot>
      <AnElement type="list" items="1">
        <Item>Hello, World!</Item>
      </AnElement>
    <MyRoot>
Most parsers have type aware parsing, so that if somebody tucks string to a place where you expect integer, you can get an error or nil or "0" depending on your choice.

dminik · 5 days ago
I had the displeasure of parsing XML documents (into Rust) recently. I don't ever want to do this again.

JSON for all it's flaws is beautifully simple in comparison. A number is either a number or the document is invalid. Arrays are just arrays and objects are just objects.

XML on the other hand is the wild west. This particular XML beast had some difficulty sticking to one thing.

Take for instance lists. The same document had two different ways to do them:

  <Thing>
    <Name>...</Name>
    <Image>...</Image>
    <Image>...</Image>
  </Thing>

  <Thing>
    <Name>...</Name>
    <Images>
      <Image>...</Image>
      <Image>...</Image>
    </Images>
  </Thing>
Various values were scattered between attributes and child elements with no rhyme or reason.

To prevent code reuse, some element names were namespaced, so you might have <ThingName /> and <FooName />.

To round off my already awful day, some numbers were formatted with thousands separators. Of course, these can change depending on your geographical location.

Now, one could say that this is just the fault of the specific XML files I was parsing. And while I would partially agree, the fact that a format makes this possible is a sign of it's quality.

Since there's no clear distinction between objects and arrays you have to pick one. Or multiple.

Since objects can be represented with both attributes and children you have to pick one. Or both.

Since there are no numbers in XML, you can just write them out any way you want. Multiple ways is of course preferable.

dminik commented on I tried coding with AI, I became lazy and stupid   thomasorus.com/i-tried-co... · Posted by u/mikae1
rikafurude21 · 14 days ago
He freely admits that the LLM did his job way faster than he could, but then claims that he doesnt believe it could make him 10x more productive. He decides that he will not use his new "superpower" because the second prompt he sent revealed that the code had security issues, which the LLM presumably also fixed after finding them. The fact that the LLM didnt consider those issues when writing his code puts his mind at rest about the possibility of being replaced by the LLM. Did he consider that the LLM wouldve done it the right way after the first message if prompted correctly? Considering his "personal stance on ai" I think he was going into this experience expecting exactly the result he got to reinforce his beliefs. Unironically enough thats exactly the type of person who would get replaced, because as a developer if youre not using these tools youre staying behind
dminik · 13 days ago
I'm sorry, but security and correctness should be a priority. You should never need to add a "don't write bugs pls" to prompts.
dminik commented on Easily run Windows software on Linux with Bottles   usebottles.com/... · Posted by u/doener
hsbauauvhabzb · 13 days ago
But that’s only occurred in the last ~5 years, no?
dminik · 13 days ago
Kind of. Valve started actively porting their stuff in 2013, around the time Microsoft released Windows 8 and rumors started flying around that you'll only be able to use Windows Store to download apps.

So, way over 5 years. But time flies by fast.

dminik commented on Easily run Windows software on Linux with Bottles   usebottles.com/... · Posted by u/doener
modzu · 13 days ago
if it makes you feel any better i doubt cs runs on steam Linux
dminik · 13 days ago
Every Valve game released has a native Linux version. That includes every counter strike game.
dminik commented on Zig's Lovely Syntax   matklad.github.io/2025/08... · Posted by u/Bogdanp
surajrmal · 13 days ago
How is it hostile? The lsp can do type inference just the same as the compiler.
dminik · 13 days ago
Yes. And by "do type inference just the same as the compiler", that includes having to do comptime execution. Plus with no interfaces/traits/concepts and comptime being mostly any-typed makes it difficult to have helpful intellisense.
dminik commented on Zig's Lovely Syntax   matklad.github.io/2025/08... · Posted by u/Bogdanp
do_not_redeem · 14 days ago
Zig is planning to get rid of explicit `T{}` syntax, in favor of only supporting inferred types.

https://github.com/ziglang/zig/issues/5038

So the explanation of a dot standing in for a type doesn't make sense in the long run.

dminik · 14 days ago
Ahh, a perfect example of why Zig is uninteresting to me:

https://github.com/ziglang/zig/issues/5038#issuecomment-2441...

A language hostile to LSP/intellisense.

dminik commented on Linear sent me down a local-first rabbit hole   bytemash.net/posts/i-went... · Posted by u/jcusch
mike_hearn · 16 days ago
To see this first hand try this website if you're in Europe (maybe it's also fast in the US, not sure):

https://www.jpro.one/?

The entire thing is a JavaFX app (i.e. desktop app), streaming DOM diffs to the browser to render its UI. Every click is processed server side (scrolling is client side). Yet it's actually one of the faster websites out there, at least for me. It looks and feels like a really fast and modern website, and the only time you know it's not the same thing is if you go offline or have bad connectivity.

If you have enough knowledge to efficiently use your database, like by using pipelining and stored procedures with DB enforced security, you can even let users run the whole GUI locally if they want to, and just have it do the underlying queries over the internet. So you get the best of both worlds.

There was a discussion yesterday on HN about the DOM and how it'd be possible to do better, but the blog post didn't propose anything concrete beyond simplifying and splitting layout out from styling in CSS. The nice thing about JavaFX is it's basically that post-DOM vision. You get a "DOM" of scene graph nodes that correspond to real UI elements you care about instead of a pile of divs, it's reactive in the Vue sense (you can bind any attribute to a lazily computed reactive expression or collection), it has CSS but a simplified version that fixes a lot of the problems with web CSS and so on and so forth.

dminik · 16 days ago
I'm not impressed. On mobile, the docs are completely broken and unreadable. Visiting a different docs subpage breaks the back button.

Firefox mobile seems to think the entire page is a link. This means I can't highlight text for instance.

Clicking on things feels sluggish. The responses are fast, but still perceptible. Do we really need a delay for opening a hamburger menu?

dminik commented on Itch.io: Update on NSFW Content   itch.io/updates/update-on... · Posted by u/panic
altairprime · a month ago
I didn’t realize we knew who owned the Satoshi cold wallets! When did they figure that out, and how?

What definition of traceable are you using? I meant, to a specific person (miner) who wrote value into the system — which could also include a specific cash register or ATM that traded currency for coin, depending on whether it’s a postpaid or a prepaid Visa/MC that we’re comparing to, I suppose. They only charge a few percent extra overhead to issue relatively anonymous prepaid cards, which people either choose to pay or not, but the coin systems have traditionally been operated without the identifiable, lower-overhead, lower-risk tier of users that could have supported a viable postpaid network competitor. To the best of my understanding — am I wrong here? — all coin systems are exclusively unconcerned with the user’s identity other than their password, so their traceability is close to zero without a criminal investigation and wrench takeovers, which makes it adoption almost wholly unviable.

(US folks trying to convert coins to currency without paying taxes may differ, but that’s a relatively new regulatory push and has no particular impact on the majority of worldwide coin users.)

dminik · a month ago
Bitcoin is only pseudonymous. Inside the network everything is public and traceable, but not personally identifiable.

Where you lose anonymity is with inflows and outflows to the real world. You may only be able to buy cryptocurrency from a KYC seller. Or your payment can be traced. Or you buy something from an already identified seller. Ironically, a lot of the anonymity of Bitcoin comes from the anonymity of physical cash.

If employers started paying out salaries using Bitcoin, it would suddenly be really easy to identify wallets.

dminik commented on Why Elixir? Common misconceptions   matthewsinclair.com/blog/... · Posted by u/ahamez
crabmusket · a month ago
Nope, getting a TypeError on "1"+2 is not being "punished". That's way better than getting malformed data that you weren't expecting which keeps the system "working" until an error happens somewhere else, later, where it's more confusing.
dminik · a month ago
Not getting an error on "1" + 2 is very bad if that's not what you wanted to do. Agreed.

Getting an error on "Value: " + 2 is very annoying if that's what you wanted to do.

The solution here is Static typing, not Strong/Weak typing.

u/dminik

KarmaCake day267February 8, 2023View Original