HNHacker News
TopNewBestAskShowJobs

ww520

10,762 karma · joined February 10, 2010

submissionscomments
ww520··on Human coders are still better than LLMs
The value of LLMs are as a better Stackoverflow. It’s much better than search now because it’s not populated with all the craps that have seeped through over time.
ww520··on Outcome-Based Reinforcement Learning to Predict the Future
It’s the next state. So instead of spitting out words, it will spit out a whole movie, or a sequence of world states in a game or simulation.
ww520··on Why Algebraic Effects?
> can a mainstream language adopt the algebraic effects (handlers?) without creating deep confusion or a new language should be built from the ground up building on top of these abstractions in some form.

Algebraic Effect is a variant/enhancement of dependency injection formalized into a language. Dependency injection has massive usage in the wild for a long time with just library implementation.

ww520··on Why Algebraic Effects?
Also dependency injection.
ww520··on Why Algebraic Effects?
It's different. Hooks in React is basically callback on dependency of state changes. It's more similar to the signaling system.
ww520··on Emacs dired-mode as a file manager
Yes, I like to focus on one thing, too. That's why I usually only have one window and one buffer open to work on. The list-detail split view mode is when I want to quickly browse the files in a directory, like when I'm looking into a unfamiliar project.
ww520··on Emacs dired-mode as a file manager
Yes, that works but the view window takes up the whole frame. I want the dired window remains and the cursor/focus to remain in the dired window so that I can go down the file list and see the file content on the other window. Ctrl-n and ctrl-o are all I need to do.
ww520··on Emacs dired-mode as a file manager
Yes. dired-find-file-other-window is the one I found annoying. It moves the cursor/focus to the other window, and it keeps opening new split windows. If I ran the cmd 3 times, it would open 3 new split windows. Really annoying.

I want the cursor/focus to remain on the dired window so that I can go down the file list and see the file content on the other window. Ctrl-n and ctrl-o are all I need to do.

ww520··on Emacs dired-mode as a file manager
In dired-mode, I want to have a split view of the directory listing on the left window and to quickly browse the content of each file on the right window. The default file visit command keeps opening a new window for each file which needs closing. It's really annoying. I put the following in init.el file and bind it to a key. It loads the current file under the cursor in the next existing window on right, on left, above, below, or opening a new window as needed.

  ;; In dired mode, visit the file at the cursor in the right/below/left/above window.
  (defun my-dired-display-direction ()
    (interactive)
    (let* ((file-or-dir (dired-get-file-for-visit))   ;; get the file at cursor
           (buffer (find-file-noselect file-or-dir))) ;; load the file into a buffer
      (let ((window                                   ;; figure out the window to use
             (cond ((get-buffer-window buffer (selected-frame)))
                   ((window-in-direction 'right))     ;; try window in each direction
                   ((window-in-direction 'below))     ;; and default to right
                   ((window-in-direction 'left))      ;; if no window found.
                   ((window-in-direction 'above))
                   (t (split-window (selected-window) nil 'right)))))
        (window--display-buffer buffer window 'window nil)
        window)) )
  
  ;; Bind ctrl-o to display at direction.
  (define-key dired-mode-map (kbd "C-o") 'my-dired-display-direction)
ww520··on For algorithms, a little memory outweighs a lot of time
Cryptographic hashing collisions are very very small, like end of universe in numerous times small. They're smaller than AWS being burnt down and all backups were lost leading to data loss.
ww520··on For algorithms, a little memory outweighs a lot of time
The hash collision chance is extremely low.
ww520··on For algorithms, a little memory outweighs a lot of time
Can use cryptographic hashing.
ww520··on For algorithms, a little memory outweighs a lot of time
The idea is not too far off. You could compute a hash on an existing data block. Store the hash and data block mapping. Now you can use the hash in anywhere that data block resides, i.e. any duplicate data blocks can use the same hash. That's how storage deduplication works in the nutshell.
ww520··on The Value Isn't in the Code
Yes sure, the code might be unreadable but it’s the working copy that any changes based on and run against. Throwing it away and recreating the changes in vacuum would be very difficult.
ww520··on The Value Isn't in the Code
While people and organizational knowledge are important, I have to disagree with the article. Code has value, tremendous value in fact. It’s the only record of truth of a software product. The code of a working product records the decisions, the designs, solved problems and solved mistakes during the development. Software development is not just writing the code. The code is the end product of the development process which can be long and arduous. Yes. It can be reproduced with skill, time and money, but it can be prohibitively expensive. Thus lays the value of the code.

Edit: case in point, Sybase created the SQL Server. During one of the due diligence of business partnerships with Microsoft, Microsoft “borrowed” a copy of the source code (not sure about the details). After much legal wrangling, Sybase was forced to license it to Microsoft due to the loss of leverage. Microsoft released it as MS SQL Server. It took years and years of work for Microsoft to finally replace the code piece by piece.

ww520··on The NSA Selector
Can be downsampled for the purpose. It's just noise after all.
ww520··on The NSA Selector
Good for network wiring diagnostic. It would be great if it can pipe the noise to Bluetooth audio. I can pair a headphone to it, plug this into the network in another room and still can hear it while checking the line connections on the switch/router.
ww520··on Starcloud
Space is really good low temperature compute. It’s perfect for hosting quantum computers.
ww520··on Prolog's Eternal September (2017)
That's amazing.
ww520··on Prolog's Eternal September (2017)
20 years ago I had the same thought. I actually started implementing the Rete algorithm. Midway through I realized, “hey, this is just relational algebra. May be I can integrate it in a relational DB engine. Use rows in tables as facts and materialized views as generated facts.” It soon spin out of scope and I lost interest. Later I did use what I learned to build a rule based event processing engine.
ww520··on Databricks in talks to acquire startup Neon for about $1B
If they are making money, there is no pressure to raise money from IPO.
ww520··on Why I stopped angel investing after 15 years (and what I'm doing instead)
She got 1% of the pre-firesale valuation. Fire sale happened. Preferred liquidation of the later round investors probably took most of the sale's proceed, and she got nothing, along with all the founders and employees. It had happened to me a number of times, and I have been disillusioned a long time ago.
ww520··on We fell out of love with Next.js and back in love with Ruby on Rails
For my most recent project, it was Spring Boot with Java at the backend and Solid.js at the frontend, with REST api in the middle. It has work very well. Solid has a very solid signal based React-style stack. Spring Boot is mature and stable that covers pretty much everything you need at the backend. The only wrinkle is we need to connect to a number of different database systems and the default DataSource can’t do the job. We ended up writing our own multi tenant datasource. We code gen most of the backend code for the hundreds of db tables. The path from DB to the frontend is automated. The whole project took 4.5 months with 1.5 junior developers and .5 architect and senior dev. One advantage is the business side has been nailed solid, with firm spec and feature sets.
ww520··on Why I stopped angel investing after 15 years (and what I'm doing instead)
Sold at a fire sale.
ww520··on Show HN: I built a synthesizer based on 3D physics
Wow. This is so cool. It opens up a different approach to the problem.
ww520··on Google is hurting new apps that have less users than competitors
"frequently returned item" = "frequently uninstalled app"

Fewer installed is not it.

ww520··on Show HN: A pure WebGL image editor with filters, crop and perspective correction
Excellent work. The UI looks very clean and functional. It's feature packed. Good choice on using WebGL. It has support everywhere in most if not all browsers.
ww520··on Berkeley Humanoid Lite – Open-source robot
Micro mouse is a good way to get into robotic.
ww520··on Ask HN: My CEO wants to go hard on AI. What do I do?
Without knowing more it’s hard to come up with specifics. There are different ways to play the AI game, from framework/architecture, model, data, fine tuning, to simple integration. You can do as simple as writing a mcp server to interface with your product and call it AI enabled.
ww520··on ClickHouse gets lazier and faster: Introducing lazy materialization
That’s true. With such a small data domain, there would be a lot repeated numbers in the 160M values, leading to highly compressible data.
← PreviousPage 7 of 34Next →