HNHacker News
TopNewBestAskShowJobs

alexhutcheson

3,780 karma · joined February 17, 2013

Nothing I post reflects the views or policies of my employers, past or present.
submissionscomments
alexhutcheson··on Silicon Valley exodus: Bay Area tech companies leaving for Texas
The population of Illinois peaked in 2009 and has been declining for the past decade.
alexhutcheson··on Minimal safe Bash script template
Rob Landley is working on implementing a full Bash clone (called toysh[1]) in his Toybox project[2]. I'm excited for it to be released - it will be a huge improvement vs. Busybox ash for embedded environments. We'll be able to write scripts that use arrays!

[1] https://github.com/landley/toybox/blob/master/toys/pending/s...

[2] http://landley.net/toybox/about.html

alexhutcheson··on Minimal safe Bash script template
Awk is great for snippets that are meant to be copy+pasted into a shell, and is the only reasonable option sometimes if you're stuck in a Busybox environment, but for almost everything else you'd be better off with Python.

This previous comment of mine goes into a bit more detail: https://news.ycombinator.com/item?id=23242753

alexhutcheson··on Apple M1 vs. Ryzen 3900X vs. Intel I9 in Software Development
Current gen X1 Carbon is 2.4 lbs: https://www.lenovo.com/us/en/laptops/thinkpad/thinkpad-x1/X1...
alexhutcheson··on Apple M1 vs. Ryzen 3900X vs. Intel I9 in Software Development
Public price was $999[1], which stacked with a discount available through my employer.

I suspect they're trying to clear stock of the Gen 8, which faces tough competition from the M1 MacBook Air, the new Dell XPS 13 (with 11th gen Tiger Lake chips), and the upcoming X1 Carbon Gen 9 (also presumably with Tiger Lake chips).

[1] https://www.lenovo.com/us/en/laptops/thinkpad/thinkpad-x1/X1..., specific model I ordered is "Temporarily Unavailable" on the far right.

alexhutcheson··on Apple M1 vs. Ryzen 3900X vs. Intel I9 in Software Development
I actually prefer Windows w/ WSL2 on my laptops rather than a bare-metal Linux install. It adds a bit of friction, but in return I never have any issue with external displays, sleep/wake, OS upgrades, etc.

> Also the next gen Carbons are supposed to have a 16:10 screen.

Yeah, a taller screen and Tiger Lake processors will probably be a significant improvement. However, I think they'll probably sell for close to "list price" when they are released (so $1500+ for a decent configuration). The build quality is a bargain at $830, not so much at $1500.

alexhutcheson··on Apple M1 vs. Ryzen 3900X vs. Intel I9 in Software Development
One nice aspect of Big Sur and the M1 is that you can run the iPad version of many apps, rather than the Electron desktop version. The iPad versions often use way less memory.
alexhutcheson··on Apple M1 vs. Ryzen 3900X vs. Intel I9 in Software Development
I recently ordered a Lenovo X1 Carbon at a steep discount ($830 for Gen 8 w/ 16 GB RAM and 512 GB SSD). I felt great about it when I ordered it, but now I'm agonizing over whether to cancel and get an M1 MacBook Air instead. I'll probably be using the laptop for 4-5 years, and I'm concerned that anything with a current-gen Intel chip is going to feel like "legacy tech" for most of that time.

Amazing how the M1 has changed the landscape. If the MacBook Air could handle 2 external displays, I probably wouldn't even hesitate.

alexhutcheson··on The State of Linux Debuggers
No, that looks really slick, though.
alexhutcheson··on The State of Linux Debuggers
Highly recommend using rr if you're in an environment that supports it. Once you've learned to use it, it feels like a debugging superpower. You can use most of the gdb commands you are familiar with, and most of the gdb interfaces listed here will still work.

The docs are here: https://rr-project.org/

alexhutcheson··on The State of Linux Debuggers
On Emacs, I'd recommend using M-x gdb, rather than running gdb through GUD (which is M-x gud-gdb).

Emacs has a much tighter integration with gdb than with other debuggers. The features and interface are documented here: https://www.gnu.org/software/emacs/manual/html_node/emacs/GD...

alexhutcheson··on Qt 6.0
https://flutter.dev/desktop
alexhutcheson··on Qt 6.0
Flutter isn’t there yet (desktop support still in Alpha), but it might get there: https://flutter.dev/desktop
alexhutcheson··on Teach Debugging (2014)
I didn't see this before I wrote my other comment (https://news.ycombinator.com/item?id=25337491), but the free Software Debugging course on Udacity is great: https://www.udacity.com/course/software-debugging--cs259
alexhutcheson··on Teach Debugging (2014)
I highly recommend the free Software Debugging course on Udacity[1]. It focuses on a systematic approach to debugging, and using/building tools to automate your debugging process. I had already been writing code professionally for several years when I worked through the course, and I still learned a lot.

[1] https://www.udacity.com/course/software-debugging--cs259

alexhutcheson··on Tech elites leaving San Francisco threaten Silicon Valley's supremacy
Depending on where your office is, you might consider the commute from South San Jose unacceptable.
alexhutcheson··on Tech elites leaving San Francisco threaten Silicon Valley's supremacy
I'm hopeful Amazon's HQ2 will make a big difference for the DMV tech scene.
alexhutcheson··on How to buy gifts that people actually want
Tyler Cowen has an interesting perspective on giving books as gifts: https://marginalrevolution.com/marginalrevolution/2018/09/he...
alexhutcheson··on Zig's New Relationship with LLVM
Fair. So maybe C only actually has 1.5 killer features left, not 2.
alexhutcheson··on Zig's New Relationship with LLVM
The low cost of porting a C toolchain to a new platform is a feature of C. Arguably, it's one of C's two remaining "killer apps" that keep it in use. The other is that C is the "universal recipient" language for FFI - it's easy to call C functions from almost any other language (but not vice-versa).

It's currently much more expensive to port an Ada, Rust, or even C++ toolchain to a new platform, so I'd expect C to continue to be dominant on lower-spec chips. Here's a previous comment adding a bit more technical detail to that argument: https://news.ycombinator.com/item?id=22822931

alexhutcheson··on Optimizely to be acquired by Episerver
Are there any good open source alternatives to Optimizely that can be self hosted?

I'm aware of Wasabi[1], but I believe it's abandonware at this point.

[1] https://github.com/intuit/wasabi

alexhutcheson··on On modern hardware the min-max heap beats a binary heap
If you haven't already seen it, you'd probably really enjoy Chandler Carruth's "Efficiency with Algorithms, Performance with Data Structures" talk from CppCon 2014: https://youtu.be/fHNmRkzxHWs
alexhutcheson··on Lua 5.4.0
PUC-Rio[1] which is the university where the original authors and current maintainers work. See "Where does Lua come from?" here: https://www.lua.org/about.html

[1] https://www.puc-rio.br/english/

alexhutcheson··on Lua 5.4.0
LuaJIT:

+ Super easy FFI to C

+ Very fast (although profile to make sure this matters)

PUC Lua:

+ Possible to run untrusted code (e.g. user scripts) in a sandbox

+ Will run on a huge variety of platforms, including many microcontrollers (only limiting factor is a C compiler and a mostly-complete libc)

+ Has some additional language features (although some features, including integers, are controversial)

+ Actively maintained, expected to receive new releases and updates

alexhutcheson··on How Does Sqlite Work? (2014)
If you use C++ then you can use the Abseil B-tree containers: https://abseil.io/blog/20190812-btree
alexhutcheson··on Quora goes permanently remote-first
A counterpoint would be that other companies, including Stripe, have found ways to make this work with some deliberate effort: https://stripe.com/blog/remote-hub-one-year
alexhutcheson··on The largest city in each 10x10 degree latitude/longitude box
The choice of geographic unit depends what questions you're interested in answering. If you're trying to answer questions about government, tax base, city services, etc., then you definitely want to use legal/administrative divisions as your unit of analysis. If you're interested in answering demographic questions, like population growth or labor pool, then statistical areas like CBSAs are more useful, because differences in administrative boundaries would introduce inconsistencies in your data.

You can also define a region as an area of (relatively) continuous density - the Census does this and labels them "urbanized areas". Any one of the 3 approaches (administrative boundaries, commuting zones, density) can be reasonable, depending on what sort of questions you'd like to answer.

> Can you really count the population of Newark, New Jersey as part of NYC, NY?

If you're looking at metro areas (which are defined by commuting regions), then you definitely should, because a sizable fraction of the residents of Newark and the surrounding communities commute into NYC for work. The Census does define a sub-unit called metropolitan division, and Newark, NJ is one of these.

> Is San Francisco part of san Jose?

If your unit of analysis is MSA, then no - "San Francisco-Oakland-Hayward, CA" and "San Jose-Sunnyvale-Santa Clara, CA". This division recognizes that the two have separate (but overlapping) commuting zones - very few people commute from Richmond to Sunnyvale, or from Milpitas to San Francisco.

However, they are both within the "San Jose-San Francisco-Oakland, CA" Combined Statistical Area, which is a broader unit which recognizes that there are commuting relationships between the two areas - they are just weaker than the commuting relationships within the MSAs.

> What about twin cities, like dallas and fort worth?

Dallas-Fort Worth-Arlington, TX is an MSA. For the purposes of maps like this, you can generally just take the name of the city that come first in the MSA name and people will understand what you're referring to.

This slide deck from the US Census Bureau is pretty interesting for understanding their geographic taxonomy, and the trade-offs of different levels of observation: https://www.census.gov/content/dam/Census/data/developers/ge...

alexhutcheson··on Perl 7 is going to be Perl 5.32, mostly
Laravel[1] is pretty close, and PHP has some big advantages over Ruby for performance and deployment.

If you had told me 5 years ago that I'd be recommending PHP as an alternative vs. RoR I wouldn't have believed you, but the PHP world has improved in ways that I wouldn't have thought possible.

[1] https://laravel.com/

alexhutcheson··on The largest city in each 10x10 degree latitude/longitude box
Pretty interesting, but it suffers from a common flaw for this type of analysis - it counts the population that lives within the municipal boundaries of the city itself, not the population that lives within the "urban area" or commuting zone of that city. Different regions have different norms and laws for how they define municipal boundaries, so in some places the main municipality (e.g. Boston) is just a fraction of the urban core, while in other places the municipal boundaries include huge amounts of suburban and even rural land. Unless you're specifically interested in analyzing something related to municipal government, this isn't normally what you want to use to compare across regions.

Jacksonville, FL is an extreme example of this. Jacksonville's municipal boundaries are huge - it covers 875 sq. miles[1]. This is ~1.85x the area of New York City[2], and 3.77x the area of San Francisco[3].

Within the US, it's preferable to use core-based statistical areas (CBSAs)[4] for this type of analysis. They're defined by commuting zones, and they're not sensitive to political boundaries except to the extent that political boundaries actually affect commuting patterns. If you want to limit yourself to the "dense" part of the metro area then you can use the Census-defined Urbanized Areas[5], but the definitions of those might not match your intuitions about what should be included.

Assuming we use CBSA population, then the box that contains Jacksonville should instead have Atlanta, which has an CBSA population of ~5.8 million vs. only ~1.5 million in Jacksonville[5].

The statistical agencies for other countries have similar concepts. For Europe, Eurostat defines metropolitan regions[6], which have a similar definition. The OECD also maintains a data set of population by metropolitan area for OECD countries, although the methodology isn't consistent across all countries in that data set[7].

TL;DR - political and municipal boundaries aren't comparable across regions, use commuting zones or density-based region definitions instead. If you see Jacksonville, FL in a list of "biggest cities", it's always a red flag that they're using municipal boundaries.

[1] https://en.wikipedia.org/wiki/Jacksonville,_Florida

[2] https://en.wikipedia.org/wiki/New_york_city

[3] https://en.wikipedia.org/wiki/San_Francisco

[4] https://en.wikipedia.org/wiki/Core-based_statistical_area

[5] https://www.census.gov/programs-surveys/geography/guidance/g...

[5] https://data.census.gov/cedsci/table?q=United%20States&tid=A...

[6] https://ec.europa.eu/eurostat/web/metropolitan-regions/data/...

[7] https://stats.oecd.org/Index.aspx?DataSetCode=CITIES

alexhutcheson··on Cuckoo++ – High-Performance Hash Tables for Networking Applications (2017)
Their graphs include "Cuckoo++" and "Cuckoo++ w/ timers".

From their GitHub repo[1] it looks like the timer feature isn't built-in by default: BLOOM is just Cuckoo++, while LAZY_BLOOM is Cuckoo++ with timers.

[1] https://github.com/technicolor-research/cuckoopp#benckmarkin...

← PreviousPage 6 of 29Next →