HNHacker News
TopNewBestAskShowJobs

omgtehlion

1,068 karma · joined June 21, 2011

submissionscomments
omgtehlion··on WebSockets vs. Server-Sent-Events vs. Long-Polling vs. WebRTC vs. WebTransport
Wait, what?? Been using these for years. Am I missing something?
omgtehlion··on Alexei Navalny has died
Yep. They have election commission, appointed by 1/3 putin, 1/3 by duma (with putin's party dominating it), 1/3 by "soviet of federation" which is comprised of governor representativs of governors appointed by putin (in Russia you can not vote for your governor). So, completely independent institutuion, I suppose...
omgtehlion··on Reverse engineering CMOS, illustrated with a vintage Soviet counter chip
No questions, but big thanks, very interesting!

A little nitpick: > И indicates a digital circuit, while ИЕ is a counter

digital circuits were not only [И-], this prefix means arithmetic and register-based circuits. Because there were a lot more “digital” circuits starting with [Л-] (L- means Logic), [A-] for transmission gates and bus arbiters. [B-] for microprocessors and related stuff, [Р-] for memory, etc... The almost complete list can be found here: https://electronics.fandom.com/ru/wiki/%D0%9E%D0%B1%D0%BE%D0...

omgtehlion··on The Uncomfortable – a collection of deliberately inconvenient objects
I’d like to have that tea set...
omgtehlion··on Challenging projects every programmer should try (2019)
Couple of years ago I implemented a snake game in 74-series logic ICs, and 8x8 led indicator, it was fun )
omgtehlion··on How many CPU cores can you use in parallel?
It is easier to deal with all the issues separately. First your algo (in single thread), then threading, then memory accesses and cache effects. After you sort everything in your control, you try to deal with the real world (like counting only “real” cores, ignoring/or enjoying hyperthreads, OS scheduling, but most of these are quite unpredictable, and if you get your code run faster in 12700k, the same setting will be slower on, say, 5800X or on server machines, while basic stuff speeds up the program on any hardware).
omgtehlion··on How many CPU cores can you use in parallel?
> Intel i7-12700K processor

Wait! You can’t benchmark on a CPU with unpredictable speed and mix of slow and fast cores. All kinds of effects come into play here, and the code itself is not the most prominent among them.

To measure which _code_ is better, you should use real SMP machine with fixed clock speed and turned off HT. On the machine from TFA you are just fighting with Intel’s thermal smarts and OS scheduling shenanigans. (edit: you can use the same machine, but configure it in BIOS. I, myself, use i9-12900k fixed to 5ghz@8P-cores as "Intel testing machine")

omgtehlion··on Redlining
Bad analogies are like bananas in a swordfight.

As a “petrolhead” this instantly triggered me: most cars won’t redline at 100mph, actually they won’t even break a sweat (at like 2.5krpm, when redline starts at 5-8krpm depending on engine type and model). Redlining is _accelerating_ too fast, not _driving_ (this means you cannot “redline” indefinitely long, only for short bursts, even if you are a racing or overly aggressive driver).

omgtehlion··on A universal EDR bypass built in Windows 10
Well, the intent is usually the same: extract money from user, either outright stealing, or scare them and get paid for "protection"
omgtehlion··on Sapphire Rapids Core-to-Core Latency
Nice pictures. Anyone knows which software the author used to measure and draw them?
omgtehlion··on “Computer security 80% solved if we deprecate technology shown in this graphic”
Thanks, did not know about this one. Really mad, just nuked .pif from HKCR to regain some sanity ;)
omgtehlion··on MouthPad – In-Mouth Bluetooth Mouse Uses Tongue Sensitive Trackpad
Nice idea! Is it using nRF52832 or smth similar?
omgtehlion··on Rust's Poor Composability
.{ zig has a lot of .{ } }
omgtehlion··on Yandex open-sources its exabyte-scale big data platform
No, it was not, see https://arseniyshestakov.com/2023/01/26/yandex-services-sour...
omgtehlion··on Yandex open-sources its exabyte-scale big data platform
Oh come on already...

Of course FSB has a backdoor to *data* collected by Yandex, but the code itself (as well as coders) have nothing to do with any three-letter-agency within Russia.

omgtehlion··on Moving my PC into my rack in a 2U case
I moved my PC/NAS to a similar 2U box. With onboard GPU, but instead 7 ssds and 10GbE network card.

Though, I did it in a 2U optical cross box. I paid $30 for it, and replaced some panels with fans and grilles. Not 200 euros, holy moly!

omgtehlion··on Ask HN: Why does every package+module system become a Rube Goldberg machine?
I think, this is not a problem with package manager per se. But with extremities of coding culture. On one side of the spectrum is “NIH” and reinvent everything yourself. On the other side is: let’s pull left-pad from package, because packages are good, we need MORE PACKAGES.

The best solution always lies somewhere in the middle. But finding this “middle” (and adhering to this approach) is the hard part.

omgtehlion··on Ask HN: Why does every package+module system become a Rube Goldberg machine?
Idk about Go, but Rust’s cargo seems nice, clean yet powerful.

That was my impression some time ago.

But last week I attempted to compile a couple of (not very big) tools from cargo. And it ended up downloading hundreds of dependencies and gigabytes of packages.

Looks like node_modules.jpg all over again :(

omgtehlion··on Clipboard: Cut, copy, and paste anything, anywhere, all from the terminal
On windows there is already a built-in clip.exe (https://ss64.com/nt/clip.html) which was there like forever...

But it is nice to have this tool with more functionality on all platforms in unified way!

omgtehlion··on Nibbler 4 Bit CPU (2013)
Yes it would. I actually started it with the circuit. It would be somewhat frivolous to call it “Ben Eater's”, as it is a circuit recommended in 555’s datasheet ;)

You should put a couple of inverters after the 555 timer to make signal fronts sharper. I recommend 74als series (older, bjt, easier to work with), or 74hct (more modern, mosfet-based, ttl-compatible). We even tried some 74act parts, but these are not designed for breadboards ;)

Though Ben Eater’s work is overall great and very instructive. You should follow his recommendations on breadboarding (board models, wires and stuff), they are stellar.

The hardest part, as usual in electronics, is contact quality, be careful diligent. For Nibbler we used around 5-6 breadboards.

P.S.: it was hard to source ALU. I scoured ebay for weeks and got some for exorbitant price + shipping. Then I found one factory in Belarus that still makes 74als181 (кр1533ип3 in cyrillic) chips in narrow dip packaging. I ordered a small box of these ;) It was cheaper than a single 74hc chip from eBay.

omgtehlion··on Nibbler 4 Bit CPU (2013)
The only way is to build it piecewise, start with generator, clock and PC, then add microcode and code roms. And you will _need_ a chip programmer, something like TL866, this thing can also test simple chips. And a cheap logic analyzer will be helpful. DSLogic is very cool and has 16 lines, but anything cheap from aliexpress will also do fine.
omgtehlion··on Nibbler 4 Bit CPU (2013)
If you look closer, this CPU _is_ actually some roms sandwiched between registers.

All the logic remaining are bus arbiters and IO access. You can replace 74-181 with one more rom though, but it will not decrease chip count...

EDIT: actually if you replace 74*181 with rom, you can get rid of NZERO flag detection gates (minus 1 chip)...

omgtehlion··on Nibbler 4 Bit CPU (2013)
A couple of years ago I have built a copy of this project with my son on a breadboard with real (made in '80s and '90s) 74-series chips.

It was a very fun experience. And we liked the project very much.

It has a very small and concise schematics which makes it very easy and clear how CPU really works.

P.S.: the original simulator is written in C++/CLI (a .net flavour of c++), so I decided to refresh the project (to c#, it was easier to translate than to port to native c++), and added a real 1602-display simulator which looks nicer and support a “graphic” mode. You can play with it here https://github.com/omgtehlion/nibbler-sim

omgtehlion··on I/O is no longer the bottleneck
Not if you use SAX-like (or "evented") parser
omgtehlion··on I/O is no longer the bottleneck
> the maximum speed PCIE4

4-lane PCIe, as most nvme drives are. I havent seen drives with wider lanes though...

omgtehlion··on Show HN: Wiretap – Transparent WireGuard proxy server without root
this replaces WG + some iptables config in a single user-space solution (no root required)
omgtehlion··on Show HN: Wiretap – Transparent WireGuard proxy server without root
Thanks for the link! IIUIC, wireproxy is not similar, but complementary: you can run wiretap on the server-side and wireproxy on the client and have a complete user-space solution.
omgtehlion··on Add 10 GbE to your system with an M.2 2280 module
https://www.aliexpress.com/item/1005002996748461.html

↑ this one does support gen3. Anyhow, with 4x@gen2 you’ll be fine at 10G speeds (I checked). Gen3 is strictly needed only if you want 2 (or 4) ports, or 25G...

omgtehlion··on Add 10 GbE to your system with an M.2 2280 module
$55 + shipping (less than $5)
omgtehlion··on Add 10 GbE to your system with an M.2 2280 module
Switches: when I last looked, there were cheap mikrotik switches and tp-link, if you want to buy new. Otherwise search on eBay/craigslist/etc.

Network cards: intel, mellanox, solarflare. Intel has a lot of drivers for all OSes, mellanox is most stable electrically (you can provide it with separate power, no need for fancy adapters, just plug any 12v in), solarflare is cheapest on ebay if you buy 2-3-generations old cards. Actually, any 10G network card will do, just check if they have drivers for your OS.

Thunderbolt: there are ready-made eGPU cases, they are costly but easier to handle. If you want to be cheap: wait for sale of any thunderbolt3-to-nvme adapter. PCBs for all of them are made by the same factory (you can find it on alibaba/taobao) they differ only by box and branding. Based on intel JHL6340

edit: I have got this, it was on-sale at the time https://www.aliexpress.com/item/4000200151507.html

edit2: just checked eBay, the cheapest solarflare "S7120" (it is SFN7022F actually) is $15 (!) + free shipping, wow. Though you'll need some sfps, they start from $6 (FTLX8571)

← PreviousPage 3 of 14Next →