HNHacker News
TopNewBestAskShowJobs

Dylan16807

38,861 karma · joined February 4, 2010

submissionscomments
Dylan16807··on We ran AI agent swarms in Minecraft and Mindustry
My bet is they're not a graphic designer. There's no reason to expect or even want them to mentor on blog aesthetics.
Dylan16807··on Why a program doesn't work when run from a batch file, but works when clicked
He's telling stories from the past either way. The blog backlog isn't very important.

In an interview he said the backlog has varied from 3 to 18 months. Pretty negligible in terms of his career advancement. This isn't something he wrote ages ago.

Dylan16807··on Why a program doesn't work when run from a batch file, but works when clicked
The current directory in the UI is the directory open in whatever window you're clicking on.

That's a purer form of current directory than cmd, which has one per drive.

Dylan16807··on Why a program doesn't work when run from a batch file, but works when clicked
I don't think this has anything to do with what you responded to?
Dylan16807··on Chained PHP2Shell exploit roots 25 servers, including US Government servers
It's just the configuration pages. It's not the core of the product and doesn't need to be a perfect clone.

Is there a reason one URL at a time wouldn't work?

Dylan16807··on Attention people who think UB is fine
> Checking-the-address is overhead.

In the same way that initializing a variable is overhead. But if you assume the variable will have a 7 in it because that's what it compiled to one time, it's not the compiler's fault when it compiles it to not be 7.

Except it's actually less overhead than that. You don't need to do any verification at runtime if your compiler cooperates. If it works like other pointers then you can get the same "base + delta * i" opcodes but without undefined behavior.

I shouldn't have used the word "check". A better way to phrase it is "knowing for sure". You need to know for sure where the goto is, which means using && and keeping track of what it tells you in some way.

> If the coder knows there will be four return values and writes them one after the other, the return (or MOV) instructions are distanced the same. The goto hack should work.

You can't know that. Sometimes other things will be in there, and sometimes the padding won't be so consistent.

Do what you're supposed to do. && every label you might jump to. And then you can check if they're spaced evenly at compile time. If they are you can treat them as spaced evenly at runtime.

Dylan16807··on Python's experimental JIT to be removed
> Screaming about using Lua instead is just nonresponsive.

The point of those comments is not to hype Lua, it's to show what a JIT can do.

The idea is that a python JIT could be just as good as Lua for the parts that aren't suited to numba.

> Lua is absolutely not faster than numba, nor will it ever be (absent a numba-like translation layer) and repeatedly trying to argue so is very much missing the point.

Nobody is arguing that. People are agreeing that numba is fast, but they also want other non-number-crunching things to be fast. It's "yes, and". They're not missing the numba point, they're agreeing and you're missing the additional point they're responding with.

Dylan16807··on We ran AI agent swarms in Minecraft and Mindustry
General support is a good default, but they were specifically talking about the aesthetics. If you want them to support the aesthetics regardless of whether they like the aesthetics, that's something but it's not 'maturity'.
Dylan16807··on Formlabs Studio 1 $699 Resin Printer
How did everyone clone the first generation with monochrome LCDs though, if they weren't off the shelf?
Dylan16807··on H.264 Is Magic (2016)
Yes but if it says "NUC" I doubt you'll have that issue.
Dylan16807··on Chained PHP2Shell exploit roots 25 servers, including US Government servers
But that glue is pretty straightforward and you only have to convert one page at a time.
Dylan16807··on Chained PHP2Shell exploit roots 25 servers, including US Government servers
> The config could be, run a simulation on the input data to decide whether it would allow for RCE and then decide whether to run PHP or not. I sure hope nobody is actually doing that, but it is sure possible.

That is not a config. That's a whole new program.

> My first statement was "Not having made the claim", to indicate that I do not necessarily think that. My second was "took down my website too" to indicate, based on what understanding I did and plan to act on.

But with everything else you still made it sound like you were supporting it.

> I did mean "only execute PHP, when you know the input doesn't trigger it", the policy of never invoking PHP at all, does satisfy that.

It satisfies it, but in a way that doesn't make the exploit overblown.

It's obvious that you can avoid a PHP exploit by turning off PHP. That's not nearly enough to make the worries overblown.

"It could be even worse" is the only conclusion we can draw from it being in php and not the web server. And that conclusion is basically meaningless.

Dylan16807··on Chained PHP2Shell exploit roots 25 servers, including US Government servers
You seem to be reading too hard into what I said. I wasn't giving you an exhaustive list of where the snark lies. I was saying where it started.

Edit: From your reply of "Great work? Do you want a cert to prove how well you perform the function of forum peanut gallery?" it looks like you have abandoned the claim I was being suspiciously selective. Good! We're settled then. I'm going to ignore your weird new goalpost where you get annoyed that someone clarified themselves.

Dylan16807··on Chained PHP2Shell exploit roots 25 servers, including US Government servers
My ability to recognize snark is not carrying water for anyone. It started with your very first comment.
Dylan16807··on Chained PHP2Shell exploit roots 25 servers, including US Government servers
> Believe it or not

> which I’m sure surprises you

You caused the problem here. You started off being hazy and rude.

"Say that again without trying to dunk on anyone if you want me to put effort into responding." seems like a pretty reasonable trade.

Dylan16807··on Chained PHP2Shell exploit roots 25 servers, including US Government servers
You kept talking about some configuration change that makes things "overblown", without making it clear you meant "turn off PHP". So yes that's misinformation.

It's not overblown if the only non-patch fix is "turn off PHP".

And that's assuming you actually meant "turn off PHP" the entire time? Your earlier phrasing suggests you have something that leaves PHP running in mind, but if that's entirely hypothetical then again we're back to misinformation. (And when you argue it's Turing complete, that only means that a patch must be possible. It doesn't mean there's a config fix.)

Edit: stray "not"

Dylan16807··on Chained PHP2Shell exploit roots 25 servers, including US Government servers
We're talking about an html GUI right? That's not herculean to port between languages.
Dylan16807··on Chained PHP2Shell exploit roots 25 servers, including US Government servers
> literally no reason

PHP being big and creaky was very well known. This has nothing to do with hindsight.

And it still is big and creaky. You can cite this comment the next time something like this happens to prove it's not hindsight bias.

> And that is even with the assumption that other languages don't have issues

Incorrect. Please do not strawman.

Dylan16807··on I went to Mexico to test-drive the cars Americans can’t buy
Using subsidies to spring up an industry is a good thing. Over in the US we had plenty of big car makers that didn't need it, and their being lazy because they know they'll be protected is the worst of all worlds.

Domestic production is good but sometimes big companies need to taste failure. We should lower the level of protection they're getting, at least for a while.

Dylan16807··on I went to Mexico to test-drive the cars Americans can’t buy
"full range" is a nonsense metric though. Different cars have different tank and battery sizes, and what matters is whether the range fits your needs.

All else equal, a range that degrades from 300 to 230 miles is better than a range that starts at 210 miles and stays there forever.

Dylan16807··on The Exponential Time Hypothesis Is False [pdf]
Clearly show it how?

It's not enough for finding a solution to be slower than verifying, it has to be slower by a particular extreme amount, and that has to hold for the best possible solution.

Also, there's a set of problems called NP-hard that you can convert any other NP problem into. For P≠NP we have to make sure all of the problems that are NP-hard have that speed difference (including the overhead from doing that conversion).

Dylan16807··on UUIDv7: Timestamps aren’t time-ordered and other oddities
> It is hard to do even sitting on a planet (even impossible) -- there are minute differences in gravity and acceleration between any two points, so time flows with different speeds. And it changes all the time.

You can pick reference spot(s) and get it good enough.

> Note we're not talking about "below a millisecond" or below any other time range (second, minute, month). We're talking about _exactly_.

Ah, but we're not talking about exactly. Even when you're going for maximum accuracy, timestamps aren't generated at a particular instant. The gates in the computer coalesce over a cycle or two, if not longer. If you sync down to roughly the nanosecond, you hit max accuracy for CPU timestamps.

Though again, what's wrong with two CPUs that are n light-seconds apart having clocks that differ by at most n/10 seconds? You can't actually prove they aren't synchronized exactly, because of relativity.

Dylan16807··on Attention people who think UB is fine
But "without losing performance" and "without having bugs" are completely different criteria. I get the original point, and I'm not saying the compilers are justified in all their aggressive optimizations, but I don't think the quote you gave is talking about the same thing.

There are things you simply can't write in C. I think that's okay. But even if you don't think that's okay, it doesn't conflict with zero-overhead.

-

But also, when it comes to jumping by address to a goto you didn't check is at that address, I'm on the side of the compiler here. That's not how computed goto is supposed to work. You're supposed to use an address you can know is right by reading the code.

Dylan16807··on H.264 Is Magic (2016)
Even if half the devices were broken, it would still be more than a third of streams and mainstream.

A lot less than half of devices are broken when playing YouTube, I assure you.

If they stopped forcing it, it would still be the best choice most of the time. It doesn't "have to be" forced to be a major choice. The forcing changes the exact percentage but not the overall picture.

Dylan16807··on We're releasing the weights of Mistral Large 4
It doesn't have to be.
Dylan16807··on H.264 Is Magic (2016)
The fact that you said 5 worries me.
Dylan16807··on H.264 Is Magic (2016)
Do you really care if your NUC uses an extra 2 watts to do software decoding?
Dylan16807··on H.264 Is Magic (2016)
I struggle to think of a situation where the blur of chroma subsampling is acceptable but very high quality or prores isn't good enough, I need lossless.
Dylan16807··on H.264 Is Magic (2016)
Your particular model is not representative of "the common hardware" as a whole. And it can be mainstream even when a significant fraction of devices can't use it. AV1 is a third of Netflix streams and most YouTube streams, that's more than enough to qualify as mainstream.
Dylan16807··on H.264 Is Magic (2016)
Then that particular model doesn't support it properly. I don't think that changes my point.
Page 1 of 34Next →