HNHacker News
TopNewBestAskShowJobs

ahaferburg

916 karma · joined December 25, 2018

submissionscomments
ahaferburg··on Lego Island Rebuilder
> https://www.legoisland.org/wiki/index.php/LEGO_Island#Histor...

> Infamously, Mindscape fired the developers of LEGO Island the day before release to avoid paying bonuses and continued salaries.

Holy crap that is disgusting.

ahaferburg··on Ask HN: Feeling guilty for doing the bare minimum at work
And what exactly is "ordinary laziness"?
ahaferburg··on Blender 2.93 LTS
Upgrading your plugins is not so much a problem.

What is a problem, though, is that when you google an issue, and find a solution, you then have to upgrade that solution to your version of Blender. That is very annoying because unless you're familiar with Blender, you can't tell if the solution is wrong, or correct but outdated.

ahaferburg··on Blender 2.93 LTS
> That is pretty much how it works in Blender. All the buttons and properties in the UI are accessible through the Python API.

Yes, it seems that way, and I was hopeful at first. But then I tried to use it.

In Maya, you can just copy paste a command from the command window, and it will work.

When you do that in Blender, it will probably give you an unspecific error message like "not possible in the current context". Because you need to manually switch Blender e. g. from Object mode to Edit mode (Faces), and your command only works in that context. So you develop a script that works initially, but later you find that it only works if Blender is in a certain state. That state is nowhere documented, you have to guess what it wants.

While Maya uses arguments to commands, Blender uses the equivalent of global variables.

ahaferburg··on Blender 2.93 LTS
Probably very much depends on what you do with Blender. I've been trying to port my exporter plugin from Maya to Blender, and it has been nothing but frustrating. It's been quite a while since I wrote it for Maya, but I remember the Maya API (C++ and MEL) to be well documented, well structured, and quite pleasant to work with. I was always amazed at Maya's basic architecture: Every UI action maps to a command that is run by the interpreter. This makes scripting very easy.

Blender's Python API on the other hand is very poorly documented, and - to me - seems poorly thought out. It's not really designed as an API, it's just exposing the existing C++ code, and usability is not a concern. It feels tacked on, leaving lots of gaps. Somewhere I've seen a quote by Ton Rosendaal that Blender is for artists, not for coders. If you want Blender to be a competitor for Maya that seems very short sighted.

The one thing that impressed me though, was the speed by which the Blender devs react to tickets. Hats off to them!

ahaferburg··on Drunk Post: Things I've Learned as a Sr Engineer
You should be reading the source all of the time. The point of documentation is to tell you what the code doesn't. If it tells you the same, you should delete the documentation.
ahaferburg··on Why Software Jewels Are Rare (1996) [pdf]
But not by the same person.
ahaferburg··on Things you should do now (2011)
Great answer. Much more helpful than "x is bad, don't do it".
ahaferburg··on Things you should do now (2011)
What happened with git? Could somebody elaborate?
ahaferburg··on QBE vs. LLVM
You have other options. You could design your own bytecode, and write an interpreter. You could emit C, and use a C compiler. If you use LLVM, you also need to decide whether you want to link against LLVM and use the C++ API. Or you can use bindings for another language. Or you can emit IR as plain text, then feed that into the LLVM compiler.

I have done the latter, and would advise against it. The IR is powerful, but quite involved. The documentation is sometimes lacking. It's an interesting project, but you probably won't get far.

Linking against LLVM means you have to use their C++ interface, and every time you rebuild your compiler, it's going to be slow, with all the templates they use. Your compiler will be a large executable (clang and zig are about 90 MB), and you'd have to rebuild that every time you change your compiler. I would hate having to do that in my spare time, which is why I went the other route.

LLVM is very powerful. There's all these optimizations you get, and debug info. But it's not free. The integration is going to be hard and you'll have to spend quite some time on it.

The next time I would start a language project I would build an interpreter in a dynamic language, and possibly even use a parser generator. https://craftinginterpreters.com/ has a nice path laid out. Focus on what you actually want to do. Once you get somewhere, once you actually like your language, once you actually start a project in your own language, and have an actual need for more, you can write another compiler with more bells and whistles.

ahaferburg··on QBE vs. LLVM
Better documented doesn't mean the documentation is perfect. My experience two years ago was: You're going to have questions, and it's going to be difficult to find answers.

LLVM is not KISS. Very, very far from it.

ahaferburg··on What changes when you work outside an office?
Not every company does code reviews.
ahaferburg··on SpinLaunch is building a centrifuge to launch satellites into orbit
Does the rocket somehow counter the spin of the tether? If it's rigidly attached to the tether, I don't understand how it would stop spinning after being released. The rocket itself would spin very quickly, and due to conservation of angular momentum it would keep spinning upon release. Am I missing something?

Or do they somehow counter the spinning of the tether, so that the rocket's orientation remains static? If there's another bearing at the attachment point, I don't see how just the outer bearing would withstand the friction at 10000g.

ahaferburg··on Anu: A sound, distributed version control systema
AFAIK the default use case is to only track merge info on the top level directory, as long as you only do branch/merge operations on the top level. By not doing that, yes, you can shoot yourself in the foot. But it's not necessary at all.

Maybe we're talking about different versions, though. I used to use SVN 1.6+ IIRC.

ahaferburg··on Dear ImGui – Bloat-free graphical user interface library for C++
Every couple months I browse the screenshot threads https://github.com/ocornut/imgui/issues/3488

Looking at them makes me really happy for some reason.

ahaferburg··on Write code that is easy to delete, not easy to extend (2016)
That sounds dismissive, did you intend that? It's my favorite type of writing. It tickles your brain. Does he mean it like he says? Do I agree? It makes you think, even when it sounds like he's telling you what to do.
ahaferburg··on Reddit's top user leaves platform after harassment
Hacker News?
ahaferburg··on A first look at Unreal Engine 5
It's quite possible that they make heavy use of instancing, which might reduce the memory footprint by a lot. Not every pebble or rock needs an individual geometry.
ahaferburg··on In Praise of AutoHotKey
My goodness, the formatting.

  Caps+p         Ctrl+Backspace (Delete previous word)
  Caps+f         Backspace
  Caps+d         Delete
  Caps+h/j/k/l   Left/Down/Up/Right arrow
  Caps+u/i       Home/End
  Caps+m/,       Page Down/Up
  Caps+e/r       Ctrl+Left/Right (next/previous word)
  Caps+3         Insert current date, e. g. 14.05.20
  Caps+Shift+3   ISO format 2020-05-14
ahaferburg··on In Praise of AutoHotKey
I use AHK to make CapsLock a custom modifier key, mostly to make VIM style movements available everywhere.

Caps+p Ctrl+Backspace Delete previous word Caps+f Backspace Caps+d Delete Caps+h/j/k/l Left/Down/Up/Right Arrow Caps+u/i Home/End Caps+m/, Page Down/Up Caps+e/r Ctrl+Left/Right (next/previous word) Caps+3 Insert current date, e. g. 14.05.20 Caps+Shift+3 ISO format 2020-05-14

I also swapped Return with ' so it's closer to my pinky. Not sure if that was worth it, though.

ahaferburg··on Bye, Amazon
That's an employees way of saying just how much they care about the job. It's a two way street.
ahaferburg··on The software industry's greatest sin: hiring
> remote-only

Oh, that changes a lot. I think it would be a lot easier for people to log in a couple hours here and there as part of a trial than to commute to an office and spend an entire day.

I actually like this a lot, thank you for posting. Maybe the COVID-19 situation provides companies around the world with enough experience on remote work to make this kind of remote trial more attractive.

ahaferburg··on Human Interface: Backpack harness innovation
My only worry would be that it swings, and builds up more movement than necessary. In the video at 0:46 the movements look pretty excessive.
ahaferburg··on Ask HN: Good ways to capture institutional knowledge?
Read the document to them aloud, word by word, in the meeting.
ahaferburg··on You can't make C++ not ugly, but you can't not try (2010)
Your version:

> The author [...] claims that C++ exceptions are outright evil and should be avoided

What the article actually says:

> This includes the RTTI and exceptions stuff; C++'s versions of those were enough to convince a whole generation of programmers that introspection and exceptions were outright evil and should be avoided

Your reading comprehension is lacking. You didn't understand what he is talking about. Why is Google not using exceptions?

ahaferburg··on Disney CEO Bob Iger immediately steps down from CEO position
From Lasserter's Wikipedia entry:

> The films he has made have grossed more than $19 billion (USD), making him one of the most successful filmmakers of all time.

ahaferburg··on Let's remove quaternions from every 3D engine (2018)
Oh, thanks for pointing that out!

He posted an update on the game recently: https://marctenbosch.com/news/2020/01/miegakure-update-end-o...

ahaferburg··on How housing became the world’s biggest asset class
I always thought the bet is not rent vs mortgage, but whether or not you can sit out the mortgage. Of course it's cheaper to rent if you plan to sell within twenty years.
ahaferburg··on Video Gaming Will Take Over
I don't buy it. It's not like every single episode in every single TV series is completely mind-blowingly different than everything else. At this point you've probably seen all the tropes, seen all the plot twists. I also doubt that TV series are captivating because of the story. They're more about the characters, and how you either like them or like to dislike them, or how their experiences make you feel. With the advent of mass-produced media, story no longer has the unifying role within a culture that it once had, we no longer care about the moral of a story, on the contrary we'd rather there weren't any. Story has been downgraded to a vehicle for emotion, or for a punchline in the case of Seinfeld.

And sure, I also play a lot less than I used to. But there are still fantastic games out there worth playing. I loved Hollow Knight and Cuphead and Hyper Light Drifter. And they all were created by people who grew up with the same games as I did.

ahaferburg··on Post-Mortem for Bra Theory
Ever since I came across this video https://youtu.be/gy5g33S0Gzo?t=4 of a robot taking 1,5 hours to fold five towels, with mixed results, I think about how much of our brain might be devoted to handling fabric every time I have a towel in my hands. Probably the same with handling fluids, like predicting how milk is going to behave in an opaque carton.
← PreviousPage 5 of 8Next →