String is also a pretty damn fundamental object, and I'm sure trim() calls are extremely common too. I wouldn't be surprised if making sure that seemingly small optimizations like this are applied in the interpreter before the JIT kicks are not premature optimizations in that context.
There might be common scenarios where this had a real, significant performance impacts, E.G. use-cases where it's such a bottle-neck in the interpreter that it measurably affects warm-up time. Also, string manipulation seems like the kind of thing you see in small scripts that end before a JIT even kicks in but that are also called very often (although I don't know how many people would reach for Java in that case.
EDIT: also, if you're a commercial entity trying to get people to use your programming language, it's probably a good idea to make the language perform less bad with the most common terrible code. And accidentally quadratic or worse string manipulation involving excessive calls to trim() seems like a very likely scenario in that context.
This is a really great article, and I really appreciate how it explains the different parts of how JPEG works with so much clarity and interactive visualizations.
However, I do have to give one bit of critique: it also makes my laptop fans spin like crazy even when nothing is happening at all.
Now, this is not intended as a critique of the author. I'm assuming that she used some framework to get the results out quickly, and that there is a bug in how that framework handles events and reactivity. But it would still be nice if whatever causes this issue could be fixed. It would be sad if the website had the same issue on mobile and caused my phone battery to drain quickly when 90% of the time is spent reading text and watching graphics that don't change.
I share this frustration. It's ironic that an article explaining compression and efficiency requires so much client-side overhead.
I've been experimenting with a 'Zero-Framework' approach for a biotech project recently, precisely to avoid this. By sticking to Vanilla JS and native APIs (like Blob for real-time PDF generation), I managed to keep the entire bundle under 20KB with a 0.3s TTI.
We often forget that for users on legacy devices or unstable 3G/Edge connections, a 'heavy' interactive page isn't just slow, it's inaccessible. Simplicity shouldn't just be an aesthetic choice, but a core engineering requirement for global equity.
It looks like there's some requestAnimationFrame call going on more than once per second. It's definitely an energy intensive tab.
But for reference, keeping CNN.com open is more than double that memory pressure on my 5 year old Mac laptop, and it handles both fine. Do your fans really kick in for heavy sites?
I have an 8 year old laptop that works fine except as long as I don't bother with sites like CNN.com. Heck, I even have a 13 year old laptop that works fine on most sites. Absurd ad-tech and tracking technology is not a motivation for me to upgrade but to avoid badly coded sites.
> However, I misunderstood and came up with an even more extreme version: instead of tracing versions of normal instructions, I had only one instruction responsible for tracing, and all instructions in the second table point to that. Yes I know this part is confusing, I’ll hopefully try to explain better one day. This turned out to be a really really good choice. I found that the initial dual table approach was so much slower due to a doubling of the size of the interpreter, causing huge compiled code bloat, and naturally a slowdown.
> By using only a single instruction and two tables, we only increase the interpreter by a size of 1 instruction, and also keep the base interpreter ultra fast. I affectionally call this mechanism dual dispatch.
I really do hope they'll write that better explanation one day because this sounds pretty intriguing all on its own.
Because it looks like your opponent is a Swedish former demoscener who started programming at age 12 on the C64 and Amiga computers in 1990, quickly moving on to writing games and demos in assembly, then professionally developing physics engines since 2001, specializing in game performance profiling and squeezing performance out of optimized mobile games.
As far as game dev stereotypes go you basically picked a Final Boss fight. Good luck, you'll need it :p
I half-agree, but in general I'm always a bit weary of saying "x is easy" for anything programming, because it might appear easy in isolation, but often that depends on also having decent understanding of all interconnected parts of the computer, OS, and so on that relate to it.
And in turn each of those may also appear simple in isolation, but as a whole it can still be an overwhelming amount of knowledge to learn, integrate and connect the dots between (and then once you reach that level of mastery, there's meta-problem of applying outdated rules of thumb from a few decades ago to modern hardware). That's where the advantage of having the kind of lifelong experience like a former demoscener gamedev comes in.
Anyway, my earlier post might have been a bit tongue-in-cheek but I'm rooting for you to surpass this guy one day! :)
The quote makes much more sense as an in-joke between two like-minded people, because Alan Kay isn't exactly humble himself nor does he avoid provocative statements.
And speaking as a Dutch man, given the kind of humor we have I'm pretty certain Dijkstra appreciated a good roast like that too.
Have seen that presentation, but that still does not give the full context. At least, I don't think it is obvious from the video alone whether this remark was a friendly jab between friends, or whether it was a stereotypical vicious academic back-and-forth between to big names in a field.
Perhaps we would have more of a chance if we make a collection of international differences in checkmark designs and propose that set of glyphs as a whole.
The other comment is correct, it was added as part of proposal adding a larger set of mathematical symbols[0]. The wikipedia page actually mentions the path through which it was added, which lets us make some educated guesses:
> From that apparent beginning, the Angzarr was swept up into the Monotype typeset catalog of arrow characters (...) It is unknown why Monotype added the character, or what purpose it was intended to serve
> In 1988, the International Organization for Standardization added the symbol to its Standard Generalized Markup Language (SGML) definition, apparently pulling it from the Monotype character set.
> In March 2000, the Angzarr symbol reached wide distribution when the Unicode Technical Committee, in collaboration with the STIX project, proposed adding it to ISO/IEC 10646, the ISO standard with which the Unicode Standard is synchronised. The Angzarr was proposed in the ISO working-group document Proposal for Encoding Additional Mathematical Symbols, although no specific purpose is listed for the symbol.
My guess is that the people proposing the addition of new maths symbols[1] weren't going to decide on inclusion or exclusion of a symbol on the basis of being familiar with it themselves or not, since that was likely true for many symbols that happened to only be used in fields of mathematics that they were not working in. Meaning they had to rely on some other kind of "authority" to infer that a symbol was used by the larger maths community. With that in mind "being part of the Monotype catalog and part of SGML" seems like a pretty sensible heuristic to go by.
Another consideration might have been that they simply wished to have complete coverage of the symbols that SGML encoded, regardless of familiarity with the symbols involved. And of course both could have been true.
There's something hilariously telling about calling yourself the "ultimate" dev while being completely oblivious about who Don Hopkins is, or what his views on this type of subject would be.
The quote is from a slide of an FBI presentation of unclassified information regarding the Epstein files that is hosted on justice.gov itself. What about this is hearsay exactly?
You're calling a direct quote of a testimony given by one of Epstein's victims "hearsay". ctrl+f "bit" in that PDF.
Pretending to be oblivious to the many complaints that the attacks in Iran are another attempted distraction from the Epstein files isn't fooling anyone either.
You may feel like it's "off-topic", but I don't see why people should be allowed to talk about and glorify military techology, but not voice their disgust at it, how it is used, or why.
Anyone can claim anything. That is not proof.
Surely you can see we've been down this road before with fabricated claims.
I do hope that Epstein's inner circle is taken down, but let's get hard evidence.
Some claims from the 80s and old pictures of them together in public is not proof.
There IS more evidence on other people though, and I hope those people get what they deserve. It's fucking sick.
How long can you continue to defend and carry the water for pedos? It's not a good look, and it reflects on your character and personality. Do you think you'll ever get tired of it? Or do you get even more committed and dig in even deeper every time you do it, because of your pride, and refusal to admit you're wrong in the face of enormous piles of irrefutable evidence and an obvious cover-up? Are you actually gullible enough to believe the Department of Justice keeps accidentally illegally withholding millions of documents, so many of which just happen to be about Trump? Or do you just want us to believe you're astoundingly gullible to cover up your much more insidious motives? If the Trump-Epstein Files prove he's innocent like he claims, then why doesn't he release them all without redacting his own and other powerful pedos' names, as promised by his campaign and required by law? And why do you keep pretending to fall for that bullshit hook line and sinker and defending him again and again? Your posting history is so embarrassing -- have you no shame? Are you into public self humiliation or something?
Edit: I have never defended Clinton, and he hasn't been president for decades, and has not started World War III and bombed 170 school girls to distract from the Trump-Epstein Papers like Trump just did. And no, nobody's paying me to school you the truth about Trump by refuting your lies.
>Anyone can claim anything.
And you just claimed Trump broke ties with Epstein in the 80's, which proves you're a liar. And you still have to explain why you believe everything Trump claims without question or evidence.
You have a long well documented track record of HN posts defending Trump, so you're lying through your teeth when you say that you hope all involved are prosecuted. And there you go again lying about how Trump cut ties in the 80's. Your facts are wrong and you know it. Trump never claimed to have cut ties in the 80's, so you're lying about that, and Trump is lying about having a falling out in 2004. Epstein was a member of Mar-a-Lago until at least 2007. There is a 2011 email from Epstein to Ghislaine Maxwell discussing Trump and time spent at Epstein’s house, and the infamous and disgusting 2003 birthday letter signed by Trump that appeared in Epstein’s birthday album. In your own words: "It's fucking sick." So stop lying to defend pedos.
Yet you have the audacity to lie that they cut ties in the 80's, directly contradicting what Trump himself has claimed that their relationship lasted decades longer than that, and proving beyond any doubt that you're a liar who is willing to bend the truth by more than two decades to protect Trump, when it's so trivial to prove you're wrong and rub your face in your own lies by simply quoting Trump's own words:
In a 2002 New York magazine interview, Trump said:
"I've known Jeff for 15 years. Terrific guy... it is even said that he likes beautiful women as much as I do, and many of them are on the younger side."
It's as if you WANT to be proven a liar, so you just sharted that totally obvious bullshit about Trump cutting ties with Epstein in the 80's -- "the guy who cut ties back in the 80s" -- so you would get caught red handed lying in this very conversation on purpose. What is wrong with you, dude? Did you think nobody would call you on it? Do you get off on humiliating yourself?
Now let's get to the bottom of why you are so invested in defending pedos by lying. Now that you've just proven again how blatantly and mendaciously you will lie to protect pedos, explain WHY?
How customizeable is the programming of the thermal printers? Whenever I see the dot prints of these thermal print cameras I wonder if I could make it look better using more modern dithering algorithms, e.g. Ostromoukhov dithering:
There might be common scenarios where this had a real, significant performance impacts, E.G. use-cases where it's such a bottle-neck in the interpreter that it measurably affects warm-up time. Also, string manipulation seems like the kind of thing you see in small scripts that end before a JIT even kicks in but that are also called very often (although I don't know how many people would reach for Java in that case.
EDIT: also, if you're a commercial entity trying to get people to use your programming language, it's probably a good idea to make the language perform less bad with the most common terrible code. And accidentally quadratic or worse string manipulation involving excessive calls to trim() seems like a very likely scenario in that context.
reply