HNHacker News
TopNewBestAskShowJobs

jvolkman

2,210 karma · joined June 25, 2015

[ my public key: https://keybase.io/jvolkman; my proof: https://keybase.io/jvolkman/sigs/vHq_PWj4HPJyq6stHeItu9okcwmKo0ckVWKDAMxLrlM ]
submissionscomments
jvolkman··on US probes Tesla's Full Self-Driving software after fatal crash
This is what Waymo realized a decade ago and what helped define their rollout strategy: https://youtu.be/tiwVMrTLUWg?t=247&si=Twi_fQJC7whg3Oey
jvolkman··on Amazon reveals first color Kindle, new Kindle Scribe, and more
Fire tablets haven't been called "Kindle Fire" since late 2014, so I doubt many people are confused.
jvolkman··on LinkedIn blocked due Meshtastic video in private chat
My Instagram account was banned. I was never an active user, and I'm not sure I actually had a single post, so I have no idea why they found it necessary to disable my account. I tried the ID verification process but got nowhere.

I had no problem creating a new account. All of the accounts are linked together with my Facebook account, so it's not like they weren't aware. I didn't care until Threads came along, and now my preferred handle is unavailable.

jvolkman··on Escaping from Anaconda's Stranglehold on macOS
Just invoke the python interpreter from its venv path. You don't need the sub-shell.
jvolkman··on Stripe's Monorepo Developer Environment
A monorepo doesn't require multiple programming languages or Bazel. But once multiple programming languages are involved, the complexity exists regardless of the chosen tooling. With multiple repos, that complexity is just pushed elsewhere like the CI system.
jvolkman··on Spider Uses a Light Show to Trick Eager Male Fireflies into Its Web
I use a cardboard coaster (e.g., from your local pub), which is necessarily cup-sized.
jvolkman··on Stripe's Monorepo Developer Environment
Stripe does use Bazel.

https://stripe.com/blog/fast-secure-builds-choose-two

jvolkman··on AT&T Breach Shows Why RCS Can't Be Trusted
That is the recently-ratified RFC9420, or Messaging Layer Security [1]. Matrix is supportive [2], Google is supportive [3], and Google Messages is actively gaining support [4].

1: https://datatracker.ietf.org/doc/rfc9420/

2: https://matrix.org/blog/2023/07/a-giant-leap-with-mls

3: https://security.googleblog.com/2023/07/an-important-step-to...

4: https://www.androidauthority.com/google-mls-e2ee-messages-34...

jvolkman··on Rye: A Hassle-Free Python Experience
Most packages don't do that. You can get really far by assuming that all of a package's wheels have the same set of dependencies (maybe using environment markers), and that its sdist always returns the same list of dependencies (also maybe using environment markers). No, it's not perfect, but it's also what Poetry and PDM do as far as I know.
jvolkman··on Rye: A Hassle-Free Python Experience
Unless you want reproducible installations on multiple platforms.
jvolkman··on OpenRailRouting
In the example I posted, in the F9 and D9 lines, the first number is the FSAC (freight station accounting code), the second number is the SPLC (standard point location code - different from what you're referring to), and the last number is a Canadian-style postal code.
jvolkman··on OpenRailRouting
Since it looks like you're talking about North American freight rail, here's an example rail shipment waybill (taken from the CN implementation guide which I found online [1])

  ISA*00* *00* *02*CN *ZZ*GENERIC *230710*1339* U*00803*006298413*0*P*>
  GS*WB*CN*GENERIC*20230710*1336*98826*X*008030
  ST*417*988260001
  BX*00*R*PP*1257*CN*L*B*N****N
  BNX*R**S
  N9*BM*1257**20230710*1336
  DTM*168*20230710*1336*ET
  N7*CN*123456*213360*N*66700******RR****6711*M*****186*128***C214
  M7*12345
  N8*111111*20230710
  F9*070112*WATSON*SK*****071511*S0K4V0
  D9*093390*VANCOUVER*BC*****0093900*V5T1E1
  N1*SH*GENERIC CARLOAD INC*C5*1111111111111
  N3*123 FIRST ROAD
  N4*WATSON*SK*S0K 4V0*CA
  PER*IC*CONTACT NAME*TE*123-123-1234
  N1*CN*GENERIC CONSIGNEE CO*C5*2222222222222
  N3*12 SMITH STREET
  N4*VANCOUVER*BC*V5K 1P7*CA
  N1*PF*GENERIC CARLOAD INC*C5*1111111111111
  N3*123 FIRST ROAD
  N4*WATSON*SK*S0K 4V0*CA
  R2*CN*S****R
  LX*1
  L5*1*WALLBOARD*3275440*T
  L0*1***213360*N***1*CLD
  MEA*AI*VOL*250.6041*CR***15
  MEA**VWT*0.7167*KC***15
  SE*31*988260001
  GE*1*98826
  IEA*1*006298413
The F9 and D9 lines are the origin and destination stations, respectively. WATSON, SK and VANCOUVER, BC are regulated names and can be used to find actual station coordinates in an industry reference file. These are the start and end points of the shipment from a rail network perspective.

There's also a pre-baked route. In this example the route is just "R2*CN*S**R" which basically means the rail cars are never leaving CN (since it's a giant class 1 railroad and this is their example). But in your example of a cross country shipment, the route might look something like:

  R2*BNSF*S*CHGO
  R2*UP*1*PITTS
  R2*NS*2*PHILA
  R2*CSXT*D
In this example, the first name is the carrier for that leg, the second value is the role that carrier plays (S = shipper's carrier, 1 = first intermediate carrier, 2 = second intermediate carrier, D = delivery switch carrier), and the last name, if present, is the junction station where the two adjacent carriers will meet. Like the station city+state names before, these junction abbreviations are regulated and can be looked up in industry reference files to find more information. But assume that BNSF and UP are well aware of how they interchange at CHGO.

Of course the shipment probably came from some factory and is going to some other factory. Those addresses can be found in the N1*SH (shipper) and N1*CN (consignee) blocks. Obviously the railroad isn't going to drop a group of rail cars at the consignee's street address, but the "delivery switch carrier" railroad in charge of handling that last mile service will have an existing relationship with the consignee and know where to take the cars. They'll often have pre-arranged schedules for when a locomotive will arrive to bring new loads and pull away empties.

[1] https://www.cn.ca/-/media/files/customer-centre/customer-cen...

jvolkman··on gRPC: The Bad Parts
If you use intellij, you can annotate your text protos with some header comments and unlock schema validation, completion, etc.
jvolkman··on DJI ban passes the House and moves on to the Senate
I thought they stopped distributing it via the Play store and required side-loading now.
jvolkman··on Apple is finally bringing RCS messaging to the iPhone
The end-to-end encryption is a client feature. It will work with any RCS provider that implements Universal Profile, as long as both clients are using Google Messages.
jvolkman··on Google Mesop: Build web apps in Python
Those sound like tools used to build a production, customer-facing webapp. Whereas this framework and others like it seem targeted at internal things, like some buttons and textboxes for an internal "admin" page or similar.
jvolkman··on Port 666 is officially registered to Doom
The associated email address, ddt@idcube.idsoftware.com, was for Dave Taylor who worked at id from 93-96. So about 3 decades.
jvolkman··on Apple apologizes for iPad 'Crush' ad that 'missed the mark'
Someone "fixed" the ad by reversing it, and the result is much better.

https://twitter.com/rezawrecktion/status/1788211832936861950

jvolkman··on Reddit down 502 Bad Gateway
https://www.redditstatus.com/incidents/014dkyf9dqfl
jvolkman··on Ask HN: What rabbit hole(s) did you dive into recently?
I got into cross-compiling Python wheels (e.g., building macos wheels on linux and vice versa). Zig's `zig cc` does much of the heavy lifting, but one step in building a portable wheel is the "repair" process which vends native library dependencies into the wheel, necessitating binary patching (auditwheel does this for linux, delocate for macos).

I wanted to be able to do this cross platform, so I re-implemented ELF patching and Mach-O patching and adhoc signing in Python, and wrapped them into a tool called repairwheel: https://github.com/jvolkman/repairwheel

jvolkman··on Multi-tenant queues in Postgres
I have my queue workers maintain a list of task owners they've already processed, and prefer to get a task from an owner they've least-recently seen (or haven't seen) using `ORDER BY array_position(:seen_owner_ids, owner_id) desc`. Each new task's owner_id is inserted into the front of the list (and removed elsewhere if it exists).

But I have a relatively small number of possible `owner_id` values at any given time.

jvolkman··on M 4.8 – 2024 Whitehouse Station, New Jersey Earthquake
Yeah, since I moved to Seattle in 2011 there have been two largeish quakes in the northeast. I have yet to feel one in Seattle.

Of course now I've jinxed myself.

jvolkman··on Kia recalls over 427K Telluride SUVs because they might roll away while parked
My Pacifica does this as well. Shifting to park also engages the parking break.
jvolkman··on Amazon's palm-scanning service now lets you sign up from your phone
They have these at the Lumen Field (football/soccer stadium in Seattle), mixed with their "just walk out" tech. Scan palm, grab beer and/or hot dog, leave. All without talking to anybody or showing any ID.
jvolkman··on Google will start showing AI-powered search results for users who didn't opt-in
Google generated an answer for me.

https://photos.app.goo.gl/2gvMEMxszs1R5rWMA

jvolkman··on U.S. sues Apple, accusing it of maintaining an iPhone monopoly
https://en.wikipedia.org/wiki/United_States_v._Google_LLC_(2...

https://en.wikipedia.org/wiki/FTC_v._Amazon

jvolkman··on The Claro Programming Language
This is just fetching external dependencies from Maven repositories, not using it to build artifacts.
jvolkman··on Gemma.cpp: lightweight, standalone C++ inference engine for Gemma models
Looks like they're working on it: https://github.com/google/gemma.cpp/issues/16
jvolkman··on Show HN: macOS-cross-compiler – Compile binaries for macOS on Linux
I'll plug some work I've been doing to (attempt to) enable cross compilation of Python wheels. I put together a small example [1] that builds the zstandard wheel, and can build macos wheels on linux and linux wheels on macos using zig cc.

macos wheels must still be adhoc signed (codesign) and binary patched (install_name_tool), so I re-implemented those functions in Python [2].

[1] https://github.com/jvolkman/bazel-pycross-zstandard-example

[2] https://github.com/jvolkman/repairwheel/tree/main/src/repair...

jvolkman··on Uv: Python packaging in Rust
The vast majority of pypi packages are not PyTorch, however.
← PreviousPage 2 of 21Next →