HNHacker News
TopNewBestAskShowJobs

alhirzel

1,026 karma · joined January 18, 2018

Alex Hirzel - thinker/tinkerer, owner of Lake Superior Algorithmic Solutions

you can reach me at <first name>@<last name>.us (personal) or alex@lsa.solutions (contracting)

submissionscomments
alhirzel··on Modelica
Agreed on all fronts - and I bet you're doing interesting work!

I feel like acausal modeling environments are also much like symbolic computer algebra systems (because they are basically applied CAS...)

alhirzel··on CADing and 3D printing like a software engineer
I thought this would be about OpenSCAD as well. Thanks for the reference to CadQuery!
alhirzel··on Modelica
Modelica is an excellent way to perform these simulations. Exporting a functional mock-up unit (FMU) according to the FMI standard is a first-class capability [1] that is another huge source of value, especially for systems integrators. You are able to have reasonably obfuscated models of your system in untrusted hands, and they get the full benefit of your system model. This is one area where OpenModelica is ahead of competitors including the open-source ModelingToolkit.jl [2] and related library FMIExport.jl [3].

[1] https://openmodelica.org/doc/OpenModelicaUsersGuide/v1.11.0/...

[2] https://docs.sciml.ai/ModelingToolkit/stable/

[3] https://github.com/ThummeTo/FMIExport.jl

alhirzel··on Modelica
One of the advantages Dymola had a few years ago was an extremely advanced vehicle dynamics toolbox, to the point where it is considered a standard for NASCAR [1]. This is one of the tool's originating claims to fame circa 2015-19 when I was bringing it into a previous employer in the automotive industry. For some applications that are "first class", you will have a great experience with Dymola. Where they have filled in the blanks in toolboxes, however, you are likely not a cut above other tools.

[1] https://www.claytex.com/applications/motorsport/

alhirzel··on Modelica
This is generally referred to as an acausal modeling environment - you don't need to bring the causality of mathematical relationships, just bring the relationships.

There are several other tools in this space, not the least prevalent of which is Mathworks' Simscape product line [1]. Wolfram has a solution that is also very similar to Modelica [2]. Finally, I believe that you will find ModelingToolkit.jl [3] worth a look (along with Julia in general) if your interest is piqued here by Modelica. I believe MTK is a big slice of the future of acausal modeling tools.

[1] https://www.mathworks.com/products/simscape.html

[2] https://www.wolfram.com/system-modeler/

[3] https://docs.sciml.ai/ModelingToolkit/stable/examples/spring...

alhirzel··on Modelica
Another up-and-coming solution is Julia's simulation ecosystem [1]. It is powered by the commercial organization behind the Julia programming language, which has received DARPA funding [2] to build out these tools. This ecosystem unifies researchers in numerical methods [3], scalable compute, and domain experts in modeling engineering systems (electrical, mechanical, etc.) I believe this is where simulation is headed.

[1] https://juliahub.com/products/juliasim

[2] https://news.ycombinator.com/item?id=26425659

[3] https://docs.sciml.ai/DiffEqDocs/stable/

alhirzel··on Modelica
If you intend to explore OpenModelica you may also like ModelingToolkit.jl:

https://docs.sciml.ai/ModelingToolkit/dev/

There is also a project by Hilding Elmqvist, who worked for Dassault on Dymola (the leading commercial implementation of Modelica). His project is Modia.jl:

https://github.com/ModiaSim/Modia.jl

I can personally feel the Julia community settling on MTK, but Modia was ahead in the early stages of dynamic system simulation in Julia, and I believe MTK has drawn a lot of inspiration from each Modia and Modelica. Modia is a bit more ergonomic while also being the first to integrating things like 3D viewers and a complete multibody package by years, with Julia Computing only now catching up [1]. MTK has a better support for back-end solvers and holds a lot of promise to leapfrog Modia, especially since the release cadence for Modia seems to have slowed.

[1] https://github.com/JuliaComputing/Multibody.jl

alhirzel··on Modelica
Modelica can absolutely be used for this, but there may not be a readily-available model created already. A generic stepper motor model is available here:

https://ie.utcluj.ro/files/acta/2003/Number%202/Paper08_Mora...

Operationalizing this into a Modelica model is pretty straightforward. Did not look for a driver model, but a driver model would be a lot more important in modern times. I am guessing that not many people would simulate this fidelity of stepping dynamics as a "first cut", and anyone who does is likely to also have a detailed driver model. Demand for this model in a standard library is likely quite small.

alhirzel··on Show HN: A 5th order motion planner with PH spline blending, written in Ada
Thank you for investigating this - I got scared when I saw what looked like an ephemeral URL!
alhirzel··on Julia 1.11 Highlights
I worked for YEARS (2019-2022) without this using a custom internal registry. Let me tell you - this would have saved so much time with dependency management, package updating, new environment setup...
alhirzel··on Julia 1.11 Highlights
I think the decision to factor out the `Memory` type from `Array` will pay increasing dividends for a while, as packages begin to use it in earnest.
alhirzel··on Gavin Newsom vetoes SB 1047
Like all laws, there will certainly be those who evade compliance geographically. A well-written law will be looked to as a precedent or "head start" for new places that end up wanting regulatory functions. I feel like the EU and California often end up on this "leading edge" with regard to technology and privacy. While this can seem like a futile position to be in, it paves the way and is a required step for a good law to find a global foothold.
alhirzel··on Have you ever seen soldering this close? [video]
Really cool camera and very nice set of soldering "demos", including without flux.
alhirzel··on Aliasing Your Git Commands for Maximum Developer Efficiency
Memory is pretty weird with these - I find that my hands do most of the remembering, and my mind doesn't have to do much work. It must be a very individual thing - hope everyone is doing what works for them. And you're right that there's always a safe fallback to default commands. I will admit that seeing the list in its entirety when posting it, I was surprised at its length, but I estimate I use at least 50% of these often!

Looking at the other posts in the thread, it looks like this set of aliases is very similar (maybe I should switch to cut some fat out of my dotfiles): https://kapeli.com/cheat_sheets/Oh-My-Zsh_Git.docset/Content...

alhirzel··on Aliasing Your Git Commands for Maximum Developer Efficiency
Same thing - I put them in my shell. Here is the list I use:

alias ga="git add"

alias gaw="git add -A && git diff --cached -w | git apply --cached -R"

alias gb="git branch"

alias gbl="git branch -l"

alias gbD="git branch -D"

alias gbu="git branch -u"

alias gc="git commit"

alias gca="git commit -a"

alias gcaa="git commit -a --amend"

alias gcam="git commit -a -m"

alias gce="git commit -e"

alias gcfu="git commit --fixup"

alias gcm="git commit -m"

alias gco="git checkout"

alias gcob="git checkout -b"

alias gcoB="git checkout -B"

alias gcp="git cherry-pick"

alias gcpc="git cherry-pick --continue"

alias gd="git diff"

alias gd^="git diff HEAD^ HEAD"

alias gds="git diff --staged"

alias gl="git lg" # TODO - make these options defaults for "git log" itself

alias glg="git log --graph --decorate --all" # TODO - make these options defaults for "git log" itself

alias gdc="git diff --cached"

alias gpom="git push origin master"

alias gr="git remote"

alias gra="git rebase --abort"

alias grb="git rebase --committer-date-is-author-date"

alias grbom="grb --onto master"

alias grbasi="git rebase --autosquash --interactive"

alias grc="git rebase --continue"

alias grs="git restore --staged"

alias grv="git remote -v"

alias grh="git reset --hard"

alias grH="git reset HEAD"

alias grH^="git reset HEAD^"

alias gs="git status -sb"

alias gsd="git stash drop"

alias gsl="git stash list --date=relative"

alias gsp="git stash pop"

alias gss="git stash show"

alias gst="git status"

alias gstn="git status -uno"

alias gsu="git standup"

alias gforgotrecursive="git submodule update --init --recursive --remote"

alhirzel··on Detect Migrating Birds with a Plastic Dish and a Cheap Microphone
Our slow-but-steady concept is down the batteries and storage fork in the road you lay out. Some areas are too remote for infrastructure, so we just revisit and change batteries and cards periodically.
alhirzel··on Detect Migrating Birds with a Plastic Dish and a Cheap Microphone
We use dedicated trailcam-like recorders that drop `.wav` files to a 256GB SD card for a few months on four "C" size batteries. Several sites are very remote (islands separated from mainland by several miles), and recordings are scheduled for only 6 hours per day according to the study's focus.
alhirzel··on Detect Migrating Birds with a Plastic Dish and a Cheap Microphone
I collaborate on a project like this, but using a distributed network of a dozen or so dumb recorders within 50 miles of my house.
alhirzel··on The rarest move in chess [video]
I am all about the hands used in this video! The bandage after getting hit by lightning is very immersive.

I bet this video will have a Streisand-like effect [1] on the indicated capture scenarios.

[1]: https://en.wikipedia.org/wiki/Streisand_effect

alhirzel··on Ask HN: What's the most life-changing blog post you've ever read?
MMM is life-changing in general!
alhirzel··on How I stopped worrying and loved Makefiles
> on my system binary is only 16kB in size,

I don't believe that.

alhirzel··on Los Alamos Chess
Then you will hate this: https://www.youtube.com/watch?v=yKf9aUIxdb4

I love it though, his reactions are priceless.

alhirzel··on The Wi-Fi only works when it's raining
Reminds me of this story about repairing a large power line:

https://www.jwz.org/blog/2002/11/engineering-pornography/

alhirzel··on Ask HN: Do you also marvel at the complexity of everyday objects?
Just the other week I was thinking: the hardware store is my bolt lengthener. I had a bolt that was too short, and no means to make it longer. I simply went to the hardware store and got a replacement. Of course this encumbers all of the requisite industries (mining, manufacturing, shipping, and a mom-and-pop shop correctly guessing what I would need and being willing to stock it). But for me, it all wraps up functionally into being a bolt lengthener.

Yes, all the time..... :)

alhirzel··on A computational approach to emergence in complex multi-level systems
Reminds me in spirit of the Wolfram Physics project [1], which my small mind also finds somewhat unintelligible...

[1]: https://www.wolframphysics.org/

alhirzel··on Wendy's Bold Move: Dynamic Pricing Strategy Set to Transform Fast-Food Industry
Agreed - this plays to how discounts attract people. I think an individualized "happy hour" could also be interesting, e.g. letting people pick the weekday they have discounted so they can form habits.
alhirzel··on KiCad 8.0
The on-schematic visualization of simulation results, as well as improved result viewer and on-the-fly calculation of quantities such as power, are awesome features.
alhirzel··on $5 device tests for breast cancer in under 5 seconds: study
The "press release" looks more like a final report for a microcontroller applications class than an actual press release.
alhirzel··on Observing the Infinitely Inverting Signal [video]
Follow-up video addressing some questions: https://www.youtube.com/watch?v=WZJ1xLhIEXg
alhirzel··on Ask HN: Looking for lightweight personal blogging platform
Others have mentioned static site generators. I like Hakyll [1] because it can tightly integrate with Pandoc [2] and allows you to develop custom solutions (such as `.pdf` downloads) if your needs ever grow.

[1]: https://jaspervdj.be/hakyll/

[2]: https://pandoc.org/

← PreviousPage 3 of 8Next →