HNHacker News
TopNewBestAskShowJobs

justinfrankel

110 karma · joined August 8, 2016

submissionscomments
justinfrankel··on A macOS bug that causes TCP networking to stop working after 49.7 days
yep that makes sense
justinfrankel··on A macOS bug that causes TCP networking to stop working after 49.7 days
ah reading their analysis, there are errors that explain this. Particularly this:

  tcp_now   = 4,294,960,000  (frozen at pre-overflow value)
  timer     = 4,294,960,000 + 30,000 = 4,294,990,000
              (exceeds uint32 max → wraps to a small number)
timer wraps to a small number, they say

  TSTMP_GEQ(4294960000, 4294990000)
they forgot to wrap it there, it should be TSTMP_GEQ(4294960000, small_number)

  = (int)(4294960000 - 4294990000)
  = (int)(-30000)
  = -30000 >= 0 ?  → false!
wrong!

There may be a short time period where this bug occurs, and if you get enough TCP connections to TIME_WAIT in that period, they could stick around, maybe. But I think the original post is completely overreacting and was probably written by a LLM, lol.

justinfrankel··on A macOS bug that causes TCP networking to stop working after 49.7 days
have multiple macOS machines with 600-1000+ day uptimes, which do TCP connections every minute or so at a minimum, they are still expiring their TIME_WAIT connections as normal.

these kernel versions:

Darwin Kernel Version 20.6.0: Thu Jul 6 22:12:47 PDT 2023; root:xnu-7195.141.49.702.12~1/RELEASE_ARM64_T8101 arm64

Darwin Kernel Version 17.7.0: Wed Apr 24 21:17:24 PDT 2019; root:xnu-4570.71.45~1/RELEASE_X86_64 x86_64

so... wonder what that's about?

justinfrankel··on Honeycrisp apples went from marvel to mediocre
+1 here -- Mutsu are fantastic, readily available at NYC greenmarkets in the fall and into the winter, though there are pretty large differences in flavor and texture between various orchards too. Samascot is my fav.
justinfrankel··on Arm64EC – Build and port apps for native performance on Arm
If you have an Apple Silicon mac you can install Win11 in UTM and it works great for dev purposes. Can get the free builds via Windows Insider, too.
justinfrankel··on We've Been Treating Concussions All Wrong
except: 1) avoid the possibility of head injuries, and 2) if you suffer more than slight symptoms from daily routine, dial it back
justinfrankel··on Git log is not a changelog
or you might have an alternate prefix for "things that go in development build changelogs but not final changelogs", e.g. "-"
justinfrankel··on Winamp source code leak
you can also install reaper and this plug-in and get something highly winampish with its own special authenticity:

https://landoleet.org/reaplay.zip

justinfrankel··on Winamp source code leak
fwiw dro’s been around a long time and i would be inclined to trust them :)
justinfrankel··on Exciting Days for ARM Processors
Is plain win32 API supported on arm64/Windows? Is there a version of MSVC? Or does one use mingw?
justinfrankel··on Apple announces it will switch to its own processors for future Macs
> I’m not highly conversant with ARM linux, but in my mind I imagine it’s still largely a second class citizen

IMO ARM linux is great, the real thing lacking is good hardware to run it.

justinfrankel··on A new project: multi-track audio editing (2005)
"Interesting to see that it took 15 years to get where he is today."

If I had started it in 2000 it would've taken 20 years to get to where it is (OK fine, would be) today...

justinfrankel··on UTF-8 Everywhere
I would leave this on their facebook page, but fuck facebook so I'm posting it here hoping that someone will find it useful.

We have a zlib-licensed wrapper header for some commonly-used win32 APIs to make them take UTF-8, see:

https://github.com/justinfrankel/WDL/blob/master/WDL/win32_u...

https://github.com/justinfrankel/WDL/blob/master/WDL/win32_u...

(This is used in REAPER so it's relatively well tested!)

justinfrankel··on Coronavirus has caused a bicycling boom in New York City
I have short-reach dual pivot brake calipers on a bike which sees >2000 miles year-round each year in NYC, and my rims are still fine after 7 years.

From my experience, stopping distance is usually dictated by road conditions more than the brakes. This is with 34mm wide tires, and properly adjusted brakes (a lot of times when people complain about rim brakes, the issue is that they are not working properly).

Side note: fenders are a must!

justinfrankel··on Reaper: Digital Audio Workstation
I'm not sure why, either... but since we're here: REAPER is very programmable which might appeal to readers of this site. Specifically:

ReaScript: can program high level UIs/project manipulation/etc in Lua or EEL2

JSFX: can write realtime signal processors in EEL2

Video: can write/edit video FX in EEL2 (a ton of included presets are there which can be tweaked on the fly)

justinfrankel··on New York City to 'break car culture' and build more than 250 new bike lanes
This bill is an offensive joke -- more than 2 years until the first plan is due? The first plan is due after the next city council and mayoral election.

The new city government could completely cancel the bill if they felt like it.

How many people will be killed by cars in the meantime?

IMO if you're a city responsible for the safety of your citizens, and you agree what the right thing is to do, adding unnecessary delay for no real reason is reprehensible.

A quote from the NYT article https://www.nytimes.com/2019/10/28/nyregion/nyc-biking-death...

"To gain Mr. de Blasio’s support, Mr. Johnson’s office agreed to push back the start date for the first streets plan, from this month to December 2021, around the time the next mayor takes office."

justinfrankel··on Practice Sight-Reading Music
Very cool but Bb doesn't seem to work right here: https://1014.org/_/sightread_bb.png
justinfrankel··on Deciphering the postcard-sized raytracer
This is awesome!

There’s a bug in the deobfuscated version — sizeof(letters) should be 60 or sizeof(letters)-1 (that version reads past the end of the buffer otherwise).

justinfrankel··on Removing a recursion in Python, part 1
Am I the only one who read this and thought: hmm, for any number 32 or higher, the minimum cost would always be 5? Who cares about recursion when it's such a constrained problem? :)
justinfrankel··on 1/0 = 0
FWIW the EEL2 language (part of https://www.cockos.com/wdl/ and what powers REAPER's JSFX audio, video processors, etc) also makes this design decision...
justinfrankel··on Lenovo ThinkPad X1 Carbon 5th Gen Laptop Recall
I got a peek at the recall instructions, for those inclined to check themselves: https://twitter.com/JustinFrankel/status/962056021156945920
justinfrankel··on A Reimplementation of Winamp 2.9 in HTML5 and JavaScript
token comment
justinfrankel··on UPX – Ultimate Packer for Executables
You can actually set NSIS to UPX-pack its stub, if you're so inclined, but the stub is pretty small already.
justinfrankel··on Learn Ethereum smart contract programming
right on, the tutorial was interesting (even for someone with little interest in all things blockchain :)
justinfrankel··on Learn Ethereum smart contract programming
yeah, it's completely broken. which normally you would fix, but oh look too late!
justinfrankel··on Learn Ethereum smart contract programming
the lottery code is so broken it isn't even funny. actually it is hilarious! the first bet will almost always win, especially if it's a very small bet!
justinfrankel··on On Blockchain, Intermediaries, and Hype
That's all great sounding in theory, but how exactly would someone in Venezuela go about acquiring bitcoin?
justinfrankel··on Retina iMac owners can greatly improve graphics performance of many applications
Right, most people using audio applications probably don't really care about 10 bit color.
justinfrankel··on Retina iMac owners can greatly improve graphics performance of many applications
Rendering the arrange view, which can change drastically in response to user edits. We've tested using OpenGL to update, but as the texture needs to get uploaded each frame it's only marginally faster, and uses significantly more resources.
justinfrankel··on Retina iMac owners can greatly improve graphics performance of many applications
We render everything (for portability) in 32bpp ARGB, so that'd require conversion anyhow.
Page 1 of 2Next →