News for hackers. Stuff that matters.

atfzl

Re:NPMX – a fast, modern browser for the NPM registry on Saturday February 14, 2026 @08:55AM (#47014562)
npmjs.com search input doesn't even have proper throttling/debounce. If you type fast, there is a high chance that you get result of the partial input that you entered than the complete one. Ideally they should discard the response for the old partial search if there is a new one.
Re:I drink before I interview on Friday November 18, 2022 @12:45AM (#33650868)
Reminds me of the danish movie "Another Round".

> Four high-school teachers consume alcohol on a daily basis to see how it affects their social and professional lives.

Hey, I wanted to try this out but I am seeing a lot of performance issues. There are forced reflows of >1s on normal interactions. I ran it on my MacBook Air M1.
Re:Vercel announces Turbopack, the successor to Webpack on Tuesday October 25, 2022 @02:09PM (#33334157)
Vite uses esbuild for transpiling and rollup for bundling. esbuild (written in go) is already pretty fast for transpiling but there might be a lot of possibilities to optimize in rollup as rollup is written in JavaScript.
All the devices with Apple silicon are supported, even the first MacBook Air 2020 with M1.
Re:macOS Ventura is now available on Monday October 24, 2022 @01:17PM (#33319479)
Resident Evil Village is launching on 28 Oct with Apple Silicon support!
Re:The HTTP crash course nobody asked for on Friday October 21, 2022 @08:07AM (#33287142)
Try https://fasterthanli.me/articles/a-half-hour-to-learn-rust which is also written by the same author.
Wait a bit, it takes some time.

This tool needs better UX:

- A loading bar, or some feedback that it is "analyzing data"

- clicking on "Reddit" or "Hacker News" doesn't select the radio buttons

I don't have a lot of comments on hn but the result is still super accurate. FML.
Re:GTA VI Leak [video] on Sunday September 18, 2022 @05:55AM (#32886058)
The person who posted the link says they were the one who broke into Uber recently.

> My previous work: https://www.nytimes.com/2022/09/15/technology/uber-hacking-b...

Re:Binary search with confidence on Monday March 07, 2022 @07:45AM (#30587085)
The code with this method looks a lot ugly for the basic binary search where you return -1 when an element isn't found.

https://leetcode.com/problems/binary-search/

JavaScript code:

  function binarySearch(arr, target) {
    let left = 0;
    let right = arr.length - 1;
  
    // empty arr, so we won't find anything
    if (!arr.length) {
      return -1;
    }
  
    // the target is less than the smallest number in arr
    if (target < arr[left]) {
      return -1;
    }
  
    // the target is greater then the smallest number in arr
    if (arr[right] < target) {
      return -1;
    }
  
    // These two `if` are needed for the case when there are only 2 elements
    // in the array.
    if (arr[left] === target) {
      return left;
    }
    if (arr[right] === target) {
      return right;
    }
  
    while (left + 1 !== right) {
      const middle = left + Math.floor((right - left) / 2);
      if (arr[middle] < target) {
        left = middle;
      } else {
        right = middle;
      }
    }
  
    if (arr[right] === target) {
      return right;
    }
    
    return -1;
  }
xi-editor https://xi-editor.io/docs.html

This is written in rust and has docs about rope data structure and editor architecture.

Re:In C, how do you know if the dynamic allocation succeeded? on Saturday November 06, 2021 @04:46AM (#29128491)
This made be curious to check the real and virtual memory of some processes on my laptop (MacBook Air M1).

The real memory size of Safari is ~160MB but virtual memory size is 392GB which doesn't look right. I checked other processes and all the processes have similar virtual memory size which is around ~390GB.

I wonder if this is a bug in Activity Monitor or the virtual memory allocations really are this big for each process.

Re:Don't attach tooltips to document.body on Monday August 23, 2021 @05:12AM (#28273710)
Having `display: none` is not required for the tooltip container.

The container is an empty div which is not visible, and even after adding children which are not directly visible `inside` this div keeps this container div invisible.

You can check out some examples in https://github.com/mui-org/material-ui/issues/27879

I can't find the link but there was some discussion about mem.ai on hackernews. mem.ai doesn't sound very privacy friendly.

https://techcrunch.com/2021/04/06/note-taking-app-mem-raises...

> The broader hope of the founders and investors behind Mem is that the team can leverage the platform’s intelligence over time to better understand the data dump from your brain — and likely other information sources across your digital footprint — to know you better than any ad network or social media graph does.

Re:KolibriOS on Sunday May 23, 2021 @12:44AM (#27252525)
Looks like it is using Netsurf Browser (http://www.netsurf-browser.org).
Re:Show HN: I wrote my own RTS game engine in C on Thursday May 13, 2021 @03:59AM (#27139569)
Why didn't you directly use SDL for rendering instead of OpenGL? Was it for performance reasons? OpenGL is deprecated on mac, and SDL use Vulkan on Window and Linux which I guess is better, performance wise than OpenGL.
Re:Browsers eating RAM on Thursday February 18, 2021 @10:18AM (#26180763)
Have you used the firefox performance timeline, it is awful. Chrome's performance timeline is amazingly smooth and has much more features.
Re:Pitch: Collaborative presentation software for teams on Tuesday October 20, 2020 @09:38AM (#24837127)
So, it's like https://slides.com but collaborative.
And where are you getting all this knowledge from?
state changes are not tracked by diffing, it is much more interesting. You can read about it here https://www.atfzl.com/understanding-solid-reactivity-basics
Still not sure if having a mind map would make it more usable. Do you feel having mind map like this would help you ?

Older »