HNHacker News
TopNewBestAskShowJobs

grav

52 karma · joined November 18, 2013

submissionscomments
grav··on Qwen 3.8 27B available on Cerebras at 1500 tokens/s
Should be available in OpenCode once this lands: https://github.com/anomalyco/models.dev/pull/6199/changes
grav··on MAI-Code-1-Flash
Fix:

  (() => {
  const KILL = ['wheel', 'mousewheel', 'DOMMouseScroll', 'touchmove'];
  const block = e => e.stopImmediatePropagation();
  for (const t of KILL) {
    window.addEventListener(t, block, { capture: true, passive: true });
    document.addEventListener(t, block, { capture: true, passive: true });
  }
  document.documentElement.classList.remove('lenis','lenis-smooth','lenis-scrolling','lenis-stopped');
  console.log('Scroll hijack disabled — native scrolling restored.');
  })();
grav··on Claude Sonnet 4.6
I fail to understand how two LLMs would be "consuming" a different amount of tokens given the same input? Does it refer to the number of output tokens? Or is it in the context of some "agentic loop" (eg Claude Code)?
grav··on Malicious versions of Nx and some supporting plugins were published
> Interestingly, the malware checks for the presence of Claude Code CLI or Gemini CLI on the system to offload much of the fingerprintable code to a prompt.

Can anyone explain this? Why is it an advantage?

grav··on Gemma 3n preview: Mobile-first AI
It seems they are: https://developer.chrome.com/docs/ai/built-in
grav··on Show HN: Real-time AI Voice Chat at ~500ms Latency
In the demo, is there any specific reason that the voice doesn't go "up" in pitch when asking questions? Even the (many) rethorical questions would in my view improve by having a bit of a pitch change before the question mark.
grav··on The Pain That Is GitHub Actions
At [previous company], we initially required branches to be up to date with main. Since it was a relatively big mono repo, it slowed down productivity quite a bit.

Eventually we tried dropping that requirement and instead relied on testing main before deploying to production. It sped us up again, and main never broke because of bad merges while I was there.

grav··on Konva.js - Declarative 2D Canvas for React, Vue, and Svelte
I give up, why?
grav··on Claude 3.7 Sonnet and Claude Code
Claude 3.7 Sonnet seems to have a context window of 64.000 via the API:

  max_tokens: 4242424242 > 64000, which is the maximum allowed number of output tokens for claude-3-7-sonnet-20250219
I got a max of 8192 with Claude 3.5 sonnet.
grav··on Escaping Surprise Bills and Over-Engineered Messes: Why I Left AWS
It is possible, since spending has an API. I’ve recently implemented it on Azure for a company, to ensure our storage costs didn’t run wild.

Couldn’t find an out-of-the-box solution, maybe, as you say because it’s not in their interest.

grav··on Enhancing your MIDI devices with Perl
Couldn't get the code to run with Perl on Mac:

   $ plenv exec perl midi.pl
   Not enough arguments for main::pedal_notes at midi.pl line 107, near "$note)"
   BEGIN not safe after errors--compilation aborted at midi.pl line 150.
I got something similar working in Supercollider though, which has a lot of tools for these sort of things, eg:

   MIDIIn.addFuncTo(\noteOn, ~myNoteOnHandler);
grav··on No GPS required: our app can now locate underground trains
> no motion data

How come there's no motion data?

grav··on No GPS required: our app can now locate underground trains
Very impressive. Also interesting that the motion type prediction ("is this a moving train?") generalizes to underground trains in other cities.

I see they support the the largest cities in Sweden and Norway, wonder if there are any plans for Copenhagen, Denmark?

grav··on LLRT: A low-latency JavaScript runtime from AWS
For ref:

- https://blog.cloudflare.com/workerd-open-source-workers-runt...

- https://github.com/cloudflare/workerd

grav··on On whether we're living in a simulation

  (swap! state update :co2-level (partial * 0.8))
grav··on How to find a lost phone in a no-cell-coverage camping site?
TL;DR: created a wifi-network on another phone with same SSID and password as the one that the lost phone usually connects to, walked around waiting for the phone to connect, receive the "Find my phone" notification and send out a sound.

Cool :)

grav··on Touch Pianist
Nice idea. I'm really missing a way to contol the dynamics. Maybe just mapping 1-9 keys to a velocity scaling?
grav··on UTM – Virtual Machines for iOS and macOS
I also experienced performance problems with Arch Linux ARM through UTM. Parallels seems to perform much better for me.

One issue might be that only OpenGL 2.1 is supported: https://github.com/utmapp/UTM/issues/4285

grav··on Compuserve
PrevJS
grav··on Critique of Lazy Sequences in Clojure
I've been using the trick with enforcing realization by serializing to strings a few times. Slow, but quite useful in many contexts. However, instead of using `(with-out-str (pr ...`, there's simply`pr-str`, which is easier to remember.

I'm typically using it like so:

  (defn realize [v] (doto v pr-str))

  (binding [*some* binding]
    (realize (f some-nested-lazy-seq)))
grav··on Opus Databending Drumkit
Works for me. You probably need to unmute the phone.
grav··on Show HN: Automating daily reports, because fuck it
Flee.
grav··on M2 MacBook Air scores higher on Windows 11 GeekBench than pricier Dell laptop
I can highly recommend Arch AMD64 under Parallels on M1. GPU acceleration, clipboard integration, stuff generally works
grav··on Scanning your iPhone for Pegasus
On Arch Linux, I installed libimobiledevice from source (https://github.com/libimobiledevice/libimobiledevice), as the newest version in Pacman didn't connect to my iPhone.

I also installed usbmuxd via Pacman.

grav··on Tesla Full Self Driving Demo on HW3
A CNN journalist experienced the new autopilot on a test drive, and he has a brief description of a situation in which the Tesla representative chooses to hit the brakes:

https://edition.cnn.com/2019/04/22/success/tesla-navigate-on...

grav··on Audio AI: isolating vocals from stereo music using Convolutional Neural Networks
iZotope RX 7, mentioned in a comment above, has something called de-reverb. I didn't try that particular feature, but I did try the music rebalance feature, and it's pretty impressive.
grav··on Cancelling Dropbox Pro is hard
I was expecting a 500 server error.
grav··on A Message to Our Customers about iPhone Batteries and Performance
I agree it's a good response, both marketing wise (the compensation in the form of cheaper upgrade) and technically (the improved health visibility).

Regarding your concerns:

1) The software update that improved the power management was released for iPhone 6 and later only according to the article.

2) They state "Early in 2018". I think this is a pretty conservative, yet realistic estimate, considering they don't want to risk the user experience.

grav··on Why many developers still prefer Objective-C to Swift
How's the story with source code obfuscation in Swift-land? Wouldn't that be an option for you?
grav··on Vue.js vs. React
Agree that Elm is a good all-in-one solution for SPAs.

You should also give ClojureScript with the simple React-wrapper Reagent a spin. All the functional stuff is built into the language, like Elm, albeit without the types, which both has its pros and cons.

Page 1 of 2Next →