HNHacker News
TopNewBestAskShowJobs

kizer

262 karma · joined June 30, 2014

SWE JavaScript/TypeScript, C, Java, Creating Programming Languages.
submissionscomments
kizer··on “The visas were then copied as screenshots and sent ”
Oh, ok. Thank you.
kizer··on “The visas were then copied as screenshots and sent ”
I'm assuming they sent a fixed QR code or something similar? Anyone familiar with the visas? What a debacle.
kizer··on ImageNet contains naturally occurring Apple NeuralHash collisions
Rehash everything using 512 bits or something.
kizer··on Hire for slope, not Y-Intercept
Without reading the article, I think I get it! Lol.
kizer··on Stupidity is a specific cognitive failing
It’s about the plasticity of your brain, but also sometimes about the opposite: holding firm mentally. Some brains hold simpler models with greater certainty. Some brains hold more complex models with less certainty. Each type witnesses instances of “stupidity” in the other; overly plastic brains (guilty) can seem aloof, imprecise; the opposite can seem too literal and closed-minded. Guess which brain votes for which political party :).

However, the caveat is that the latter brain is more suited to the world right now, with society becoming information rich and complex, and with nuanced social norms (not just x is good, y is bad). Of course I’m biased here.

kizer··on Crafting Interpreters is available in print
Great job, man. I've consulted the online version a number of times over the years. Will be purchasing this in dead tree form :D.
kizer··on An app for M1 Macs that plays the sound of a fan as CPU usage goes up
… Electron
kizer··on GitHub Copilot as open source code laundering?
I mean, this is close. With "co-pilot" an experienced developer saves mountains of time, especially as s/he learns how to wield it effectively.
kizer··on GitHub Copilot as open source code laundering?
Could disincentivize open source? If I build black boxes that just work, no AI will "incorporate" my efforts into its repertoire and I will still have made something valuable.
kizer··on Near, the emulator developer of bsnes, higan, and more, has died
Eccentrics - how many, how eccentric - are a measure of the cultural sophistication of society. Very sad. "KiwiFarms" sounds like a terrible site; would love to see it destroyed, but those people will find somewhere to aggregate. Looking forward to being as eccentric and vulnerable as possible in my own life :D.
kizer··on If you think psychological science is bad, imagine how bad it was in 1999
Hence the “replication crisis”. Replication of experiment and differences in outcome highlight the “core” result. When the results are just totally different, obviously there was “gaming” or just a bad experiment.
kizer··on If you think psychological science is bad, imagine how bad it was in 1999
Interesting how as I began reading the excerpts from the paper I had to stop myself and realize that the author himself had ironically conferred a bias against the paper, LOL. I was primed to find all the flaws.

I think psychology and sociology are legitimate and worthy studies, but they run into issues with the scientific method itself due to the ambiguous and “high-level” nature of their concepts and theories. It’s hard to create meaningful, repeatable experiments. So perhaps it should be emphasized how important it is to put effort into constructing experiment... and in particular keeping the subjects unaware of what it being tested. There are probably many great examples of experiments done.

kizer··on Windows 10 to be retired in 2025, as new OS unveils
It’s going to be more Linuxy somehow. I don’t know how, but there’s going to be something with Linux like WSL but more.

What if they included two kernels, both Windows and Linux? Just speculating.

kizer··on U.S. Supreme Court revives LinkedIn bid to shield personal data
Scraping is inevitable. It seems like it exists in this grey area of a “hacky” accepted practice. I think it should be expected today. If it’s public, it’s public. Of course copyright applies, but day after tomorrow people will just run copy through a GPT-3-like scrambler or rephrasher or something and publish it anyways.

The reality is that anything public on the web will be able to be harvested and made use of —- sort of how it’s been and really how it should be.

kizer··on EA got hacked and games source code leaked including new game Battlefield 2042
Plus, this would be a goldmine for finding game exploits, and creating PC mods for all the Frostbite-powered games.
kizer··on EA got hacked and games source code leaked including new game Battlefield 2042
Although I don't condone hacks like this of course, I think it would be amazing for someone to interpret the engineering and mechanics behind a title like FIFA for the rest of us; I'd look through the code myself though I'd imagine it would take a long time to make sense of it.

Same for Frostbite.

I'm just curious about the tech behind AAA games and it would be fascinating to explore the innards.

kizer··on EA got hacked and games source code leaked including new game Battlefield 2042
I know, right. They tried their best.
kizer··on Chrome is faster in M91
V8 is really an engineering marvel, making such a high-level, dynamically typed language as fast as it is.

I see people talking about WASM and “why bother with JS at all”, but keep in mind that JS code is more expressive than WASM, so if you’re aim is to minimize costs you still save bandwidth using JS over WASM. You could argue that it’s negligible or worth the performance increase, but if you’re a big site the cost savings add up, right?

Also, JS is of course widely used outside of the browser, and there’s a reason it got so popular: it lets you focus on the domain instead of all the other stuff. I can’t think of another mainstream language I’d rather use to prototype and algorithm, application, system, whatever. And the fact that V8 makes it so fast is the reason people just stick with JS. Gradual typing with TS eliminates the only remaining downside (dynamic typing and a big code base).

kizer··on Spintronics: Build Mechanical Circuits
You'd think the water analogy would be easier to build and sell. Regardless, the more "analogies" the better, as the abstract concept reveals itself more readily.

When I was taking physics, the water analogy of circuitry helped me out a lot, especially with regards to capacitors and inductors. Inductors being like a water wheel, taking time to ramp up to speed then reinforcing flow of current (as I remember?). And capacitors being like a rubber sheet separating water. A strong current provokes a respective force against the water on the other side and slowly stretches the rubber until current stops; the key thing is it requires constant voltage to keep the rubber stretched; the elastic energy of the rubber is analogous to the stored electric field in a capacitor (?).

Physics was hardest for me... I preferred the more structural and compositional nature of computer science. Things changing continuously is hard for my brain :(

kizer··on Google Docs will now use canvas based rendering
Their crawlers are more advanced now. They already handle SPAs with # URLs and content that’s only fetched once the JS is executed, and likely use some OCR and more powered by AI magic.
kizer··on Google Docs will now use canvas based rendering
I’ve considered making something similar, but I’ve thought: what’s the advantage? Just more computation for the server that could be done client side. Why not just have the app on the client.

I’ve dubbed this the “cloud gaming” approach, lol.

kizer··on Google Docs will now use canvas based rendering
You can render the fonts and do the text shaping yourself. You don’t even have to use any of the Canvas API except putImageData, or WebGL. Also you can use your own curve drawing algorithms so you own all pixels of the application.
kizer··on Google Docs will now use canvas based rendering
Google’s crawler, or rather the component that processes pages, is much more advanced now. I’ve read it has no problem handling complex SPAs where only a “shell” page is initially returned and no information is available until JS runs. They probably have a modified chromium and maybe employ OCR to digest some content since there are now a gazillion ways to display a page and its content, aside from canvas.
kizer··on Google Docs will now use canvas based rendering
meta tags, and crawlers will use headless browsers or another thing and OCR on top of that. Google already handles SPAs where the content isn’t available until the JS is run. I wouldn’t be surprised if they already have tested or use a modified chromium and for crawling, plus OCR if necessary.
kizer··on Google Docs will now use canvas based rendering
Ran well for a few minutes on my iPhone, but froze up and then again after refresh. But very responsive and crisp. Obviously not yet optimized for touch devices; have to tap and hold the scrollbar to scroll, native iOS stuff didn’t come up after text selection. Very cool and while imperfect according to other comments, this is not bad at all.
kizer··on Target stops selling Pokémon cards in store, citing safety concerns
...good point. If I’m famous one day, the cards could be significantly more valuable.

I’m not strapped for cash (knock on wood) right now so I plan to hold on to them indefinitely, until an obvious reason to sell or give them away appears.

kizer··on Target stops selling Pokémon cards in store, citing safety concerns
From what I’ve read and come to understand, NFTs may one day become meaningful if they are legally recognized as a claim to ownership. Then, they can serve as a decentralized, easily sold form of copyright. To sell IP for example now, you need a bunch of lawyers and everything is all on paper anyways. There’s nothing tangible to exchange; it’s all dependent on contracts, lawyers. NFTs could expedite this process according to people whom I’ve asked what possible usefulness NFTs could have.
kizer··on Target stops selling Pokémon cards in store, citing safety concerns
Are Yu-Gi-Oh cards worth much now? Have a huge collection. Unfortunately my we’ll-meaning mom wrote my initials in sharpie on the back of a bunch of the cards so that people wouldn’t steal them, LOL. I’m wondering what kind of cleaner will take the sharpie off but not damage the cards.
kizer··on Google Docs will now use canvas based rendering
I've been working on a canvas-mostly render library. Some things like text input would require using the native component to some degree; e.g., the input element could be invisible while the canvas would render the text field in its place.

Honestly, why even bother with the DOM? Even for "article" sites; you can have pixel perfect control over your rendering, especially if you even implement your own anti-aliased bezier curve rendering algorithms. There's already a library that processes fonts (opentype.js) and returns the parameters of the bezier curves that need to be drawn to construct the glyphs.

You're fine still using HTML/CSS for a bunch of reasons (lighter static sites, already have developed codebases for each).

But, why not own the whole thing in TS/JS? For web applications, you'd then have pixel perfect consistency across browsers and mobile devices. There are two ways Flutter, for example, compiles to a web application[0]: either to a mix of canvas, CSS, SVG, and HTML, or just to pure WebGL Canvas using a WASM build of Skia (that's right - the engine that renders HTML/CSS in the first place).

So with WebAssembly and the Canvas, especially taking into account the upcoming WebGPU API which will unlock even better render performance, I'd rather have my whole application be defined in JS/TS and own all of the experience down to the pixel -- complete control. Obviously this is assuming convenient libraries (in WASM/JS) for rendering text/curves/etc. to canvas will exist.

Would be awesome for certain web app usecases.

[0] https://flutter.dev/docs/development/tools/web-renderers

kizer··on The Animal Is Tired
I’m 26 and barely functional. Pushed too hard in sport in HS (swimming), then too hard in college. Got hired at one of the big tech out of college, but was so burnt out that I couldn’t do the work and quit after a year. Only Adderall gives me some life ... for about an hour per dose (prescribed). I’ve been relaxing at home with my parents for two years, but I still feel like a zombie.
← PreviousPage 5 of 12Next →