HNHacker News
TopNewBestAskShowJobs

billti

1,285 karma · joined March 18, 2015

submissionscomments
billti··on Thinking hard makes the brain tired
A day where I’m constantly dealing with incoming random crap that has me context switching all day leaves me exhausted and unhappy.

A day where I can shut that out and focus on a couple things intensely usually leaves me feeling energized and happy and like I actually did something productive.

I think a good manager tries to keep his team mostly in the second camp, but sadly means spending more of their own time in the first.

billti··on Twitter was down
> half the time stuff isn't loading at all or is broken in obvious, overt ways

I use the app for a couple hours a day (according to my iPhone weekly reports), and have barely noticed any degradation since "the takeover". (Notwithstanding the obvious outage happening currently).

There's been a few minor glitches for sure, but then what large service is immune? Facebook, Exchange, AWS, etc. have all had notable outages this past year, and the Apple Services I regularly use (Apple Music, Siri, etc.) "fail" more often for me in daily use.

Maybe you're trying to do something more advanced than me, or are using a less reliable platform somehow, but generally I find all the "Twitter is so dead" talk being confirmation bias from folks that really want it to fail in light of recent changes.

billti··on Why 'Atomic Habits' may not be working for you
I had a good streak going for a while with maintaining a good diet and exercise. Once you decide to take a break it's easy to stop though.

Recently I've had a project at work which is just enjoying and engrossing, so I'm "choosing" to be busy with it at all hours at the expensive of other "good" habits. (Spending long hours "in the zone", if you will). I take the motivating and energizing peaks at work when I can get them.

I found this audio book enjoyable and accessible. It's nothing earth-shattering, but it does shed some interesting light on the "busy" epidemic we feel surrounded by.

https://www.audible.com/pd/Addicted-to-Busy-Audiobook/178753...

billti··on GitHub to lay off 10% and close all offices
Exactly. My impression is that in very large orgs the first couple levels of management normally find out about layoffs a couple hours before they have to deliver them. Both to keep the news under wraps and to avoid personal bias, how many and who is usually a decision taken by directors up and HR.
billti··on GitHub to lay off 10% and close all offices
I do think there's a big cultural difference. I've worked over a decade each in the UK, Australia, and now the US. In the UK and Australia, it was very common to hang out with colleagues socially, but I see it rarely in the US. Maybe it has to do with the "pub culture" in the UK and Aus, and a few beers after work being common, which it doesn't seem to be in the US (at least where I've lived - places with a 'bar scene' like New York may be quite different).

I may be biased due to getting older and having a family, so I'd expect to hang out after work less anyway, but I observe that generally amongst younger colleagues too.

billti··on Jsdoc Cheatsheet
There is no “bitchy” compiler to deal with. There are no errors in JS files (unless you choose to explicitly enable them). The JSDoc by default just powers the docs, signature help, and member suggestions.
billti··on Jsdoc Cheatsheet
If you’re using VS Code as your editor, its JavaScript editing is powered by the TypeScript engine’s support for JS. The JSDoc support there is pretty good, as are the docs for the syntax supported.

https://www.typescriptlang.org/docs/handbook/jsdoc-supported...

billti··on ChatGPT Plus
I buy my own laptop for work. Work will give me a good one, but I want a GREAT one. It’s the one tool I need to do my job, and I’ll be using it over 40 hours a week.

It’s a few thousand dollars, but I make a comfortable six figure salary, and I think it’s worth it.

billti··on FYI: LLVM-project repo has exceeded GitHub upload size limit (2022)
Tangentially related, but after installing LLVM on Windows I notice that the clang, clang++, clang-cl, and clang-cpp binaries are all identical. That's four copies of the same 116MB file. The linkers (ld.lld, ld64.lld, lld, lld-link, wasm-ld) are likewise the same 84MB binary repeated 5 times, and similarly llvm-ar, llvm-lib and more are identical.

Overall looks like ~750MB of unnecessary file duplication for one install of LLVM.

I get that Windows doesn't have the same niceties when it comes to symbolic links as macOS and Linux, but that seems really suboptimal and wasteful.

billti··on CMI says 2022 had the worst second half for mortality since 2010
I find many of my “work from home” days worryingly sedentary. If I’m slammed with work at home I barely leave the chair. If I’m slammed at work in the office I’m usually running between meetings and going to talk to people at their desk.
billti··on What happens when a CPU starts
Amongst the first sentences...

> It may be thought of as what happens when a whole computer starts, since the CPU is the center of the computer and the place where the action begins.

I thought that too. Last year I spent a while getting as low-level as I could and trying to understand how to write a boot loader, a kernel, learn about clocks and pins and interrupts, etc. I thought, "I know, I'll get a Raspberry Pi! That way even if I brick it I didn't waste too much money".

Turns out the Raspberry Pi (and I'm guessing many other systems) are pretty confusing to understand at boot time. For one, it's the GPU that actually does the initial boot process, and much of that is hard to find good info on. (https://raspberrypi.stackexchange.com/questions/14862/why-do...)

I spent many many hours reading various specs & docs and watching tons of low-level YouTube videos. Compared to software development higher up the stack (my usual area), I found the material surprisingly sparse and poor for the most part. (Maybe that's reflective of the size of the audience and the value in producing it).

billti··on Do you need new phones every 2 years? How to get more out of your devices
I bought this year because the new camera system was getting great reviews (iPhone). I’ve a couple very young kids and most of the photos/videos end up being taken on the phone, and the years go quick, so happy to pay to capture those moments a little better before they’re gone.

The CPU speed bumps or other minor improvements? Yeah, probably not worth another $1000.

billti··on Microsoft Is Forcing Me to Buy MacBooks
Yeah. I have an Intel MacBook Pro (nearly 10 years old) and never hit this problem. I can leave it on the shelf for a month and it’ll still have a 70% charge. I just gave up on Windows and brought a new M1 Mac due to this exact issue (the Intel one wasn’t getting OS updates any more).

The speed and reliability with which a Mac sleeps and wakes and how well it maintains battery is insanely good. My Windows laptop was more like a portable desktop, as I always had to plug it in and would walk around with the lid open rather than risk a sleep/wake attempt between meetings.

billti··on AirDrop is now limited to 10 minutes
I think that's the point though. Our non-tech friends are exactly the people who shouldn't be downloading and installing random (unsigned) binaries.

As much as I love to hack and tinker with my OS, I also appreciate the safety inherent in the Apple ecosystem. That's why even as a life-long Windows user, I bought my Dad an iPad - I know the chance of him getting p0wned via some social engineering attack and having his banking password stolen are a lot lower than with a Windows or Android tablet.

billti··on Quantum winter is coming
> The difficulty of adding qubits increases super-linearly with the number of qubits

Is that true? Hardware from the likes of IBM and IonQ has already gone from < 10 to >= 20 “algorithmic qubits” [1] in the space of a few year.

[1] https://ionq.com/quantum-systems/aria

billti··on Twitter to start layoffs -internal email
That clip resonates strongly with me. I’ve seen exactly the good and bad scenarios he describes there in orgs for the reasons outlined.

I think that’s why Apple created so many iconic products under Jobs. You hear stories of Steve using the product and seeing a minor flaw and just flying off the handle that it’s not good enough, for the type of bug you know would have been a “priority 2 - won’t fix” in most large orgs on a product the CEO will never even use.

A “big hammer” who cares about the product can make a huge difference.

billti··on Dozens of malicious PyPI packages discovered targeting developers
Or be compromised themselves and an unknowing vehicle for attacks (e.g. see SolarWinds).
billti··on macOS Ventura is now available
I just bought a new 14" M1 MacBook Pro because they stopped doing OS updates for my 2014 Intel MacBook Pro. Kinda sad, as the 2014 MacBook Pro is still, STILL - in 2022!, one of the best laptops I've had (including for running Windows via Bootcamp). Being it had no trade-in value, I'll keep using it as a test machine for Intel builds of my app.

But yeah, the new Apple Silicon laptops are incredible, and I'm happy with the new purchase. If I get 8 years out of this one too, I'll be more than happy. To me, that's a reasonable length of time to support OSes on old hardware.

billti··on The copy and swap idiom in C++
When I was "seriously" using C++ I created myself a bunch of flashcards (using the Quizlet app) to regularly test myself (spaced repetition) on various C++ idioms and rules; such as when to implement which copy/assignment/move constructors and the correct patterns, how to use std::forward correctly, the footguns in various types of casting or initialization, etc.

I recently had cause to start using C++ again and went over the cards after about a year break. It was depressing how few I could answer correctly.

C++ is great if you're great with it, but that takes a __lot__ of effort, and it can be a minefield otherwise.

billti··on How to Stop Procrastinating on Your Goals by Using the “Seinfeld Strategy”
Same. Stuck at a “modest” diet & exercise habit daily for 8 months with great results. Then I stopped for a couple days and haven’t been able to “keep the chain” going again since.

From the article:

> While most people get demotivated and off–track after a bad performance, a bad workout, or simply a bad day at work, top performers settle right back into their pattern the next day.

I think that’s the key (which I’ve not mastered). With things like Alcoholics Anonymous, meditation practice, etc. they say “If you break the chain, then don’t beat yourself up, just start again”. But obviously if keeping up the streak is a big part of the motivation, then once it’s broken that’s going to demotivate.

billti··on Couch to 64k, a.k.a. Building a Z80 Breadboard Computer (2020)
Nice. After decades of high level software development, I’m starting to get back in to microcontroller/processor and “bare metal” development. I first learned to code with Basic and Assembly on the Z80 inside the early Sinclair products. I’m having fun now with the ARM cores in the various cheap Raspberry products (the Pi 4b and Pico so far).

I did come across the Ben Eater series which looks awesome too. (https://eater.net/). I’m excited to try and build a video card from scratch!

There’s so many options today it’s almost overwhelming. I’ve been trying to think how to best introduce my youngest without bewildering him. Anyone had success on a “low level” path with young kids that kept them entertained?

billti··on Vim 9.0
Similar, but you can do most of those in one line! I also turn on line numbers and map "jk" to Escape in insert mode:

    set expandtab shiftwidth=4 softtabstop=4 tabstop=4
    syntax on
    set number
    inoremap jk <Esc>
billti··on Ask HN: Pros and cons of V8 isolates?
Nice! Thanks for the link. As I've been playing around building a toy OS for my Raspberry Pi and learning more about hardware virtualization, I was thinking exactly along these lines, i.e. instead of virtualizing an full OS, virtualizing a minimal image with just a network driver and a flat address space per process/app seems like it would have benefits (i.e. no virtual memory mapping or privilege ring transitions eating cycles). I wasn't aware it was already an area that had much research behind it.

From the article:

> For example, off-the-shelf applications such as nginx, SQLite, and Redis running over a unikernel have shown a 1.7x-2.7x performance improvement

That's a pretty healthy boost. Are there any significant efforts close to general use anyone is aware of in this space? (Or good reasons why it's a totally terrible idea and hasn't gone anywhere!)

billti··on Why software engineers like woodworking
Oh, and another similarity: I start lots of projects that interest me, but the ones that get finished are the ones my boss (the wife in this case) keeps hassling me about ;-)
billti··on Why software engineers like woodworking
> The physical work itself is then completely different to software engineering.

It’s funny, but I often think how similar they are after doing a project. Maybe I haven’t written enough software for it to feel routine, but I often enjoy the unique and unexpected challenges in each that require creative thinking to solve.

One interesting woodworking tip I carried over was “Know your tolerance”, i.e. does it need to be accurate to within an inch, an eighth, etc. I often apply that when working on software now (i.e. how “perfect” and bug free does this component really need to be?)

People often say that “code is malleable” and you can change anything, whereas working with wood and tools is unforgiving. I actually think they’re comparable again, in that your time is what costs the most, and you can fix anything with minor materials cost compared to the time cost. Throwing away a piece of wood I worked on for a while and messed up isn’t much different than deleting a working branch that didn’t pan out. (Working with a contractor makes this more apparent. They’ll happily change almost anything after they’ve done it if you’re willing to pay for it).

billti··on Ask HN: How to talk with logical flow and coherence at interviews?
Someone posted this Steve Jobs response the other day that demonstrates this well. (https://www.youtube.com/watch?v=oeqPrUmVz-o) . Even in front of an audience that size, there is no rush to answer. He takes quite a while to consider a response first.

That said, he is still amazing at how he can have (apparently) a long narrative in mind as he starts to answer. I work with an architect who I can spring a complex question on, and he'll start answering with something like, "There are four things I would...", and I'm thinking "Damn! You already thought through the entire response in enough detail to count the bullet points!". I'm not sure if that is just "practice" or some people's minds just work differently.

billti··on CNN cutting back on over-hyping everything as “breaking news”
I recall one day seeing the red banner on the top of the CNN site that read, “BREAKING NEWS: No update on the…” followed by whatever was the hot story at the time. For real. It was both comical and tragic.
billti··on Remembering Apple’s Newton, 30 years on
Wow. I knew Apple was an investor in ARM, but the specifics are crazy. For those that won't read the linked story, this I found to be fascinating:

> Newton was not successful, but Newton actually made $800 million dollars because Apple eventually sold the 43 percent it owned in ARM, which, by the way, kept the doors open at Apple, just before Steve Jobs came back. It was one of the really important decisions that Gil Amelio [the last CEO before Steve Jobs returned] made, and it gave them the cash to buy NeXT.

billti··on The saga of Apple’s troubled mixed reality headset
Same. I tried the “dual monitor” setup for a couple years and just went back to one. The second was just causing distractions and context switching. It’s easier to focus on what’s right in front of you than look around for stuff.
billti··on Everything you ever wanted to know about terminals
I was actually thinking the opposite. I got quite a way through the article before I realized "Hang on - None of the paragraphs and sentences start with uppercase letters!"

As a father trying to teach two small children to read and write, I've begun to think it's kind of annoying and unnecessary to have two different forms. It's easy enough to teach when they are just bigger glyphs, e.g. O -> o, C -> c, S -> s, etc. But having uppercase and lowercase that are entirely different is just a pain in the ass, e.g. A -> a, D -> d, G -> g, R -> r, etc.

I do wonder if literacy might be improved if we got rid of uppercase, to little to no detriment elsewhere. (I'm sure someone here can probably sight some data on that!)

← PreviousPage 4 of 8Next →