HN user

jawilson

48 karma
Posts0
Comments10
View on HN
No posts found.

It would be nice if input could be taken from a command line argument or better yet, stdin so that it is fully scriptable.

ollama has a way to do this and lets you play with a bunch of models without being very smart (just do ollama pull <model-name> and it downloads a model and makes it available to ollama run/ollama serve).

(Sounds like I also need to play with LM Studio).

Modern machines are optimized to run C which is in fact essentially "stack based" but registers "cache" parts of the stack (often never touching the stack in leaf procedures).

There were at least two well known machines that tried to mix the stack and registers - Sparc and my personal favorite, the am29000.

Intel was so dominant in manufacturing for so long that the objectively kind of crappy x86 ISA just didn't matter for price/performance (and of course was a plus for running legacy software).

Full software scheduling breaks down on the first data cache miss. Combined with typically much larger icache foot-prints, VLIW just never lives up to the promise.

I agree they could be useful for DSPs because the icache problem isn't as severe as general purpose software like a compiler or word-processor.

For the right definition of "major". Search, Ads, GMail, Docs, absolutely. If you only have 50 million DAU then you may not even have an SRE let alone one in multiple time-zones. Most teams have an on-call rotation and you get a phone-call an hour after you fall asleep unless you recently did a push or go to bed early. (Or you just forget all the pages that happened during normal hours and only remember the annoying ones.)

As of a few years ago, most engineers in my group had Apple laptops but linux desktops and mostly the laptops were being used as "terminals" via remote desktop and Chrome (as you were not supposed to store source code on a laptop anyways in case it was stolen but with some exceptions). I often used a linux laptop (or chromebook) and mostly just ssh'd into a "screen" session running lots of emacs which worked OK on the google bus.

The only folks with Apple desktops were people doing iOS work and I think they may have had linux desktops as well.

It was fairly easy to get another linux "desktop" which was really just a virtualized linux machine in the cloud.

[1] Yes, still called googlers.

Technically yes, the promise can first do an RPC to a distributed key/value store, and only then do the expensive computation (which typically is itself an RPC to some other system, perhaps a traditional database). Promise libraries should make this pretty simple to express (though always uglier than blocking calls).

I say expensive because even in a data center, an RPC is going to take on the order of 1ms. The round-trip from a client like a browser is much greater especially where the client (if this is what you meant by "client") has a poor internet connection.

Therefore this pattern is usually done inside of an API server in the data-center. Additional benefits of the server side approach is that an API server can better control the cache keys (you could put the API server "build number" in the cache key so you can do rolling updates of your jobs), TTL, etc. Also, you don't want a rogue computer you don't control to directly talk to a shared cache since a rogue computer could put dangerous values into your cache, remove elements from the cache they shouldn't, etc.

Noise canceling headphone make my ears feel like they want to bleed if I wear them too long. I use foam ear plugs when I'm sleeping.

Xanex is awesome though only for really long flights. We've all heard of Ambien on planes stories though this is another option for most people.

Keep hydrated with water, planes really dry you out. Peeing is good because blood cots from long flights are a real thing.

Please wear socks if your going to take your shoes off.

Definitely dress in layers.

Portable battery is worth its weight as is a charger which works most of the time.

Instant ramen in a styrofoam cup for domestic flights (they feed you on international flights). Slim jim, beef jerky, nuts, potato chips are other favorites of mine for domestic flights even if I don't eat these often on a normal day.

I've written a few useful scripts that everyone should have.

histogram - simply counts each occurrence of a line and then outputs from highest to lowest. I've implemented this program in several different languages for learning purposes. There are practical tricks that one can apply, such as hashing any line longer than the hash itself.

unique - like uniq but doesn't need to have sorted input! again, one can simply hash very long lines to save memory.

datetimes - looks for numbers that might be dates (seconds or milliseconds in certain reasonable ranges) and adds the human readable version of the date as comments to the end of the line they appear in. This is probably my most used script (I work with protocol buffers that often store dates as int64s).

human - reformats numbers into either powers of 2 or powers of 10. inspired obviously by the -h and -H flags from df.

I'm sure I have a few more but if I can't remember them from the top of my head, then they clearly aren't quite as generally useful.

Anyone else have some useful scripts like these?