HNHacker News
TopNewBestAskShowJobs

ww520

10,762 karma · joined February 10, 2010

submissionscomments
ww520··on I fixed Windows native development
Before rustup can run, the very first message rustup-init spits out is asking to install the visual studio tool chain.
ww520··on Data centers in space makes no sense
When did I say no insulation? If it took only one moment for the satellite to fly by behind the whole earth, its speed is so great that it would be flung out of the solar system.
ww520··on Data centers in space makes no sense
Space offers some unique benefits that enable computing that’s impossible or very hard to do on earth. E.g. Super conducting computing is possible, which can be thousands times to millions times faster than current CPU while using very little energy. When the satellite moves in the shade of the earth, temperature drops significantly. It can be low enough to enable superconducting. When the satellite moves under the sun, the solar panel can start charging up the battery to power the ongoing operation.
ww520··on Efficient String Compression for Modern Database Systems
Strings in textual index are already compressed, with common prefix compression or other schemes. They are perfectly queryable. Not sure if their compression scheme is for index or data columns.

Global column dictionary has more complexity than normal. Now you are touching more pages than just the index pages and data page. The dictionary entries are sorted, so you need to worry about page expansion and contraction. They sidestep the problems by making it immutable, presumably building it up front by scanning all the data.

Not sure why using FSST is better than using a standard compression algorithm to compress the dictionary entries.

Storing the strings themselves as dictionary IDs is a good idea, as they can be processed quickly with SIMD.

ww520··on I made Zig compute 33M satellite positions in 3 seconds
Nice to have a huge speed up. Kudos for applying the right tools and right approaches to get it done. I especially like your explanation of how to utilize SIMD in Zig. Learned something today.
ww520··on Prediction: Microsoft will eventually ship a Windows-themed Linux distro
Nope. The Windows NT kernel is fantastic. It's the Windows user mode apps that people complain about. Replacing the Windows NT kernel with the Linux kernel while keeping the user mode crust serves no purpose.
ww520··on Most renters shut out of energy-saving upgrades – study
There's the plug-in solar panel system. It's very easy to install. It's suitable for renters to add supplemental solar power with little cost and effort. It's portable enough that renters can bring them to their next rentals.

It's very popular in Germany, with several million units installed. They call it balcony solar panel. People hang the panels on their balconies in apartment buildings. Germany allows up to 800-watt systems.

It's a very simple system, a solar panel coupled with a micro inverter that converts DC to AC power. It is plugged into a regular wall outlet to provide additional power to the home. The added power is an additional source of electricity in addition to the grid. Any electrical devices drawing power from the circuit draw from the closet source first (due to Kirchhoff's Law), i.e. from the solar panel, then any additional need will be drawn from the farther away grid.

The micro inverter needs to be UL 16741 compliant for anti-islanding protection, to shut off in case the grid has shut power down, so that the solar panel won't back feed power into the grid.

In U.S., Utah has already passed a law to allow plug-in solar systems for up to 1200 watts without permit requirement and allowing back-feed into the grid. A few other states are considering.

There are limits to the power fed into a circuit. Normal household electrical wire can handle up to 15amp (1800 watts on 120V) of electric load. The plug-in power from the solar panels should not exceed the limit. This means the power generated is meant to supplement the household power need rather than completely covering it. Any reduction from the grid helps.

I talked to my city's (in California) building department. They haven't heard of it and need time to do research. The building inspector says that as long as the solar panels are not modifying the structure of the building (on roof or on wall), they don't care. They said putting the panels on the ground in the yard is fine.

ww520··on Ask HN: What are you working on? (January 2026)
At the moment I’m building a succinct data structure library, doing one algorithm at a time. There have been some very impressive papers came out recently. The numbers look promising.
ww520··on Bose has released API docs and opened the API for its EoL SoundTouch speakers
I used to have an unexplained resistance to buy Bose products. After the hinge of my Sony mx-1000 headphones broke in to two places, I gave in and got a Bose qc. Man, the build quality was insanely good. The sound was really good. And it’s really comfortable to wear. I had changed my view.
ww520··on Apple releases open-source model that instantly turns 2D photos into 3D views
Is the model in ONNX format or PyTorch format?
ww520··on Janet Jackson had the power to crash laptop computers (2022)
That’s a heck of debugging.
ww520··on My insulin pump controller uses the Linux kernel. It also violates the GPL
The customer spends money to buy the product along with the source code offered. It's part of the transaction. Not honoring part of the transaction is a breach of contract.
ww520··on My favourite small hash table
This hash table is pretty good. It has at best one memory read if there’s no collision. Randomized key might introduce any level of key collision though.
ww520··on Mapping Amazing: Bee Maps
In regarding the Elon quote, every Tesla has a number of cameras. Tesla the company probably has more recorded video of the roads than anybody else in the world, by a large margin.
ww520··on High-income job losses are cooling housing demand
House value has gone up along with other assets since Covid because a lot of money have been printed. A trillion here and a trillion there, pretty soon we're talking real inflation. Real estate is the real inflation hedge.
ww520··on Imgur geo-blocked the UK, so I geo-unblocked my network
The governments of the countries that dabbling into the "think of the children" laws should build their own "safe" internets for their citizens, walling them in, requiring them to "verify their age" before letting them out of their cages into the Internet.
ww520··on Bring bathroom doors back to hotels
London, Marriot, W. Sink in the bedroom. Just No.

https://dynamic-media-cdn.tripadvisor.com/media/photo-o/2e/9...

ww520··on Report: Tim Cook could step down as Apple CEO 'as soon as next year'
Apple also invested heavily into EV. Though not succeeded, they at least put money into new areas.
ww520··on Reviving Classic Unix Games: A 20-Year Journey Through Software Archaeology
I wasted so much late night hours on Netrek in the computer lab.
ww520··on My Experience of building Bytebeat player in Zig
Arena Allocator is great, especially for periodic frame based allocations, e.g. rendering loop, game loop, request handling, etc. You just reset the arena at the end of every frame. It has the feature to reset and retain the memory allocated underneath. It's just a reset of the arena pointer.
ww520··on This week in 1988, Robert Morris unleashed his eponymous worm
His dad was a legend as well, chief scientist in NSA.
ww520··on Power over Ethernet (PoE) basics and beyond
It is also good on delivering power to AES50 snake stage box to microphones that needs fathom power.
ww520··on Monads are too powerful: The expressiveness spectrum
It is what you described at high level. The devils are in the detail. People keep using words to describe the detail when code shows everything.
ww520··on Monads are too powerful: The expressiveness spectrum
Monad is a pattern for constructing container types so that their instances can be used in chain operations safely. Given a value type, you can build a monad type wrapping the value type with a set of prescribed monadic functions. Instances of the monad type are called monadic values.

Example is best for illustration. I'll use a made-up syntax.

  // 'Maybe' is a monad wrapping any value type T that can be null.
  class Maybe<T> {
    // The value wrapped by the monadic value
    value: T;

    // A constructor to make a Maybe monadic value from a plain value T.
    // This is called 'unit' or 'return' in Haskell, or 'lift' in other languages.
    // It's really a constructor.
    static wrap(v: T) Maybe<T> {
        return new Maybe { value = v } 
    }

    // then() applies fn on the unwrapped value. fn returns a Maybe<T>.
    // This is called 'bind' in Haskell, or 'flatMap' in other languages.
    then(fn: (T) => Maybe<T>) Maybe<T> {
        return this.value == null ? Maybe.wrap(null) : fn(this.value);
    }
  }
That's it! That's all to to monad. You can use the same pattern to build other monadic types, like List<T>, Promise<T>, IO<T>, as long as the wrap() and then() functions are built accordingly. Back to this example, to use it,

  let a = Maybe<int>.wrap(4)                   // construct a monadic value
  let b = a.then(x => Maybe<int>.wrap(x + 1))  // add 1 to it
  let c = Maybe<int>.wrap(null)                // construct a null monadic value
  let d = c.then(x => Maybe<int>.wrap(x + 1))  // safely handle null; d is null

  let e = Maybe<int>.wrap(5)
    .then(x => Maybe<int>.wrap(x + 1))
    .then(x => Maybe<int>.wrap(x * 2))    // chain the calls

  let f = Maybe<float>.wrap(5.0)          // The same Maybe on a different type
    .then(x => Maybe<float>.wrap(null))
    .then(x => Maybe<float>.wrap(x * 2))  // chain the calls; safely handle null
ww520··on Bots are getting good at mimicking engagement
Way back when I work in an ad based company, click fraud handling was under my overseeing. We caught about 20 percent of clicks as fraudulent and filtered them out before billing the ad placing vendors. It was a constant battle with the sales team to relax the rules, as any clicks filtered out cut into the sales revenue. Sometimes we got the customers on our side as they ran their own analysis on the billed click report and came back demanding refund as they found a bunch of fraudulent clicks.
ww520··on JSON River – Parse JSON incrementally as it streams in
This is nice to parse incomplete JSON as they come in.

I did something similar for streaming but built it with a streaming protocol at the frame level wrapping the JSON messages [1]. The streaming protocol has support for both the LF based scheme and the HTTP Content-Length header based scheme. It's for supporting MCP and LSP.

[1] https://github.com/williamw520/zigjr/?tab=readme-ov-file#str...

ww520··on Boring Company cited for almost 800 environmental violations in Las Vegas
Meanwhile California is rolling back environmental laws for development.

https://www.wsj.com/us-news/california-dismantles-landmark-e...

ww520··on I regret building this $3000 Pi AI cluster
Now. Imagine a Beawulf of these...
ww520··on Meta Ray-Ban Display
A Ray Ban sunglasses can run up to $500 already.
ww520··on Scammed out of $130K via fake Google call, spoofed Google email and auth sync
It happened with Schwab. I've enabled option trading in one of my accounts and got a call from Schwab, asking to authenticate me. I told them I couldn't trust it's a legit call; give me a number and case number and I'd call back.
← PreviousPage 4 of 34Next →