HNHacker News
TopNewBestAskShowJobs

phyllostachys

61 karma · joined April 1, 2014

Software engineer
submissionscomments
phyllostachys··on An Antique Toaster That's Better Than Today’s [video]
I think my wife and I have a toaster from when we first got married. It'll be 13 years this month. It's probably a 2009 or 2010 model, so really only about a decade or a little less old.
phyllostachys··on Software made me loathe my car
https://www.youtube.com/watch?v=1LywkIfAA1M
phyllostachys··on I didn't get paid, so I open-sourced my client’s project
I store them in the comments area in KeePass, both the crap question and my silly answers.
phyllostachys··on Makefiles – Best Practices
Every time I start a little thing in C or C++ and I write a corresponding Makefile I get annoyed by it and write the thing in Rust. Cargo is really nice. I've considered using a Cargo.toml and build.rs file just to build C and C++ files before.
phyllostachys··on Ask HN: Why can’t I block all incoming calls that aren’t in my contact list?
This mostly works. After military service, I never changed back my cell number and I never answer if it is from the old area code. Though, I did once and it was a volunteer fire station asking for donations.
phyllostachys··on Exapunks
I asked Zach about it once (in email), he said:

> We do all of our development in C# using a custom low-level “game engine”. At some point we need to do a writeup about it, it’s kind of interesting tech.

But I think they have at least one Unity game... or so I thought.

phyllostachys··on Where Vim Came From
And, unfortunately, it is a destructive process going from elf to hex, as I've discovered a few times. Intel HEX is just the data at what addresses so one looses the section info and metadata from an elf.

I'm always happen to see when a uC vendor IDE keeps the elfs and the programmer takes elfs.

phyllostachys··on Firefox is back. It's time to give it a try
Indeed. "Firefox is back." - Well, from where I stand, it never left, nor I it.
phyllostachys··on I wish mum's phone was never invented
That sounds like reasonable phone use to me whereas the article seems to hint at using a phone instead of engaging.
phyllostachys··on Ask HN: Where did you learn modular electronics?
I learned by working at a contract manufacturer who also does engineering design of small device electronics (as an embedded engineer). I also have a copy of The Art of Electronics but I can't say that I've looked at it much.
phyllostachys··on The joy of index cards (2009)
This was the go to method of keeping information when I was in the military (05-09), which was _strongly_ encouraged starting in boot camp. If one was found without a pen or two and a notebook, there was some words said. I've kept the habit going into my civilian life though I don't take notes as often.
phyllostachys··on Making a Statically-Linked, Single-File Web App with React and Rust
Others have mentioned that include_str! is a macro, which I suppose it is. But if you look at the source it says that it is a compiler built-in[0]. If you dig into that, you'll see that it happens inside the compiler[1] (well duh). I feel that that makes it slightly different than a normal macro in that it doesn't expand to a bunch of Rust code. I found that pretty neat.

[0] - https://github.com/rust-lang/rust/blob/master/src/libcore/ma... [1] - https://github.com/rust-lang/rust/blob/e8af0f4c1f121263e55da...

phyllostachys··on Studying how the brain relinquishes childhood memories
Football toy chest! I had one of those. I remember climbing inside it -- being able to fit inside it even. I remember, when I was older, trying to climb inside but backing out because I was afraid of getting stuck in there (and trying to imagine how they would cut me out of the thing, that kind of gives me the heebie jeebies even now).
phyllostachys··on Lost Art of Bending Over: How Other Cultures Spare Their Spines
I second Duluth trousers. I had difficulty finding pants that fit since I'm a little shorter but have bigger legs. Getting pants with larger legs means a larger waist and a belt only helps cinch that up so much. Gusseted crotch trousers fixed all that. I've worn both the ballroom jeans and their khaki pants and they're both worth it.

A bonus is, if you're into martial arts, being able to kick above the waist or 'roll' (Judo/BJJ), you can still do so in those pants.

phyllostachys··on The eardrums move when the eyes move
Similarly, when I'm really still and reading a book, I can hear some sort of grinding sound when I turn my neck ever so slightly. The sound reminds me of a little stepper motor. I have no idea if that is unique or not but I always thought it was interesting.
phyllostachys··on Plotter Drawings: Five seconds of Donkey Kong
I'd recommend having a look at emulators for other chips in general and just tailoring them to ARM Cortex-M. The architecture reference manuals (ARM ARMs, har har) are freely available on ARM's website[0]. I'd recommend the ARMv6-M for Cortex-M0/+ or ARMv7-M for Cortex-M3/4/7. I think the latter manual covers both ARMv7-M (M3) as well as ARMv7E-M (M4 and M7).

[0] - http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc....

phyllostachys··on Basic Laws of Human Stupidity (1976)
You can also consider the case where you have a super fast CPU but are using poor algorithms. That's why I think the terms 'smart' and 'stupid' are fairly useless in practice.
phyllostachys··on A Robot Makes a Mean Caesar Salad, but Will It Cost Jobs?
As their menu has grown it has been getting a little harder to figure out where things are but moving around the menu is really easy. I suspect the latter helps with the former.

Also, what's wrong with a ham and cheese sandwich with mayo and Cesar dressing (in the article)? That's one thing that is great about the Sheetz UI is that I can add buffalo sauce, ranch/mayo, and bacon to nearly every sandwich, which is delicious. My all-time favorite is a bacon, lettuce, mayo, and buffalo sauce cheeseburger or chicken sandwich on a pretzel bun.

phyllostachys··on New antibody attacks 99% of HIV strains
I'm always amazed at how many doctors I've encountered behave as if their knowledge is the extent of medical practice. I get it though, research is hard to stay on top of and isn't linear to results.

Granted, also, that there are lots of doctors who do follow research.

phyllostachys··on How JavaScript works: memory management and common memory leaks
After a little investigation[1][2], it seems things get weird with an OS, as would be expected with virtual memory, et al.

[1] - https://stackoverflow.com/questions/16360620/find-out-whethe...

[2] - http://duartes.org/gustavo/blog/post/anatomy-of-a-program-in...

phyllostachys··on How JavaScript works: memory management and common memory leaks
After looking at that default linker script dump, I noticed it didn't have the stuff I saw in the ARM linker script that I'm used to. So I attached one for a Silicon Labs EFM32 part. It's below the x86-64 linker script and is a little easier to read.
phyllostachys··on How JavaScript works: memory management and common memory leaks
I was bothered by saying that static memory is assigned on the stack (implied that it is only on the stack). As an embedded guy, at least in bare metal situations, local function statics, any const variables, and any globals are either in the read-only data section[1] or in the general data section[2], both before the heap and definitely not in the stack section.

[1] - .rodata section in gcc

[2] - I think this is in the .data and .bss sections, where .data is copied from the file and .bss is zero initialized before calling main by the crt. If you peak into a linker script, or dump one by passing --verbose to ld, you can even see where it puts all the C++ bits and pieces. A dump I did on Debian with g++ is here: https://gist.github.com/Phyllostachys/0682a3bda13ef9c6b49d04...

phyllostachys··on Smarter speed bump using non-Newtonian liquid
Ah, I learned a new word. These serpentine roadways are used to slow the advance of cars on a guarded gate or outpost in military situations. They're pretty annoying to drive through but that probably means they working correctly.
phyllostachys··on Smarter speed bump using non-Newtonian liquid
This is also true for the rest of the areas around Lake Erie, western PA, and probably western NY (I don't have much experience with that area).

I live about an hour south of Erie, PA and the road I travel to and from work has needed resurfaced after every winter over the last 3 or 4 years.

phyllostachys··on Sony and LG stop making 3D TV sets
> If they reboot Batman a dozen more times, it doesn't keep you from thinking that Adam West was the best Batman.

Recently, I've been watching Sherlock. After doing some reading, I learned that Sherlock Holmes is the most portrayed character ever, "with more than 70 actors playing the part in over 200 films" [1]. Talking with a work mate, he said his favorite portrayal was Jeremy Brett. I also learned that the original works are in the public domain, which is probably why it is so often used as source material.

[1] - https://en.wikipedia.org/wiki/Sherlock_Holmes#Adaptations_in...

phyllostachys··on How insects like bumblebees do so much with tiny brains
Does this also explain why people in Scandinavia+Finland seem to be so clever?
phyllostachys··on Show HN: Kitty – A modern, hackable, featureful, OpenGL based terminal emulator
Yup. At my work we are doing embedded development and we use the Sparkfun FTDI breakout boards for UART communication. People have come to call the FTDI breakouts "putty boards" but in engineering, some of us use Kitty and call them "kitty boards". :D
phyllostachys··on My Subconscious Is a Better Developer Than I Am
When I was in my teens and had lots of time to think about these things, I came to this conclusion. That I, what I think of as being me, is just a facade that moves things into and out of my subconscious. When I want to think about something, I 'query' the subconscious and wait for a response.
phyllostachys··on Shenzhen I/O
As a fellow embedded guy, my problems are usually something stupid simple that I assumed was true, but wasn't.

An example, 'why won't this chip work!?', 5 hours later and a full driver written, 'oh, I just didn't turn on this one pin. now it works great!'.

Also, in relation to your last sentence, assuming that the hardware you have (resistor and capacitor values) are the same as what is in the schematic.

phyllostachys··on Ask HN: What does an electrical engineer actually do at work?
If you're doing signals stuff, it can get mathy (differential equations or Fourier analysis type stuff).
Page 1 of 3Next →