Better HN
topnewbestaskshowjobs
Log inSign up

grav

52 karma · joined Nov 18, 2013 (13y ago) · 51 submissions

Submissions

comment 2mo ago · link · parent

Should be available in OpenCode once this lands: https://github.com/anomalyco/models.dev/pull/6199/changes

comment 5mo ago · link · parent

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.');
  })();

comment 9mo ago · link · parent

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)?

comment 1y ago · link · parent

> 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?

comment 1y ago · link · parent

It seems they are: https://developer.chrome.com/docs/ai/built-in

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

I give up, why?

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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);

comment 2y ago · link · parent

> no motion data

How come there's no motion data?

comment 2y ago · link · parent

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?

comment 2y ago · link · parent

For ref:

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

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

comment 2y ago · link · parent

  (swap! state update :co2-level (partial * 0.8))

comment 3y ago · link · parent

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 :)

comment 3y ago · link · parent

Nice idea. I'm really missing a way to contol the dynamics. Maybe just mapping 1-9 keys to a velocity scaling?

comment 3y ago · link · parent

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

comment 3y ago · link · parent

PrevJS

comment 3y ago · link · parent

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)))

comment 3y ago · link · parent

Works for me. You probably need to unmute the phone.

comment 3y ago · link · parent

Flee.

comment 4y ago · link · parent

I can highly recommend Arch AMD64 under Parallels on M1. GPU acceleration, clipboard integration, stuff generally works

comment 5y ago · link · parent

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.

comment 7y ago · link · parent

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...

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

I was expecting a 500 server error.

comment 8y ago · link · parent

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.

comment 9y ago · link · parent

How's the story with source code obfuscation in Swift-land? Wouldn't that be an option for you?
12