HNHacker News
TopNewBestAskShowJobs

lsllc

5,757 karma · joined August 8, 2011

submissionscomments
lsllc··on Size and albedo of the largest detected Oort-cloud object
The speed of light is 299792.458km/s so according to a quick Google search it takes 4.28x10^17J to accelerate 1kg to 0.98c.
lsllc··on UK Government Announces Ban on New Coal Mines
My theory is that it rained so much in the North West (e.g. the Manchester area) that there was nothing better to do than tinker with machines.

I had the chance to visit the Science and Industry Museum in Manchester a few years ago (on a rainy day!), definitely with the visit if you're in the area:

https://www.scienceandindustrymuseum.org.uk

lsllc··on Judge: Zuckerberg not liable for social media harm to children
In most places they are required to be locked up by law, for example in Massachusetts:

> "It shall be unlawful to store or keep any firearm in any place unless such firearm is secured in a locked container or equipped with a tamper-resistant mechanical lock or other safety device, properly engaged so as to render such firearm inoperable by any person other than the owner or other lawfully authorized user."

https://www.mass.gov/info-details/mass-general-laws-c140-ss-...

lsllc··on Rust for tokenising and parsing
This. I've found the same, being effective in Rust really requires that you change your way of thinking about your data structures (and code layout). Once I realized that, I was no longer fighting the borrow checker and I've been about to build complex code that more or less worked immediately. As I look back on it, I think what a pain it would have been to write and debug in C, although doing it in C would appear to be "easier".
lsllc··on A 94x speed improvement demonstrated using handwritten assembly
The intrinsics aren't portable across architectures, so using them vs inline asm (or linking with a .s/.asm file) is more about convenience/ease of use than portability (although they might be slightly more portable across different OSes for the _same_ architecture, e.g. macOS/linux for aarch64).

In some ways, I prefer the "go big or go home" of asm either inline, or in a .s/.asm file, although both inline and .s/.asm have portability issues (e.g. inline asm syntax across C/C++ compilers or the flavor of the .s/.asm files depending on your assembler).

lsllc··on Silicon Valley's Elite Pour Money into Blotting Out the Sun
Ahhh, so flying private is actually helping the environment. All of those celebs and billionaires are so selfless!

/s

lsllc··on Microsoft is introducing hidden APIs to VS Code only enabled for Copilot?
+1 for Neovim + lazyvim.

https://www.lazyvim.org

lsllc··on Microsoft is introducing hidden APIs to VS Code only enabled for Copilot?
Zed, neovim ... both excellent. Sublime Text is still good, but they need to keep up. Haven't tried Lapce, Helix etc. If it has LSP + tree sitter, that's a really good start.
lsllc··on OpenVMM – A New VMM for Windows and Linux, Written in Rust
I sort of see "written in Rust" as a feature. I guess they could say "memory safe implementation" but I suspect they'd also say "written in Ada" if it was in fact written in Ada as an example of another safe language.
lsllc··on Embedded Rust in Production?
If you're parsing a serial protocol on an embedded system where you're only getting a byte-at-a-time (from a register), or possibly up to 8 at a time, then a parser combinator library such as nom should make it very easy to create a bulletproof parser.

Definitely much easier than in C, where I've resorted to using Ragel for safely parsing serial protocols (and also in Go!) since it generates a single small dependency free source file containing the state machine and your "actions", but nom is much more expressive.

lsllc··on Terminal colours are tricky
Yes, you are right! iTerm2 does -- as long as you have more than the default profile set up (and you have to set them up yourself, which is easy enough).
lsllc··on As Cassettes Come Back, the Dilemma Is Finding a Tape Deck
Most pre-recorded tapes were as cheap as possible and if you left them in the car player on a hot day, the tape would stretch -- I used to buy the record version and tape it to a TDK SA-90 (chrome) tape which was of much higher quality and thus more resilient and I could usually get 2 records on it (one album per side). If the tape ever got damaged, it could be re-taped from the record (plus the artwork/booklet was always far better on the record than a pre-recorded tape).

Did the same thing with CDs until MP3 players became prevalent.

lsllc··on American WWII bomb explodes at Japanese airport, causing large crater in taxiway
Right it's not like the PAL unlock codes were just "00000000" or anything:

http://web.archive.org/web/20040404013440/http:/www.cdi.org/...

lsllc··on Terminal colours are tricky
I've used Apple's Terminal for a long time, way back when there was a set of color schemes called "Terminal Fructose" that was nice, I would have different colored backgrounds for different tasks. Apple at some point built that in with their themes.

However, Apple have languished with their Terminal support, they don't to >256 colors and some of the other more modern stuff is lacking and it doesn't really work with a Neovim+LazyVim setup.

I've been trying to find a "better" terminal and have bounced around between iTerm2, Kitty, Alacritty and Wezterm, but while they all are more "modern", I find that none of them seem to have that basic "New Window with Profile ..." option that lets me quickly open windows with different background colors/themes (at least without some screwing around).

Currently settled on Wezterm, mostly because it also works on Windows and I can share my wezterm.lua configuration (I should note that Windows Terminal is actually pretty good too). I still do find my self running Apple Terminal for quick things (e.g. using python3 as a REPL to do math or testing hex/binary stuff out etc).

lsllc··on The lost language extensions of MetaWare's High C compiler (2023)
It (the 2nd one) mirrors C's designated initializers for structures:

  struct foo f = {
      .bar = 1,
      .baz = 2,
  };
lsllc··on LAPD raid goes from bad to farce after gun allegedly sucked onto MRI machine
NoHo in this case means North Hollywood. Sorta like SoHo (South of Houston St) in Manhattan, or SoMa (South of Market St) in San Francisco (but not Soho London, AFAIK is not an abbreviation).
lsllc··on Vaporizing plastics recycles them into nothing but gas
You may have seen on YouTube, various videos that come out of I think Pakistan of various "human powered" factories -- in many of them, they are recycling plastics into new products (I won't get into any of the safety [total lack of] or child labor exploitation aspects of this ...).

In one particular video they were shredding all kinds of waste plastic (again, not even a dust mask) and melting it to extrude into thin strings that were then cooled and chopped up yielding bags of source material for new products.

They were then taking these pellets and making "PVC water pipes" using a home-made looking propane powered extrusion machine. God only knows what kinds of plastic they were using but the pipes looked exactly like the ones you'd find at a Home Depot or similar store. Kudos to the ingenuity of the workers, but wow, I worry about the health implications not just for the workers inhaling the particles and fumes, but the end-users who are now drinking water through pipes made from who knows what plastics.

lsllc··on Federal civil rights watchdog sounds alarm over Feds use of facial recognition
I walked up to the window (into the view of the camera) he said "Welcome home $NAME" as put my passport on the counter!

The camera was right by the counter, not behind the officer.

lsllc··on Federal civil rights watchdog sounds alarm over Feds use of facial recognition
I recently reentered the US after a short vacation (the first time I'd been out of the country for a couple of years) and the CBP now have cameras/face scanners. The agent said hello using my name before I'd even handed over my passport -- in fact I don't think he even looked at it.

I assume they must be face-matching on the passport photo database.

lsllc··on The moon blew up without warning and for no apparent reason (2017)
Personally I thought Seveneves was pretty good ... the most recent Neal Stephenson novel I read was "The Rise and Fall of D.O.D.O." and I loved it. As with Snowcrash, it'd make an awesome movie (if done right)!
lsllc··on Hezbollah pager explosions kill several people in Lebanon
Wouldn't this be too easy to detect -- for example tripping airport security (or other X-ray security systems, govt. buildings etc).
lsllc··on Amazon tells employees to return to office five days a week
You can get yourself a nice pour-over setup on Amazon for the office and every two weeks or so buy a bag of small batch coffee at Whole Foods ...
lsllc··on iPhone 16 Pro and iPhone 16 Pro Max
Isn't that sort of the point though? I'm a regular phone user, but boy when I was on vacation this year, my iPhone took some fabulous pictures with stunning colors. I'm sure way better than I would with a DSLR (given I have no experience with a DSLR and/or whatever post-processing/editing suites I'd need to go with it).

I totally buy into the "best camera you have is the one in your pocket" concept -- especially if that camera takes amazing photos without me needing to know how.

I do agree on the other features (or lack thereof), in general I only upgrade my iPhone for two reasons:

  1. Newer/better camara
  2. Old iPhone is getting long in the tooth (i.e. battery degradation)
I think the longest I went was maybe 3 years before the battery wouldn't really make it through the day.

I'll take a look at this one and if the camera is compelling enough, maybe upgrade (the 5x optical zoom might just do that for me).

lsllc··on In a first, Phoenix hits 100 straight days of 100-degree heat
Back in July, it was the sand coming off the Sahara that was suppressing hurricane development:

https://weather.com/storms/hurricane/news/2024-07-15-saharan...

But supposedly this ended in early August:

https://www.bloomberg.com/news/articles/2024-08-05/atlantic-...

lsllc··on Can solar costs keep shrinking?
Looks like they're based in Hyannis, but the website says they cover Greater Boston, so I'll give them a call.

Thank you for responding!!!

lsllc··on Can solar costs keep shrinking?
Do you mind saying what company and which end of MA?
lsllc··on Departure Mono – a monospaced pixel font with lo-fi technical vibe
That's a really nicely done website (and font!)!
lsllc··on Features I'd like to see in future IDEs
Personally, I use markdown for comment content, not that IDEs do much with it, at least Markdown supports images with the `![alt text](filename)` syntax.

I think I've seen some tree-sitter grammars actually define injections such that their comment are rendered with markdown (but now I can't figure out where I saw that, maybe one of the Zed specific ones).

lsllc··on Translating All C to Rust
FYI: There's a bigger discussion that predates this post on the HN front page currently:

https://news.ycombinator.com/item?id=41110269

lsllc··on Zed on Linux Is Here
nvim+lazyvim+telescope (which uses ripgrep and/or fzf). Fantastic, that's the gold standard for finding files, grepping, looking for references to variables etc. Love it.
← PreviousPage 3 of 34Next →