frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

UUID: NewV7() always generates a UUID with 7000 on browsers (Golang)

https://github.com/golang/go/issues/80084
36•mfrw•9h ago

Comments

paulddraper•2h ago
> This is because NewV7 assumes that the wallclock timer always has microsecond or nanosecond precision, though a browser's wallclock (new Date.getTime()) is millisecond precision.

That's true of Date, but not Temporal, which supported in most cases. [1]

There needs to be a fallback, but when supported `Temporal.Now.instant()` is the solution.

[1] https://caniuse.com/?search=temporal

john_strinlai•1h ago
that wont work with anti-fingerprinting, which rounds

>In Firefox, the privacy.reduceTimerPrecision preference is enabled by default and defaults to 2ms.

saghm•1h ago
I thought some of the timer precision stuff was a specific security measure, not just a privacy one, because of stuff like Spectre[1]:

> The branch predictor would then be mistrained by iterating over a very large dataset using bitwise operations for setting the index to in-range values, and then using an out-of-bounds address for the final iteration. A high-precision timer would then be required in order to determine if a set of reads led to a cache hit or a cache miss. While browsers like Chrome, Firefox have restrictions on the resolution of timers, the Spectre author was able to create a high-precision timer using the web worker feature of HTML5.

> As of Firefox 57.0.4, Mozilla was reducing the resolution of JavaScript timers to help prevent timing attacks, with additional work on time-fuzzing techniques planned for future releases.

[1]: https://en.wikipedia.org/wiki/Spectre_(security_vulnerabilit...

OsrsNeedsf2P•1h ago
> I was gonna close this as wont fix, works as designed

Missing the forest for the trees

JdeBP•1h ago
This sort of thing has always been tricky. There are a number of issues at play here:

* (Mentioned in the bug report) clock resolution may not be precise enough for that part of the timestamp on some platforms.

* Counters are hard to get right, especially if multiple processes may be calling this language library function and using the UUIDs side by side somewhere. So the implementation is sidestepping the whole problem of counters by not using them.

Alas, the fix for the problem only does the GOOS == "js" test when filling in rand_a. Unfortunately, it then checks for timestamp uniqueness always using rand_a as part of the timestamp value, which is not correct. The fix needs a little more work to not end up taking the extra 12 bits of random data as part of the timestamp, and potentially incrementing them, when the timestamp only has millisecond precision.

Steam Machine

https://store.steampowered.com/hardware/steammachine
285•theschwa•1h ago•253 comments

Moebius: 0.2B image inpainting model with 10B-level performance

https://hustvl.github.io/Moebius/
135•DSemba•4h ago•32 comments

Deno Desktop

https://docs.deno.com/runtime/desktop/
904•GeneralMaximus•13h ago•336 comments

Show HN: Oak – Git replacement designed for agents

https://oak.space/oak/oak
56•zdgeier•3h ago•75 comments

DisplayMate

https://www.displaymate.com/
36•skibz•1h ago•11 comments

My Mathematical Regression

https://blog.dahl.dev/posts/my-mathematical-regression/
32•aleda145•3d ago•7 comments

Prompt Injection as Role Confusion

https://role-confusion.github.io
59•x312•2h ago•34 comments

Finding the Best Dog Treat with Statistics

https://www.wespiser.com/posts/2026-06-19-best-dog-treat.html
19•wespiser_2018•55m ago•3 comments

Charge Robotics (YC S21) Is Hiring Software and Hardware Engineers

https://jobs.ashbyhq.com/charge-robotics
1•justicz•1h ago

Nintendo Wii U games running from a 1980's Bernoulli disk [video]

https://www.youtube.com/watch?v=8GZDOpV2OXk
45•zdw•22h ago•18 comments

Pledging another $400k to the Zig software foundation

https://mitchellh.com/writing/zig-donation-2026
571•tosh•4h ago•181 comments

Codex logging bug may write TBs to local SSDs

https://github.com/openai/codex/issues/28224
372•vantareed•11h ago•201 comments

The text in Claude Code’s “Extended Thinking” output

https://patrickmccanna.net/the-text-in-claude-codes-extended-thinking-output-is-not-authentic/
208•0o_MrPatrick_o0•4h ago•150 comments

GLM 5.2 vs. Opus

https://techstackups.com/comparisons/glm-5.2-vs-opus/
400•ritzaco•11h ago•275 comments

Die analysis of the 8087 math coprocessor's fast bit shifter (2020)

https://www.righto.com/2020/05/die-analysis-of-8087-math-coprocessors.html
52•Jimmc414•5h ago•9 comments

Blogger defeats photographer's copyright claim

https://blog.ericgoldman.org/archives/2026/06/blogger-defeats-photographers-copyright-claim-sokol...
26•speckx•1h ago•6 comments

Mexican government unveils a prototype for a new homegrown, ultra-affordable EV

https://gizmodo.com/mexico-just-showed-off-a-new-extremely-cheap-government-backed-ev-2000769080
66•speckx•1h ago•20 comments

Bain tests software takeover targets by vibecoding AI replicas

https://www.ft.com/content/e5bac4d1-b1f8-43a4-bd54-b182d5357af0
11•macleginn•3h ago•21 comments

NSF slashes research programs to support new tech initiative, insiders say

https://www.science.org/content/article/exclusive-nsf-slashes-research-programs-support-new-tech-...
98•strangeloops85•2h ago•34 comments

Show HN: Got sick of ads, so I made my own logic puzzle site

https://puzzlelair.com/
74•HaxleRose•6h ago•65 comments

How it feels to practice for IOAI in Iran

https://howitfeels.netlify.app/
11•linmer•2d ago•0 comments

window.showDirectoryPicker opens up a whole new world

https://steveharrison.dev/showdirectorypicker-opens-up-a-whole-new-world/
70•steveharrison•6h ago•80 comments

Help I accidentally a wigglegram

https://lmao.center/blog/wiggle-accidents/
433•gregsadetsky•2d ago•104 comments

Show HN: Selector Forge – browser extension for AI-generated resilient selectors

https://github.com/Intuned/selector-forge
21•ahmadilaiwi•4h ago•0 comments

Alan Greenspan has died

https://www.washingtonpost.com/obituaries/2026/06/22/alan-greenspan-most-powerful-central-banker-...
142•helsinkiandrew•7h ago•143 comments

Chevron signs 20-year power agreement with Microsoft for West Texas data center

https://www.chevron.com/newsroom/2026/q2/chevron-signs-20-year-power-agreement-with-microsoft-for...
74•cdrnsf•4h ago•67 comments

Granularity comes at a cost

https://www.sidhantbansal.com/2026/Granularity-comes-at-a-cost/
36•sidhantbansal•2d ago•5 comments

Show HN: CleverCrow: give tokens to your favorite projects

https://clevercrow.io
40•zhubert•23h ago•59 comments

DHL Set to Transport Goods on New Wind-Powered Cargo Ships

https://www.wsj.com/pro/sustainable-business/dhl-set-to-transport-goods-on-new-wind-powered-cargo...
94•julienchastang•3h ago•39 comments

There is minimal downside to switching to open models

https://www.marble.onl/posts/cancel_claude.html
358•amarble•21h ago•295 comments