HNHacker News
TopNewBestAskShowJobs

thr0w__4w4y

292 karma · joined December 29, 2015

Long time lurker, few years commenter, this is an alternate
submissionscomments
thr0w__4w4y··on Americans Are Having Fewer Babies
If I read the list correctly, 6 of the 8 top reasons pertain to money / finances.

3 of the 5 people here with me attributed this to essentially selfishness / unwillingness to sacrifice for others (future generations)

2 of the 5 said that the respondents have strong social consciences and are being responsible for not bringing children into the world that they weren't sure they could support.

It doesn't really matter to me either way [happy father of two teenage daughters who push boundaries but kick ass in academics and sports]. It's just good to realize / understand / remember that rational, intelligent people can form different conclusions from the same information.

thr0w__4w4y··on Let's code a TCP/IP stack, 1: Ethernet & ARP (2016)
I have another TIL for you... maybe you're a desktop/server developer... there are many embedded processor platforms where a byte is not 8 bits.

TI's C2000 microcontrollers - a byte is 16 bits. Other TI DSPs also have 16 bit bytes.

thr0w__4w4y··on Has wine gone bad?
Rittenhouse was a delightful find for me a few years ago. A friend and I ordered Manhattans, he asked for his to be made with Rittenhouse. Funny thing is, it's the only bourbon or rye that I drink straight... it is smooth and delicious. The people here who've mentioned Rittenhouse are doing you the same favor that my buddy did a few years ago. And it's very affordable, usually $22-$25 a bottle. As many have said, although taste is a very subjective thing, cost and enjoyment aren't always correlated...
thr0w__4w4y··on What happens before main() is executed in C and why is it important?
Yes, exactly this. As someone who has written startup code in many flavors of assembly (PIC, ARMv4, MIPS, PowerPC, AVR...), I appreciated what ARM did with the design of the Cortex-M architecture -- they designed it so that you could write fully-functional embedded software (firmware) without a line of assembly.

Normally, the 2 places you can't avoid assembly are (1) the startup code (because you're doing things like disabling interrrupts and setting the stack pointer) and (2) interrupt service routines - usually there is a little bit of magic on the front and back ends (for example on an older ARM7 chip, the CPU didn't automatically push / save any registers onto the stack, you had to do it yourself if you needed that).

With the Cortex-M, the CPU design and its microcode took care of all that, so all of the messy assembly stuff went away. Now, as someone who started writing 6502 ASM as a kid, I kind of miss it, but as someone who has to build lots of systems and ship products on deadlines, I like the change.

thr0w__4w4y··on Ask HN: If you are a freelancer, which are your three biggest problems?
A lot of this depends on what point in your career you're at. I've been freelancing for ~20 years, and the problems I have now are different than when I started out.

If you're starting out, really the 2 main problems are (1) getting (good) clients, and (2) getting paid. The 2 don't always go hand-in-hand. Now, (1) involves many factors -- luck, marketing, "right place right time", portfolio, reputation, but the ultimate problem is getting a good client to sign on the dotted line for a decent-sized chunk of work.

The 2nd problem, getting paid, is where a lot of engineers flounder. Do you invoice on time? Do your invoices reflect accurately the work? Do you know who to call if things are late? Do you have a contract that dictates terms of payment? etc.

Now that I'm more experienced (that's code for "older"), my issues are: (1) telling good, long-standing clients "no"; (2) remembering to not take on work that sounds really fun and interesting, but financially a poor bet; (3) not just staying current, but making sure my clients know that I'm also up with the state of the art, even though I'm well into my 40s (it used to be "Oh you're in your 60s, you're probably a dinosaur" but I see that happening to people in their 40s these days -- Hope I don't send this thread off-topic, wasn't the intention to hijack the thread!)

thr0w__4w4y··on Iowow – C11 skiplist-based persistent key/value storage engine
Might be coincidental -- but you also post a similar request very recently on the FreeRTOS forum?
thr0w__4w4y··on Ask HN: What has HN given you?
I'm delighted to hear that after taking on all that risk and "doubling down" by believing in yourself(ves), that you're doing great now. Totally inspirational success story!
thr0w__4w4y··on In Switzerland, it's now illegal to boil a live lobster
Guess I'm lucky then... I've lived in LA for about 28 years and I don't think I've ever seen a black widow. Actually I remember when I was ~3, I was sitting (legs crossed) on the patio, my neighbor came over and smashed a scorpion near me with a hammer. Remember it vividly, mostly because I didn't understand why he killed it (at the time). As an adult, I don't recall seeing scorpions, brown recluses, or black widows..
thr0w__4w4y··on Ask HN: What project did you tackle to learn C?
I teach security, and that story (about EAY using OpenSSL as a project to learn C, because what could go wrong?) comes up every time.

For those who don't know the backstory (many here will) -- crypto is hard to implement correctly; protocols are hard to implement correctly; and C isn't the easiest language to use. [Disclaimer: I've used C "since forever", love it, and am pretty decent with it, but I've made my goofs. I've also implemented crypto & protocols myself, neither probably very well...]

Apparently in ~1995, Eric A. Young ("EAY") decided to implement his own SSL stack (called "SSLeay"), at least partially with the goal of learning the C programming language.

At some point, SSLeay became OpenSSL, EAY moved off the project, and OpenSSL went on to become a staple of network computer security (and insecurity).

I can't find a reference to back this up right now, but I know I've seen it in the past somewhere credible enough that I'm here repeating the folklore.

thr0w__4w4y··on People leave managers, not companies
This isn't unique to Google; in fact, every serious tech company I've ever worked at or consulted with has this same policy. It's obvious and makes sense. Does it always work? Unfortunately, no...
thr0w__4w4y··on Ask HN: Why is iOS 11 such a mess?
I think excalibur meant "when the software version is two versions back", not the hardware.

I suspect the family is still getting security updates because you are running iOS 11 on the 5S. I bought a 5S too back in 2013, it came with iOS 7. If you were still running iOS 7 (or 8, or 9, or probably even 10 now) on the device, you would not be getting updates any more.

thr0w__4w4y··on USCIS is challenging an unusually large number of H-1B applications
I 100% believe you, but just for entertainment value, assuming the posting was public and recent -- any chance you have a link to the posting that you can share with us? I need a good laugh today.
thr0w__4w4y··on Does anyone remember websites?
Yep, I'm on VPN right now, and I'm blocked.

But thank goodness for the Internet Archive! (FWIW, I've donated several times, it has helped me out so many times)

The article of interest is here: https://web.archive.org/web/20170920090047/http://www.otherh...

thr0w__4w4y··on Demystifying the Selfish Mining Bet
"The dependent version of the problem would be where we cards are discarded after being drawn. So on the first draw, the deck has 52 cards and 4 aces, and thus there’s a 1/13 chance of drawing an ace. On the second draw there are 51 cards in the deck, so the second draw has a chance of 4/47 of being an ace."

Shouldn't that be a 4/51 chance?

thr0w__4w4y··on Amazon raised Prime Day prices, misleading consumers, says vendor
Yes exactly. Costco often does the same thing... for example, they'll have a WD Passport 2TB USB 3.0 Passport drive, same specs as you'd find at Amazon, Best Buy, etc. except the packaging is different (one of those "stand up cardboard placards with blisterpack" things) and maybe it's also missing a case. /BUT/ it will also be a different model number. And also sometimes the warranty is different.

Sometimes you care about the differences, sometimes you don't. But consumers should realize the point you made (the not-quite-same aspect).

thr0w__4w4y··on Firefox marketshare revisited
Came here to quote the same sentence and post a similar reply. I've been using Firefox forever, esp. b/c of some of the extensions, but it just isn't stable, reliable, or performance-oriented anymore. Chrome is more stable, snappier, and smoother.

I'll always have a soft spot in my heart for Firefox, but the reality is that Firefox's engineering is inferior when compared to Chrome or Safari IMO. To deny this is perhaps illustrative of why Mozilla's browser is suffering. It crashes, it leaks, it sputters, it freezes. It's shameful and embarrassing.

thr0w__4w4y··on How HTTPS Handshake Happens
Ivan - I have your book, I've read it (at least a year ago, if not more) - so sorry if this is covered and/or I should know the answers, but:

(1) Seems like the argument against RSA is "what happens when the server's private key is leaked?" But with ephemeral DH, it also requires private keys to be protected (now 2 of them!), these being signing keys. So isn't it simply trading one problem for another? Or perhaps the difference is that at least with DH, in theory only /new/ sessions can be attacked (MitM impersonating going forward), but older sessions can't be opened up.

(2) Doesn't this mean that now the client needs a keypair & certificate? Otherwise, how does the client sign? And where does the client key pair come from? I'm pretty sure my browsers (i.e., clients) don't have their own keys & certificates.

TIA for answering my silly questions.

thr0w__4w4y··on Wikipedia’s Switch to HTTPS Has Successfully Fought Government Censorship
Yup. Was there 2 weeks ago working with a group of Turkish engineers - I went online to get some technical information about a particular stream cipher, and WHOOPS! - Wikipedia is blocked, completely.

Fired up my VPN, accessed the page, thank you very much.

"The Net interprets censorship as damage and routes around it." - John Gilmore

thr0w__4w4y··on C++ on Embedded Systems
Serious question (I've been exactly the guy that planteen described -- wrangling code into submission for multiple static analysis tools and compilers, for warnings, MISRA compliance, etc.)

So my question: do you remember what tool would complain about such a construct (e.g. casting return value of printf() to void)? Reason I ask is because printf() returns a value; the cast to void is explicitly and deliberately -- right or wrong -- saying, "It's OK, I got this. I am choosing to ignore it." So a static analysis tool complaining about such a construct strikes me as a bit odd.

thr0w__4w4y··on Hollywood as We Know It Is Over
I live in Los Angeles, specifically the west side; hardly a day goes by that I don't see a Ferrari pull out of the Sony Studios facility, a 50-person crew filming 2 actors talking next to a cafe, or an action scene that closes down part of a freeway, with 100s of police, security, helicopters, etc. around. Many scenes of Grey's Anatomy are filmed in what is almost my back yard, and they often involve a dozen camera-crew trucks, staff of 60+ people, etc. I just cringe when I think of the cost.

What most people want is a great story, and great dialog. I'm not talking about the audience for a Transformers movie, I don't watch them but some do; that is a different story, and the animation can be done, and is being done, more cheaply outside of Hollywood already. But what I'm saying is that if you can write a great script and have a great story with great dialog, there are plenty of hungry, often young (age isn't relevant BTW) people with RED 4K cameras who can film and edit and put together a great product for $3M, not $30M or $100M.

The days of Brad Pitt getting $30M for a movie, of Julia Roberts getting $25M, are coming to and end. It might take 5 years, or 10 years, or even a generation, but it will happen. Same thing to studio execs; the days of drinking champagne for breakfast and lighting Cuban cigars with $100 bills will end. IT JUST IS NOT SUSTAINABLE, NECESSARY, OR COMPETITIVE ANYMORE. (Sorry for shouting, but that is the crux of my point). 30 years ago, there was no internet to speak of, there were no RED (or Canon, etc.) cameras, there were no "prosumer" drones with HD cameras, non-western countries were isolated and not part of the global workforce, etc.

That has all changed. It is just very easy to put together a great product for less, and all must adjust. It happened to IT, computing and programming, and it's happening to entertainment.

thr0w__4w4y··on Probabilistic Programming
For example, if your program calls rand(3) as part of the work it's intended to do—as in a cryptographic key generator...

Bangs head into desk repeatedly :-(

(Yes, I know that security wasn't the main point of the post, but still...)

thr0w__4w4y··on A Design Defect Is Breaking iPhone 6 Pluses
While I totally understand what you're saying and agree with you, I've had 2 of the 85W Mac power adapters replaced out of warranty (2012 rMBP). I'm a "road warrior", travel around 250k miles / year, probably pack / unpack my computer 4-8 times per day, and I'm good about winding/unwinding the power cord, but it's just not designed for that kind of wear & tear.

I think I've gotten replacements because I've been able to show the electrical arcing that takes place (for anyone reading this who doesn't know what electrical arcing is, look it up). Between the nice spark, the sound and especially the smell, employees are pretty damn quick to replace the part. (I did have an employee initially try to just replace part of it, and when I showed him how the problem remained, I just walked over and grabbed a new one off the shelf and told him "I'll just take this." He scanned it and off I went.)

FWIW, the problem I'm talking about is the little 2-prong AC adapter that slides on to the main power "brick". On an 85W model at least, all that weight is borne and supported by the connection, and the torque (or maybe I should be using a term like "lever" or "moment", I don't recall my physics very well) is too much over time.

Last comment - generally I just take Shoe Goo and goop it over the weak strain relief where the cord emerges from the brick. Sure, I don't look cool, but that part of the power supply doesn't fail.

thr0w__4w4y··on VeraCrypt to be audited
Serious question: what is a reverse company? Flat organization / no hierarchy or something? Sorry, I just don't know the term.
thr0w__4w4y··on U.S. Team Wins First Place at International Math Olympiad
Or, in the case of my wife, a fresh change of clothes for every possible weather condition for every day. "What if it rains? What if it's really humid? It might get chilly at night."

Actually that's unfair and a bit of exaggeration, but especially for the kids, she /always/ overpacks.

← PreviousPage 5 of 5