HNHacker News
TopNewBestAskShowJobs

dognotdog

678 karma · joined January 11, 2014

submissionscomments
dognotdog··on Ask HN: I want to start learning Lisp. Where do I begin?
I did kind of make the assumption that you'd have a code editor that has some form of paren highlighting, at least, though I've never actually found this to be a bigger problem in Lisp than other languages.
dognotdog··on Astronauts' Dirty Laundry (2003)
Maybe you don't need to spin at all because reducing air pressure would allow evaporating all the water at low enough temperatures?
dognotdog··on Ask HN: I want to start learning Lisp. Where do I begin?
I think you can use whatever to do Lisp. I'd start with something simple like Scheme, and definitely by watching and doing the SICP lecture recordings from now 34 (!) years ago: https://ocw.mit.edu/courses/electrical-engineering-and-compu...

Once you think you grok it, you can pick a Lisp that's closest to what other tools and frameworks you're used to. For me, I never actually did anything in Lisp for production use, but learned a lot from playing with various flavors of it.

dognotdog··on Haynes Stops Printing Famous Workshop Manuals
> I think once CAN bus started becoming ubiquitous beyond OBD-II compliance [...]

OBD has always been a small subset of what's happening on the CAN bus, or rather busses, nowadays. Some of the vendor specific things are necessarily unique, but a lot of it is deliberately obfuscated and undocumented because of various idiotic things.

There is truth to the electronic systems in a car having become orders of magnitude more complex than 20 years ago, but that in itself doesn't quite cover it.

Some problems arise without actual malicious intent because every itty bitty control module, of which there are nowadays several dozen in every car, is very likely outsourced by the OEMs, and the suppliers are as bad at following specs as the OEMs are at writing them. As market pressures have resulted in OEMs and suppliers having more adversarial relationships, both sides have become less willing to fix the other side's mistakes, and the customer is the one who takes the bath for it. The only ones winning in the automotive industry's OEM-supplier setup are wall-street, as they encourage the race to the bottom just to squeeze all possible short-term value out of the industry (and often taxpayer money) through an endless cycle of bankruptcies, spin-offs, and mergers.

Another problem is an acute lack of competency regarding computer systems design and implementations, as many OEMs are still stuck in processes meant for mechanical components, not electronics and software.

Even subtracting all the above idiocy, the industry as a whole sees no money in providing a servicable automobile. Unless the incentive changes because of consumer behaviour or regulation, nobody's going to put in the extra engineering work to improve the mechanic's "interface" as long as there's simply no profit in it.

dognotdog··on Apple’s “Extended Dynamic Range” Brings HDR to Non-HDR Displays
Is there a way to get Windows to behave better? I was sorely disappointed by how things look in HDR mode, especially the fact that gamut seems to be abysmal compared to the same display in SDR mode, not even considering the terrible black level artifacting :/
dognotdog··on Apple Silicon M1: Black Magic Fuckery
I, too, am on 2014 hardware. The real step that would move me to update would be more RAM with the Apple Silicon. The last gen Intel hardware did offer 32GB of RAM, but not much else to justify the cost over a 6 year old precursor.
dognotdog··on Why Typing Erlang is Hard: Standard Erlang
I'd second that, Elixir does away with the sometimes vexing comma and dot syntax used for scoping. Also, it does have mutable variables.

You do have to get to grips with pattern matching and processes as objects being such core concepts, but I found that once I got it, it is wonderful.

dognotdog··on Sony cameras can now be used as webcams for Mac
The CoreMediaIO DAL plugin path is very fraught because of GateKeeper/SIP mechanism all trying to stop 3rd party code from being loaded into apps.

The macOS kernel does have, in theory, the possibility to create a .kext that emulates a UVC USB device, so in theory all one had to do was to write a .kext that captures the DSLR/DSLM camera in kernel land, and brings up a virtual USB device that is then recognized by the standard UVC driver (eg. same as any other webcam).

Of course, that doesn't provide any camera settings controls, and the practical side of it is quite complicated, with sparse documentation and difficult development processes, it being a kext. Hence, nobody's done it, yet.

dognotdog··on Sony cameras can now be used as webcams for Mac
I do use a D800 with a 50/F1.4 lens for video conf calls.

A lot of the current generation DSLRs do provide XGA, 1024x768 sized preview images when tethered, as, surprise surprise, that is the resolution of their viewfinder/screen. Older cameras, like the D800, only do 640x480, though IMO that is still a vastly superior image for video conferencing.

I've put together what I've found out so far at https://github.com/dognotdog/ptpwebcam/blob/master/CAMERAS.m...

Sony ILSM cameras seem to all do 1024x, DSLRs mostly do 640x480 unless they're from the last 2 or so generation of cameras. I have most complete information for Nikon, as they actually publish specs for the cameras PTP interfaces, unlike Canon or Sony, which have to be reverse engineered.

dognotdog··on Sony cameras can now be used as webcams for Mac
FaceTime, Safari, and on Big Sur, apparently even QuickTime Player can no longer use 3rd party CoreMediaIO DAL plugins due to codesigning/sandboxing/SIP issuess.

The short of it is that generally within the SIP (system integrity protection) domain, no 3rd party code is allowed to be loaded.

3rd party apps can generally be made to work by removing codesigning, but Apple's stuff is generally very intertwined with services not contained in the app-bundle, making this kind of surgery a lot more difficult. I have personally not been able to get this to work for FaceTime on 10.14 despite best efforts.

An interesting thing Sony seems to do here that others haven't is that they bypass the PTPCamera agent that normally comes on, presumably to directly drive the camera through their own lower level PTP library Lja_PTP_USB.dylib.

Disclaimer: I'm the author of https://ptpwebcam.org, which works much the same for Sony/Nikon/Canon cameras

dognotdog··on Re-Thinking the Desktop OS
Those observations resonate with me. This does sound a lot like the now almost ancient dream of Prolog/Smalltalk where you'd have this much more semantic and malleable environment to work with and shape to the specific purpose it needs to fulfill, without any artificial barriers.

And I don't see why that semantic singularity couldn't be local (or at leat private), instead of the current hodge-podge of "cloud" offerings trying to siphon as much data as they can – under the guise of improving the user experience – just to lock you into their version of the perfect walled garden.

dognotdog··on Why software engineering processes and tools don’t work for machine learning
Oh, I've had the joy of working with Perforce, Jazz / Team Concert, etc. /s

Git is widest adopted, period (EDIT: because of how it blossomed out of linux dev, essentially). I was able to stick to bzr or fossil for a lot of things until github and gitlab basically became where open source work (and even corporate transitioned to some extent!) needed to happen, and the friction of using anything else is just too great at this point in time.

Which is a shame, really, as --fast-import/export is actually not a bad way to transition from one scm to another these days, and I'd personally welcome a little more active competition in the space to evolve beyond the current status quo.

dognotdog··on Why software engineering processes and tools don’t work for machine learning
I do find this mildly amusing – and sad – as git is possibly one of the worst SCMs for non-programmers because its command set is so bottom-up, and therefore doesn't align with a naive mental model of how version control should work, while at the same time it exposes an interface that makes it all to easy to screw things up catastrophically.

GUI tools only help with that to some extent, too, and only the right ones.

dognotdog··on Trump administration announces overhaul of H1B visa program requiring higher pay
Is it only me, or does this sound pretty empty? Except for narrowing of the `specialty occupation` moniker, all the rest seem like things that are already part of the H1-B program?
dognotdog··on The truth about ferrites
Applying ferrites is definitely a little bit of a dark art, I'm glad to see this article. What I did miss is showing what simple turns of the wire without a core do to the signal :)
dognotdog··on Fossil
I'm a big fan of Fossil, but I've sadly not used it in a while for new projects, as when stuff has to go on gitlab or github it is just too inconvenient.

Even though one-way pushes to github/gitlab via --fast-export / --fast-import are relatively painless, going the other way for contributions is still not easy because of rebase issues, etc, at least to my knowledge.

dognotdog··on Myth-busting article about radiation hardened microchips for space applications
IMO, the problem with Arduino in production is not necessarily one of quality, but the fact that is geared towards getting the first prototype up and running as fast as possible, but is difficult to use for production where eg. real-time and safety concerns require mechanisms that aren't present or impossible to implement because the software libraries can't support them.

Scheduling, real-time characteristics, safety and watchdog mechanisms, and resource management pose hard engineering problems, and are often a very unique mix for each application, and again the Arduino libraries are not typically considerate of such concerns.

Add to that the usual pressures of keeping per-unit hardware costs low, to the tune of shaving a few cents off the BOM by choosing extremely constrained microcontrollers, and bending Arduino to fit those constraints becomes an unfavorable proposition.

The biggest benefit of Arduino as I see it is in reducing the barrier to entry for starting a hardware project because you can just wire software and hardware modules together for a proof-of-concept, but it doesn't do much for production.

dognotdog··on Ask HN: Suggestions for books about API design?
I think that's the crux of good design :)

It doesn't mean to unnecessarily expose implementation details, but I take it to be the other way around: implement things in a way that things work consistently without having to know the nuts and bolts.

dognotdog··on Is the web getting slower?
I've recently tried to get a simple webpage snappier replacing hi-res images with appropriate sizes and including heights -- not only widths -- to prevent re-layouts was easy enough, but then…

The single biggest offender in both download and render time that I can do nothing about is youtube loading in over 400kb of Javascript for an embedded video, taking ages to first render, making everything feel glacially slow.

dognotdog··on Ask HN: Suggestions for books about API design?
I came to say exactly the same thing! An API should guide a user to form a mental model that is consistent with the actual inner workings to avoid frustration and making errors (the importance of this cannot be overstated for critical functionality like authentication/authorization).
dognotdog··on In Ashgabat
Interesting doesn't even begin to cover Ashgabat. It is positively surreal. It looks as if somebody was playing Sim City in cheat mode.

And getting through the beaurocracy, crossing the border by car was very much akin to https://youtu.be/JtEkUmYecnk?t=33

After that, finding out that the whole district your hotel was supposed to be in has been demolished just a few weeks prior isn't as surprising as one would think.

dognotdog··on Imaging Edge Webcam
The sensor size does make a huge difference. Images from an APS-C or Full-Frame sensor do stand out.
dognotdog··on Nerves – Elixir Platform for IoT
I had to LOL, this is so true.

For one project I've spent considerable time trying to get the Azure IoT SDK going on a low-cost Wifi chipset, only to find out that it ended up not working after all the platform glue was in place because of inexplicable decisions from both the host APIs (no source code access, of course) and the Azure SDK, making most of the built-in functionality (eg https/MQTT/encryption) useless for Azure, resulting in not only code bloat, but also running out of heap memory with fantastic silent crashes.

After spending weeks on trying to fit everything into ROM in the first place. The end-result was ditching the SDK and re-implenting most of MQTT and websockets before the project was ultimately canned for other reasons.

A pi zero w, otoh, costs about $20 (with a reasonable SD card) vs $5 for something like the ESP32, and makes life easier with unlimited storage and open source platform code, but it is impossible to mass-produce anything for under about $120 retail cost due to the high price of the rpi alone, which is a real bummer in a competitive IoT market.

dognotdog··on That coworker who never stops refactoring
> A big risk here is that it's very easy for refactoring you make a codebase worse.

That seems to happen when refactorings are infrequent and random, vs. a well-groomed codebase. Of course the well-groomed codebase is a mythical creature.

The problem I see is that if refactoring isn't part of the culture, what tends to be built is a tower of cards that never gets the benefit of hindsight because with each subsequent change, the understanding of interactions decreases, and the fear of breaking something increases, leaving to very narrow cludgy changes that become impossible to maintain.

The added impetus of external schedules just exacerbates the issue until the whole codebase falls over, unless people come along who take on that risk and attempt live brain surgery.

dognotdog··on Mac keyboard shortcuts
I have never, in the past at least 15ish years of working daily on a mac, triggered this accidentally. But, I have needed to perform it a handful of times.
dognotdog··on Google Earth Timelapse
There's also https://earthtime.org/ which shows the same satellite imagery PLUS all kinds of additional data layers (disclaimer: I work in the lab that created it)
dognotdog··on Show HN: Nikon DSLR as video conf webcam on Mac
That is interesting. It might be a semantic difference between actually recording a movie stream via PTP, vs. using Live View, which is what I am doing. Libgphoto2 seems to support both, but I haven't tried the former, as the setup seemed more complicated, whereas Nikon's LiveView just gives you a plain JPEG when you request a frame. Even though it's only VGA resolution in the case of my camera, it beats the "HD" of the builtin webcam by a long shot.
dognotdog··on Show HN: Nikon DSLR as video conf webcam on Mac
Canon does have something, but it does have problems. E.g., it cannot get around the Library Validation problem with Zoom and Skype (they tell you it can't be used with those, which isn't quite true), plus you cannot change camera settings while running it.
dognotdog··on Show HN: Nikon DSLR as video conf webcam on Mac
Very nice, definitely give it it's own repo!

I would've gone with libgphoto2, too, if the Mac didn't already have all this half-baked PTP infrastructure in place, and if libgphoto2 would've been easier to integrate into the CoreMediaIO pipeline.

dognotdog··on Weighing a Car with Tire Pressures
Kudos, for My first inclination would've been to jack up the car and look at pressure differences of unloaded vs. loaded tyres... then look at loaded wheel center height above ground vs. nominal radius, compute the the reduction in volume, and assume contact patch to be the area of the flattened section of the tyre cylinder... giving me a whole lot of parameters with wild inaccuracies and probably equally wild results :)
← PreviousPage 3 of 7Next →