HNHacker News
TopNewBestAskShowJobs

mordae

2,350 karma · joined April 15, 2013

submissionscomments
mordae··on Lies, Damn Lies and Analog Inputs (Comparing ADCs on ESP32, Pico and Arduino)
> learning that the analog readings for a Pico and ESP32 come at a massive 16 bit precision (a number between 0 and 65536)

Sigh. No they don't. RP2040 ADC has output resolution of 12 bits with ENOB of about 8.7. MicroPython probably scales those up.

Also, 65535.

This is surprisingly low quality blog post for HN standards.

mordae··on Lies, Damn Lies and Analog Inputs (Comparing ADCs on ESP32, Pico and Arduino)
I did as well. From an espressif employee. It's hard for them to iterate. Every batch must sell so any improvements come really slowly.
mordae··on Proposed UN cybercrime treaty has evolved into an expansive surveillance tool
> In the meantime, I will support my country withdrawing from the united nations.

I don't believe that not talking to others is a solution, to be honest.

mordae··on Why are we templating YAML? (2019)
The real question here is, why the fuck are you not using a restricted LISP dialect, generating an S-expression using macros.
mordae··on Liero – Sling'n'shoot Worms Game
It was a hit in our Czech school as well. Son of a diplomat posted in Finland brought it back here.
mordae··on The Final Speech from The Great Dictator (1940)
Since then a single farmer feeds thousands of people. We are producing more and with much less effort than we did before we have started farming and had to post the guards.

Yet the guards remain and insist that they are still needed.

mordae··on Apple Shuts Down Flipper Zero's Ability to Shut Down iPhones
I love how cheap those CC1101 are! How come they are not more widespread?!

https://jlcpcb.com/partdetail/TexasInstruments-CC1101RGPR/C2...

Spamming at 2.4GHz is boring.

mordae··on First look at Microsoft 365 Copilot
> Abusive or misleading content (definition up for debate) can be censored to prevent harm.

Sure.

> If I have a blueprint for a homemade explosive that a 12 year old can make in a day, should that be easily accessible?

Yes.

mordae··on Linux: Ext4 data corruption in 6.1.64-1
No, the issue was caused by backporting a patch A but not backporting a patch B. Sadly in this case the overall behavior after applying just A was broken when issuing direct IO writes.
mordae··on Dieselgate, but for trains – some heavyweight hardware hacking
Yes. Once it's signed by somebody accredited to review it for safe train use.
mordae··on Dieselgate, but for trains – some heavyweight hardware hacking
Right. Mandate that the software is delivered with CI pipeline running in the client's environment with 100% reproducible builds and verify checksums.
mordae··on Stanisław Lem's vision of artificial life
> The idea that, say, corporations are people, could be more than just a metaphor. It could be literally true.

Sociopaths, to be exact.

mordae··on Signal reflections in electronic circuits
I did that with the electronics hobby group kids couple weeks ago. Hahaha.
mordae··on Signal reflections in electronic circuits
> When PCB reflections start getting in the way of digital signaling, the usual culprit is a low-impedance source driving a comparatively high-impedance load (e.g., a MOSFET gate).

Depends on the MOSFET. Most discrete MOSFETs have pretty hefty capacitance at their gate, looking like a short to high-frequency inputs.

> The simplest remedy may be adding a “sink” resistor on the receiving end, connected to the signal’s return path. This is usually paired with a series resistor on the driving side, both to limit peak current and to at least roughly match the specific impedance of the trace.

The simplest remedy would be to use series resistor matched to the trace impedance to prevent the reflection bouncing multiple times, probe at the gate and only add parallel termination resistor if it is actually needed. Because then you need to work around the voltage drop.

mordae··on Microsoft is eating the world
My bet is on M$ wanting an exclusive deal and board being against it.
mordae··on Why aren't motherboards mostly USB-C by now? (2021)
I don't know. I can easily lift my phone by the USB-C cable. And as for the connectors, sure USB-A usually has 4 through-hole mounting and through-hole live pins[^1] so the connection to the board is rock solid, but USB-C connectors, despite having surface-mounted live pins tend to have shallow mounting pins as well[^2]. I find it pretty durable.

[^1]: https://jlcpcb.com/partdetail/ShouHan-10_0_4C6_3ZB/C6386909

[^2]: https://jlcpcb.com/partdetail/Dealon-USB_TYPE_C018/C2927038

mordae··on Why aren't motherboards mostly USB-C by now? (2021)
Not exactly flimsy, but they often have super high friction, translating into some seriously rough handling.
mordae··on We Automated Bullshit
The platforms won't disappear.
mordae··on Google/IAC/Expedia (2019)
That's why we have public roads.
mordae··on How I got here
It's not like they've scammed others with crypto or tried to overtake markets with price dumping tactics or bribed the governments to use their software or spied on billions for profit.

They've just lorried stuff other poor people wanted. That should not be illegal. The above should.

mordae··on YouTube's Adblock detection might break the law in the EU
> Hacker News has a really juvenile attitude to DRM.

The door is that way.

Anyway. Sure, no one has right to YouTube, but they can't have their cake and eat it too. I think the EU trend is pretty clear: no tracking to make money off our citizens. If you want to sell them a service, go ahead and just name your price. Actually compete instead of giving away stuff for free to undermine competition and then getting the money back by peddling the eyeballs in the back alleys.

mordae··on YouTube's Adblock detection might break the law in the EU
Tied to your IP, which makes it collection of personal information. Meaning you need to consent to it and they are not allowed to do it unless it's strictly necessary in order to deliver the service, bill you and so on.

They can choose not to provide the service unless you pay.

They can also choose not to provide the service to unregistered users and give out free daily watches as a part of their marketing campaign. Then you enter a simple contract by opening an account and agreeing to their terms.

Terms which can include data collection, but it has to be possible to opt-out from it without losing access to the service.

mordae··on EU's concealment of secret 'expert list' on CSAM regulation is maladministration
> This is about who will submit and manage the CSAM fingerprints.

Not it's not. It's about "Why the fuck should I be under constant surveillance?"

Our computers are practically brain extensions at this point. I don't want anyone wiretapping my thoughts or coming close to it by wiretapping my private conversations with my family. Fuck off.

mordae··on Hard-to-swallow truths they won't tell you about software engineer job
Do you need college for that, though? I don't have one and still know how to implement a double-linked list, trees, tries, hash maps and what to test for when implementing binary search[^1]. Just keep your eyes open.

[^1]: https://blog.research.google/2006/06/extra-extra-read-all-ab...

If anything, I miss the linear algebra drills the most.

mordae··on The Grug Brained Developer (2022)
I have a beef with the typing section:

> grug very like type systems make programming easier. for grug, type systems most value when grug hit dot on keyboard and list of things grug can do pop up magic. this 90% of value of type system or more to grug

Juniors at my job routinely ship code that breaks due to null access in production, Sentry tells me. During intensive development periods that's about 1 detected null-access bug per day per junior developer.

Using a proper type system with static checks would probably help immensely by pointing out "Hey, this can be null. You sure?" in their IDEs...

Also, you can have completion even without static typing.

> big brain type system shaman often say type correctness main point type system, but grug note some big brain type system shaman not often ship code. grug suppose code never shipped is correct, in some sense, but not really what grug mean when say correct

That's just rude and uncalled for.

I have shipped code mainly in in C, PHP, Python, Haskell and typed Python. The incidence of bugs that make it into production is much lower with typed languages. That's one reason to like it.

It also makes refactoring much, much easier. I can check whole code base for broken callers when I change something widely used and get reliable results in seconds. That helps immensely with iterating on a growing code base.

mordae··on The Grug Brained Developer (2022)
Because generics are actually a powerful tool for simplifying the data flow. They make it possible to promise not to do anything specific to and based on the data involved.
mordae··on Privacy advocate challenges YouTube's ad blocking detection scripts under EU law
I want YouTube to become just one in the many competing video hosting services with various business and ownership models. I mostly like how nebula.tv runs their business (being owned collectively by the authors themselves, flat fee, no ads). Maybe we can have more of those instead?
mordae··on Let me tell you about me Gear Fabrication Syndrome
I have pretty severe GFS and one part of it is that once you understand what you are building, you don't really wish to finish it and continue on a more stimulating tangent.

On the other hand, teaching others stuff that doesn't (by itself) stimulate you anymore gives you an opportunity to check the quality of your understanding and is also fun in itself.

Another way to finish is to build a birthday gift and thus impose a deadline on yourself.

mordae··on Let me tell you about me Gear Fabrication Syndrome
> as I should

You shouldn't do anything. It's your life and you live it like you want. All morals, shoulds and shouldn'ts and musts and mustn'ts are a pile of horseshit. You are only responsible to yourself and you are going to be the person judging yourself in the end. When somebody tells you you should go to church, it's about the same importance as if they asked you to play CoD with them.

And if you are bothered that you did not finish something... circle back to it. You have decades of life to purse your happiness. Relax, enjoy the detour and circle back with more knowledge and savings.

mordae··on Was Rust Worth It?
You usually solve this by using a traversal helper that keeps the stack and next/prev for you without storing them inside the AST explicitly.
← PreviousPage 10 of 27Next →