HNHacker News
TopNewBestAskShowJobs

dr_zoidberg

1,856 karma · joined September 24, 2014

submissionscomments
dr_zoidberg··on Speeding up VSCode extensions in 2022
Is that really bad? I mean, it's telling me the language it's in, so it's a bit of valuable information if I'm looking for articles/posts about something a bit esoteric. Say I wanted to implement algorithm X for which there are few references, well if I read "Implementing Algorithm X in Rust" that's an informative title, whereas maybe if it just were "Implementing Algorithm X" and I then find out upon opnening it that it's in Rust, and maybe I wanted C, Python or MATLAB.
dr_zoidberg··on The impact of hardware specifications on reaching quantum advantage
The D-Wave design is for quantum annealing, which is still super interesting and solves practical problems, in particular optimization problems. You can read a few summaries of the different systems and how they were compared to classical computers at launch in Wikipedia[0].

For a quick tl;dr: D-Wave computers can speed up certain optimization problems, but more than a few times it's been in doubt if they provide an advantage over classical computers or not (notice that a few times they compared against single threaded systems).

[0] https://en.wikipedia.org/wiki/D-Wave_Systems#Computer_system...

dr_zoidberg··on The impact of hardware specifications on reaching quantum advantage
Decoherence is the answer. Veeeeery long story short, qubits have to be isolated from the world as much as possible to maintain their "magical quantum properties". Decoherence is when those ideal conditions break, and the qubits no longer behave as needed for the quantum computer to work. The more qubits you have, thet harder it gets to fend off the inteference from the outside world that decoheres the qubits.
dr_zoidberg··on Pfizer board member suggests end to mask, vaccine mandates
Question: does it have such a dramatic effect in vaccinated persons too? I just read a few headlines about the tests for this treatment, but haven't really had the time to read in detail.
dr_zoidberg··on The impact of hardware specifications on reaching quantum advantage
Yes, that's a lot considering that large systems today have in the order of 100-1000 qubits. Mind you, the systems currently saying that are larger than 100 qubits are debated if they really are quantum computers in the broadest sense, or a subset (consensus is they are a subset of quantum computers, and not full fledged). So the largest, "really quantum computers" are in the order of ~100 qubits.

Edit: for context, I'm referring to D-Wave, that some years ago said they had broken the 1000-qubit mark, but their systems aren't generic quantum computers, but rather computers tham implement quantum annealing.

dr_zoidberg··on WebAssembly techniques to speed up matrix multiplication
Back when I was younger we had to develop a few simulations in university, and we spent half the semester coding the building blocks in C. I was slightly good at it, and having seen my brother stumble a couple of years before, I knew I had to be careful with the data structures and general code layout to keep things simple and working.

As this was a group project, there were other hands on deck. One weekend I caught a nasty cold and I couldn't assist the weekly meeting to work on the project. Monday comes and we have to show our advances. The code was butchered. It took me a day to fix what had been broken (and keeping egos at bay, it would've been easier to just throw everything away and implement things from my last stable version).

Now I can fire up python, import numpy and scipy, and make far more complex simulations in a couple of minutes and a few lines of code. Sure, back then python and numpy did exist, I just didn't know about them. But you know what didn't exist 10-15 years ago? Pytorch, TensorFlow, JAX and all the deep learning ecosystem (probably scikit-learn did exstist, it's been around forever!). Thanks to those, I can program/train deep learning algorithms for which I probably wouldn't be able to code the lower-level abstractions to make them work. JAX comes with a numpy that runs on hardware "for free" (and there was PyCUDA before that if you had a compatible GPU).

That's the programmer productivity you're not seeing. Sure, these are very specific examples, but we have many more building blocks available to make interesting things without having to worry about the lower layers.

You can also complain about Electron being a bloated layer, and that's OK. There's your comparisson about how Spotify is slow and Winamp is/was fast.

dr_zoidberg··on WebAssembly techniques to speed up matrix multiplication
I'm not arguing against your point at all. I'm just pointing at the fact that there are many who are happy to wait a year, buy a 10-20% faster CPU and call it a day, or buy more/larger instances on the cloud, or do anything but optimize the software they use. Some couldn't even if they wanted, because they buy software rather than develop in-house, and aren't effective in requiring faster performance from their vendors.
dr_zoidberg··on WebAssembly techniques to speed up matrix multiplication
You are precisely telling me the ways in which I can get faster hardware: GPU, accelerators, the I/O stack and SSDs, etc.

I agree that the software layer has become slow, crufy, bloated, etc. But it's still cheaper to get faster hardware (or wait a bit for it, see M1, Alder Lake, Zen 3, to name a few, and those are getting successors later on this year) than to get a good programmer to optimize your code.

And I know that we'd get much better performance out of current (and probably future) hardware if we had more optimized software, but it's rare to see companies and projects tackle on such optimization efforts.

dr_zoidberg··on WebAssembly techniques to speed up matrix multiplication
Wasteful of computing resources, yes, but for a long time we've been prioritizing developer time. That happens because you can get faster hardware cheaper than you can get more developer time (and not all developers time is equal, say, Carmack con do in a few hours things I couldn't do in months).

I do agree that we'd get fantastic performance out of our systems if we had the important layers optimized like this (or more), but it seems few (if any) have been pushing in that direction.

dr_zoidberg··on Meta AI: Fist high-performance self-supervised algorithm for multiple modalities
N is right next to M in QWERTY keyboards. Typing fast, you may hit one instead of the other.
dr_zoidberg··on Instant neural graphics primitives with a multiresolution hash encoding
Well we can shorten that list if you're able to write your models in tensorflow 1.15 to: Windows 10 and Python 3.6+. Microsoft has done something quite interesting with tensorflow-directml [0, 1]. A friend is training convolutional networks on a Ryzen 5 3500u ultrabook, at about the same speed my old notebook with a GeForce 940mx could. I'm tempted to test it on a 4600H when I have a bit of time, it could be interesting if the iGPU is able to access a large portion of the 24GB of RAM that system has.

[0] https://pypi.org/project/tensorflow-directml/

[1] https://docs.microsoft.com/en-us/windows/ai/directml/gpu-ten...

dr_zoidberg··on Rich: A Python library for rich text and formatting in the terminal
> Layers and layers of cruft which you can trace back to before the computing era.

Even those layers and layers don't _have to_ slow things down. Check the refterm "debacle" ([2] for the context, [0, 1] as Muratori's answer to it). It's just the way things are usually programmed doesn't care about performance and how fast things really can be. I sometimes wonder in we're not due for a massive round of optimization on a couple of the layers that we're used to using/depend on.

[0] https://www.youtube.com/watch?v=hxM8QmyZXtg

[1] https://www.youtube.com/watch?v=99dKzubvpKE

[2] https://github.com/microsoft/terminal/issues/10362

dr_zoidberg··on Rich: A Python library for rich text and formatting in the terminal
IPythons ? and tab-autocomplete feel like superpowers when exploring a new module you're unfamiliar with.
dr_zoidberg··on Ask HN: Should I publish my research code?
And just like OP said, it generally takes a couple of months to go from paper to working code. I've implemented a few papers as code as a side-gig for a while, and I wouldn't mind having a baseline from the authors to check and see if I'm following the paper correctly!
dr_zoidberg··on Do climate models predict extreme weather?
I think part of the problem is that the discussion has already been rigged beforehand, and now you _must_ lie to be heard. Not because you want to, but because those that came efore you did. So if you now simply state the facts as they are, the other side will go "oh, things are actually better then, because the previous experts were pretty alarmist, and now this person is telling me something that sounds normal an reasonable".

You know where else I see this pattern? Digital forensics, my area of work. People have been selling snake oil all around for years, and know lawyers, attorneys and judges (in general, with some god particular exceptions) believe in whatever they've been seeing in CSI, or their "IT guy" convinced them as possible. Who cares that I'm one renowned expert in the field? _Their guy_ said this thing was possible, so I must be lying!

dr_zoidberg··on Intel completely disables AVX-512 on Alder Lake after all
I was commenting on the fact that people stuck with the idea that "AVX512 is bad because it downclocks". As for turning off the E-cores, yes, it's a tradeoff that you have to consider if it's worth or not for your use case, and probably for most use cases it won't make sense.

Even then, you're not turning off half the cores:

* Area wise, 4 E-cores use as much die space as 1 P-core.

* Thread wise, turning off the E-cores brings you from 24 threads down to 16 threads.

* I didn't see the PS3 emulator benchmark, but you are telling me that they got a speedup.

* There are some anecdotal accounts ("hardware influencers", YouTube channels, etc) about P-cores being the main driver for gaming performance, hence why these sources mainly recommend the 12400 processor with no E-cores as a price/performance sweet spot.

* Of course, not everything is gaming, and depending on what you do with your computer(s), what will work better.

All in all, I'm more interested in the Celeron/Pentiums which will be Gracemont only (E-cores) and what kind of performance, battery life they get from them. I have an old (2018) sub-notebook that houses an N4000 Celeron (that'd be Goldmont+), and it was surprisingly good for answering emails, web browsing and watching online video. Abysmall performance if you tried to do anything that required math with it (10x to 100x slower than an i5 from the same time) but apparently they've ironed out all those things and those little cores can get in the same ballpark performance, at a much lower power envelope.

dr_zoidberg··on Random number generator updates for Linux 5.17
Well it's the subject of the email sans the "[GIT PULL]" at the start. Maybe they just went with it for the title? It's been changed to "...for Linux 5.17" so it's clear now for those just reading the headlines.
dr_zoidberg··on Intel completely disables AVX-512 on Alder Lake after all
That was before Ice Lake, where it had a very decent performance (just downclocking 10%) and then on Rocket Lake it didn't even downclock [0]. But the thing that stuck in our collective mind was that "it's bad because it downclocks". And seeing the RKL numbers, which are new to me (I had only read de Ice Lake numbers back in 2020) it wasn't even 14nm's fault, just an implementation issue which Intel eventually worked out.

I don't know if it was super good (Linus Torvalds certainly was loud against it, and from his POV, his critic makes lots of sense), but I run some numeric code from time to time that _in theory_ could benefit from it. So it's a bit of shame that it won't be supported in future products? Let's see what AMD does about it on Zen 4 and if they manage to force Intel back to it, if only for competitions sake.

[0] https://travisdowns.github.io/blog/2020/08/19/icl-avx512-fre...

dr_zoidberg··on Recording 660FPS Video on a $6 Raspberry Pi Camera (2019)
The 1 μs is the time the electronic shutter takes to act, and there's no spec sheet for that that I'm aware of in the Sony cameras. As for exposure times at high frame rate, they go up to (down to?) 1/10,000th of a second, so definitely the electronic shutter must be working faster than 100 μs to reach that.

But as someone already pointed out, my main issue was understand the "International" (the I from ITAR) as meaning that it was a treaty signed by many countries, when it actually means "exporting from the US to International markets".

dr_zoidberg··on Recording 660FPS Video on a $6 Raspberry Pi Camera (2019)
Right, that was it. I just took the "International" part of the name to mean as if it were signed by many countries, not a "from the US to the rest of the world".
dr_zoidberg··on Recording 660FPS Video on a $6 Raspberry Pi Camera (2019)
I'm a bit confused here. There are a few Sony cameras (the RX series) that have a 960fps capabiilty, with exposure times of under 1/1000th of a second. That's around 8 times the 125 fps limit set by ITAR, yet those cameras are sold pretty much everywhere around the world. What am I missing/not understanding here?
dr_zoidberg··on The Economist tracks excess deaths
It's pretty sustainable on cities witth proper public transport. And I say that living on a city with pretty much subpar public transport, but on which I manage to go everyday just walking, save for a few trips from time to time where I definitely need to move by car (it's a bit under once per week, think 30-40 times a year).
dr_zoidberg··on Against 3x Speed
In a course I teach when the isolation measures started in my country we got 2 weeks in advance to turn everything from in-person classes to virtual "maybe for a month, and then we'll go back" (you can imagine how that turned out).

So during 2020 we moved into a model where we recorded the lectures for students to watch on their own time, and then they'd have a questions-only class (or so they were told). This turned out to get 80-90% of the students to actually view the material before class, and then they'd ask questions about what they didn't understand. On a few difficult topics, we ended up having yet another lecture (but focused on the parts they had trouble following).

On some occasions where they didn't engage with many questions (I think it was the first few classes under this model, which was novel to the students) we the teachers picked up on doing a quick recap and focusing on what we knew beforehand tends to be hard to understand, and engaged them in the class (questions, explain the concepts themselves, etc).

Here's my take: it takes a lot of effort to do this, from recording the material beforehand, to "lying" that the class will be questions-only for clearing up (and we know we'll end up explaining yet again if they don't bring questions), to actively engaging and changing the pace of the lectures/classes.

Because of all this effort, out of 5 different courses I teach, I only managed to pull this in 1, and we're still tweaking a lot of content to make it work better under this model. But we're planning to keep it even after the restrictions are gone (we're still not giving in-person classes at my university, in theory they'll be back for 2022).

dr_zoidberg··on Moore's Law, AI, and the pace of progress
Check, not a fan of M1 being super closed, but "it's the Apple way" (and I don't buy Apple products). RISC-V is very interesting, but so far it seems to have been too niche and not exploited to its full capacity. Here's hoping that changes in the (near?) future!
dr_zoidberg··on Moore's Law, AI, and the pace of progress
Got it. What about the RPi vs M1 numbers? I've not found anything in that regard that puts both chips on the same ballpark, M1 seems to be getting at least twice (and in general about 10x) the performance for a similar power envelope. Then again, I did have some trouble finding benchmarks that had ben tested on both, I ended up going for a few Phoronix benchmarks that showed the same tests[0, 1]

[0] RPi: https://www.phoronix.com/scan.php?page=article&item=raspberr...

[1] M1: https://www.phoronix.com/scan.php?page=article&item=apple-ma...

dr_zoidberg··on Moore's Law, AI, and the pace of progress
The argument as you've written it here is interesting and makes sense, but I have trouble getting to that conclusion from OPs comment.
dr_zoidberg··on The Data Classes Decorator
It's a completely new account that was created specifically to write a negative comment in a post. Maybe that's enough for the flagging?
dr_zoidberg··on Moore's Law, AI, and the pace of progress
I'm not quite sure I follow it myself, but here are the key points as I understood:

* Energy decline is accelerating.

* Perf-per-watt is stagntting (hence the comparisson of RPi @ 28nm vs M1 @ 5nm).

* This trend leads to economic decline (Note: I don't understand why, maybe it's explained but I didn't get it).

* Eventually hardware won't be replaceable.

* Software should be improved to get better efficiency (Note: I'm not sure this is a claim made by OP, but it's something I understood).

Edit: having taken the time to summarize what I understood from the comment, I must say I don't quite agree. The RPi vs M1 comparisson seems way way off, they both have a similar power envelope but the M1 has about 10x better results in various benchmarks. I don't agree that hardware won't be replaceable (save for a civilization shattering event, which is not what we're discussing here).

I do believe software _could_ be more optimized, but then again I'm not sure that's a point OP was making (they did mention something about "software gatekeeping" which I took that way, probably misunderstood what they really meant). Now that I've thought about this some more, this is probably something I conflated into OPs post based on my opinions.

I'm not quite sure what to think about energy decline. I think they meant about using more energy for things that used to take less energy before? If that is the correct interpretation, I'm not sure what we're talking about. On micro scales (eg: computers) I don't think that holds, but maybe it is happening on macro scales (eg: large industries). But even for macro scales, I think there's been a shift to efficiency, if only to reduce energy costs. Then again, that's not an area where I have the faintest idea, so maybe I'm blatantly wrong and OP is right.

dr_zoidberg··on Django 4.0
> How come I'm not responding faster, merging PRs, fixing issues? For this critical popular project??!

> Meanwhile, sponsorships are at 13% of the (not terribly ambitious) goal of $6k/month

The answer would then be: "because I have to keep another job to pay the bills" then? Hope you can get to your goal ASAP. Going by stupidly quick math, you have 12k stars for gesim alone, and that boils down that if every star on github payed 50 cents you'd already be there. I know that starring doesn't mean anything other than "hey, this looks interesting!", but then again 50 cents is probably cheap enough for a majority of those "stars" that they wouldn't even notice.

Also: thanks for creating and maintaining gensim!

dr_zoidberg··on FAQs: Why we don’t have them (2013)
> That's small thing, but really makes me spend so much more time when I need to use Python for something. I guess that's not an issue for experienced developers who memorized all functions they need.

I've been programming in python for almost 15 years and I don't know all the functions/classes/attributes of any module in the standard library probably. What I do know is that if I'm on a vanilla python shell I can type `help(module)` and I'll get that list in the shell directly, and even `help(module.function)` will give me enough context most of the time that I won't need to go online either.

However, as my daily shell, I use IPython, on which I have smart autocomplete that inspects the modules for me by just typing `module.`, hit tab and BAM! All the things inside the module pop up before me to explore. Something looks about what I need? I add a ? at the end an press enter, so `module.function?` will show me the docstring, nicely formatted with the signture (the same thing the built-in `help()` does).

So the online docs, for python, rest on an entirely different level. But sure, coming from other languages it may be weird not having what you're used to. It's part of the languages culture.

← PreviousPage 4 of 32Next →