HNHacker News
TopNewBestAskShowJobs

auxym

2,296 karma · joined May 2, 2014

I'm mechanical engineer with a long-lived interest in programming and computers.

Get in touch:

frtherien@gmail.com github.com/auxym

submissionscomments
auxym··on Ana is a Python, PHP, and C inspired dynamically typed scripting language
Nim is mostly inspired by the Pascal/Modula/Oberon family, notably in its type system. The only thing it took from python (arguably) is the indentation-based block syntax.

Programming in Nim actually "feels" quite different from python to me, due to things like a much lighter OOP system (that is somewhat discouraged), the type system, and UFCS, though it "looks" like python at first glance.

auxym··on Intuit asked Mailchimp employees to pay medical costs out of pocket
Good NPR Throughline episode on the subject: https://www.npr.org/2020/09/28/917747287/the-everlasting-pro...
auxym··on Ask HN: Which book can attract anyone towards your field of study?
Mechanical (or aerospace) engineering.

Fun/easy reading: Skunk Works: A Personal Memoir of My Years of Lockheed (Ben R. Rich)

Textbook:

Shigley's Mechanical Design (recent editions are by Budynas/Nisbett by older editions with Shigley as an author are just as good as an intro)

auxym··on The RP2040 Stamp
You've raised real downsides (for some applications), but the rp2040 also many features that are unheard of at its price point (1$): dual core, PIO, lots of ram. In fact the RAM + dual core means you're almost getting two Cortex-M0+ MCUs for the price of one (with shared peripherals).

For comparison, Microchip (formerly atmel) SAMD21 (also Cortex-M0+, of Arduino Zero fame) is about 3-4 $, single core, less RAM.

auxym··on The counterintuitive rise of Python in scientific computing (2020)
Matlab works fine for anything purely "numerical" but fails hard as soon as you need to do more "general computing". Just string handling for example. Or, as far as I know, it's still not possible to implement a custom CLI interface in a matlab script, like you would with argparse in python.

Matlab also historically was really bad for abstraction and code architecture in general. For example, the hard "1 function per file" rule, which encouraged people to not use functions at all, or if you really had to, write 2 or 3 really huge functions (in separate files). Only in recent years (the past 5 or 10 years) did matlab get OOP stuff (classes) and the option for multiple (private) functions in a single script file (still only one public/exported function is possible per file, because the file name is the function name and matlab uses path-based resolution).

auxym··on Ask HN: Why aren't there any real alternatives to Electron?
Unfamiliar... for whom?

Are we at the point where all developers, or all GUI developers, are expected to be familiar with HTML/CSS/JS/DOM concepts?

The QT stuff is familiar to me (from python mostly), but I have only very barebones knowledge of HTML/JS and almost none of the DOM and CSS.

auxym··on Making a Stainless Steel Rubik's Cube
Yep, we annealed a bar of 304 once (in a good kiln oven with electronic temp control) and it came out looking like brass.
auxym··on Making RockPro64 a NetBSD Server
Got an H64 a few months ago as an alternative to a RPi. Definitely much easier to get the H64 than a pi.

Bit disapointed by the support in general though. I expected the Pine stuff to be better than "random boards from no name companies on Aliexpress" in terms of HW documentation and software support, but it wasn't that great. Software support is totally left in the hands of the community, and I couldn't get the spec for the uFL-like on-board antenna connector anywhere, total silence on their forums for months.

I mean, it works well overall (running Armbian), but I also had random aliexpress boards that had to be fully reverse engineered work pretty well.

auxym··on Cormac McCarthy’s tips on how to write a great science paper (2019)
Words like however and similar are often useful in the introduction of a paper to expose the context, current state of the art, and problem that your research is attacking. I'm in engineering though, so most research and papers follow the theme of "there exists this problem, current solutions are this and this, however they are not ideal because X, therefore we present this novel solution which is really great".
auxym··on Ask HN: How does one go about bringing a hardware product to market?
Not a personal recommendation, but I've seen this book recommended a few times: https://www.oreilly.com/library/view/prototype-to-product/97...
auxym··on $1 Microcontrollers (2017)
Oh yes, the PIO is very cool and somewhat unique. The list of examples of things that can be implemented with such a tiny "computer" (9 instructions assembly language, program size maximum of 32 instructions) is quite impressive:

https://github.com/raspberrypi/pico-examples/tree/master/pio

In fact, the rp2040 examples and SDK docs are very, very good compared to most traditional manufacturer's documentation and by itself makes it a very good value proposition for hobbyists.

auxym··on $1 Microcontrollers (2017)
Digikey's parametric search is hard to beat.
auxym··on $1 Microcontrollers (2017)
TBH the rpi pico (rp2040 dev board) is hard to beat for the price of 5$. Dual core ARM cortex-m0+ at 100 something MHz and loads of ram and flash.
auxym··on Cello – High Level C
Nim compiles to C and therefore should be able to run on anything which has a C compiler available.

To my knowledge it's been demonstrated on AVR, ARM Cortex-M and ESP32.

It's macro system comes in handy for embedded, too, as you can precompute so much stuff at compile time.

auxym··on Computer Programming with Nim
It's definitely not at the level of numpy/scipy, probably not even Julia, but there's an active community developing Nim for scientific applications at https://github.com/scinim
auxym··on Computer Programming with Nim
A lot of previous contributors to Nim are currently working on an experimental fork due to disagreements with the development of the official compiler: https://github.com/nim-works/nimskull
auxym··on Emulator of Original Dell Charger Using ATTINY85
To be clear: Ratel isn't my project, just something I'm following due to interest.

In the interest of shameless self promotion :), my own experimentations are :

https://github.com/EmbeddedNim/svd2nim

https://github.com/auxym/nim-on-samd21

And I've used and contributed to picostdlib (https://github.com/beef331/picostdlib), the rp2040 support library.

All just as a hobby, but it's interesting to learn that some companies are actually looking into Nim for firmware! Embedded seems like such a slow moving industry. I believe the author of Nesper and Nephyr also developed them for professional work.

auxym··on Emulator of Original Dell Charger Using ATTINY85
In case you're interested, there's a new project underway that aims to make running Nim on AVR (and eventually other micros through BSPs) as easy (but leaner and more performant) as Arduino: ratel.peterme.net

Nim can already run on most MCUs (I've experimented with samd21 and rp2040), it just requires a few compiler flags or linking steps that are not super well documented. Ratel aims to automate that and provide some high level interfaces for hardware access (gpios, etc).

auxym··on Emulator of Original Dell Charger Using ATTINY85
All micros require separate hardware to flash it, no? Some is cheap (stlink), some are a few hundred dollars, but still.

Unless you have a USB bootloader programmed on the chip, but you still need the adapter to flash the bootloader in the first place.

auxym··on Dell deletes Latitude CPU Throttling issue after link is posted here
I had to Dremel out a Dell desktop case to fit a standard ATX power supply, circa 2005.
auxym··on TclTutor 3: Computer aided instruction package for learning the Tcl language
Eh, I don't know. I wouldn't choose Tcl today for such a use case, maybe Lua. But you could certainly do worse than Tcl. Like a half-thought out custom language. Anyone ever coded nastran DMAP? Or Tex macros? I'd be ecstatic to have TCL over that.

I've seen a materials testing machine whose method to script custom test sequences was a "programming language" that was displayed as text but you couldn't actually type things in. You'd have to select constructs such as a for loop or conditional from a drop down box, then a dialog would appear asking you for the parameters of the loop (start, end, etc).

Actually, I think I even prefer Tcl to Excel's VBA.

auxym··on TclTutor 3: Computer aided instruction package for learning the Tcl language
TCL associative arrays are hash maps that have to be global. They are definitely one of the worst part of the language.

Most people use dicts on modern TCL instead.

auxym··on Post Office scandal: Public inquiry to examine wrongful convictions
I know PE licensing doesn't in general make a lot of sense of software. I read all the discussions on HN on this topic with a lot of interest. I agree it's not even a perfect system for traditional engineering.

But consider this: say you were a licensed engineer, and writing shoddy code you would face the risk of losing said license and not being able to practice in the future. Yes, even if "your boss told you to do it". You are the engineer, you are the professional, it's your ass on the line if lives are lost or damaged. Then your choice is either pushing back and risk to get fired, or don't push back but risk to lose your license.

auxym··on Ask HN: Which programming language should a journeyman programmer learn?
Personally, as mostly a hobbyist, I've been having a lot of fun lately with Nim, including running it on microcontrollers!
auxym··on Fast File Finder for Windows is a tool for quickly finding files by name
or `gci -rec` in powershell
auxym··on Fast File Finder for Windows is a tool for quickly finding files by name
Sumatra is one of the rare pieces of windows software that I miss on linux.
auxym··on Koenigsegg's Tiny Electric Motor Makes 335 HP and 443 LB-FT of Torque
FWIW, the inch has also been redefined as "25.4 mm" in the 1950s.
auxym··on How to excel in tech without learning to code
I hang out on reddit subs for things like mechanical engineering, CAD, FEA, electronics and PCB design. It's not uncommon for people to be asking for help with their software (solidworks, fusion, abaqus, kicad, altium, etc) and posting a picture of their screen taking with a phone, apparently unaware of the "screenshot" feature of their OS. Often these are ME/EE students.

It's somewhat mind boggling.

auxym··on Controlling RGB LEDs with only powerlines: Anatomy of a Christmas light string
I bought christmas mini LED string lights last year from home depot, specifically labeled for outdoor use. Took them out this holiday season, and over half of the strings didn't work anymore.

They have replaceable "bulbs", but HD doesn't sell them, "because they are never supposed to break".

Found replacements that sort of work (different shade of white) a another store for some of the strings, but not for others, and had to throw them away. Very sour with the experience.

auxym··on Ask HN: How do you structure your to-do lists?
I use Trello with Kanban style columns: to-do (sort of my backlog), pending (waiting on someone else or other external factor), in progress and done. I try to keep to cards in some order of priority.
← PreviousPage 8 of 28Next →