HNHacker News
TopNewBestAskShowJobs

amoss

656 karma · joined June 23, 2014

Just a typical compiler enjoyer. https://github.com/amoss
submissionscomments
amoss··on The xz sshd backdoor rabbithole goes quite a bit deeper
Welp. Ok, well now my newest worst nightmare is a jira board with tickets for "Iran" and "North Korea" stuck in the wrong column and late-night meetings with "product" about features.
amoss··on After 14 years in the industry, I still find programming difficult
Did I write this? Are you me???
amoss··on Picking Unfair Fights (2021)
Summarized to "if you want to win play against losers".

Yay capitalism, I guess.

amoss··on Apple sold an estimated 180K Vision Pro units during the first pre-order weekend
No wireless. Less space than a Nomad. Lame.
amoss··on Keeping a long shell history
I've been doing something similar for years. Originally I tried to keep everything in .bash_history, but over the years and different machines it inevitably gets wiped sooner or later.

This helps (I use bash rather than zsh):

  # Sort out history$
  export HISTIGNORE="&:ls:vi:bg:fg:history"
  export HISTCONTROL=ignoredups:ignorespace
  export HISTSIZE=100000
  export HISTFILESIZE=100000
  shopt -s histappend
  shopt -s checkwinsize
But the long-term (multi-machine) solution is to keep another append-only copy, one per machine:

  function storehist() { 
  # Bug in mac version of bash stops HISTCMD getting set in function called from PROMPT_COMMAND...
  CMDCNT=`history 1 | sed -e 's/\w* *\(.*\)/\1/'`;
  if [ "$CMDCNT" != "$LASTCMDIND" ] && [ -n "$LASTCMDIND" ]  # First time, no prev, do not log random
  then
    DATE=`date '+%Y%b%d %H%M'`;
    if [ "$LASTCMDIND" != "$CMDCNT" ]
    then
        echo "$DATE $HOSTNAME:$BASHTTY $CMDCNT" >>~/.custom_history;
    fi
    LASTCMDIND="$CMDCNT";
  fi
  LASTCMDIND="$CMDCNT";
  } 
  export PROMPT_COMMAND='storehist;  ....
A little bit over the top and crusty but it has worked like that for years so I've not updated it in a while. There is a separate sync script that puts the .custom_history from each machine / container into a folder on each machine with the orginating machine name in the file-name.

This keeps ^-R working over a long period of time, but eventually that stops being a good way of find obscure commands from long ago and then something like this works:

  cat .histories/* | grep CMD | grep WERID_ARG | grep RANDOM_RELEVANT_STR | sort -u | less
The overall cost of running some script on each prompt is negliable on a modern machine and as the OP notes the disk space does not amount to much. It becomes very useful over time. I have about 20MB of shell history that stretches back to '06. It is one of things that is easy to setup, and yet the value accrues steadily over time. Across the dozen or so machines involved I doubt that the archive would have survived long-term without the step to export it outside of the shell's real history file.
amoss··on Show HN: I made a site to simplify recommending talented people to others
This reply seems a little bit pre-baked and somewhat irrelevant for the site in the link. The OP is building up a small world network of direct recommendations, i.e. it is about as far from an automated recommendation service as is possible. The warm introduction feature sounds like a simple path finding algorithm.

There may be another lens through which to view this instead of "balanced critique of technology". Describing this as "sick" seems somewhat hyperbolic.

More generally, is it really technology that makes us anonymous or is it simply an emergent property of scale? When there are millions of similar engineers out there (to use a single field as an example) relying on word of mouth, or similar non-technological approaches seems unlikely to find the best candidate with any degree of probability.

amoss··on 50 Algorithms Every Programmer Should Know (Second Edition)
Personally I'm holding out for "The ten algorithms that every programmer that needs to know 50 algorithms should know, but are dispensable for programmers that only need to know 40". I feel it could be a real gem, but when will O'Reilly deliver??
amoss··on Getting things done in small increments (2022)
The great thing about this strategy is that you won't appreciate what you have missed until it is too late to fix anyway.
amoss··on Eating fewer calories can ward off ageing
Leaning hard into what would the 25th century value, but on limited data.
amoss··on High Performance Voxel Engine (2021)
How does it handle dynamic scenes? The work by the OP looked like it took an update to the VAO/VBO if the chunk changed. What's the cost of rebuilding the acceleration structure here if the scene is updated?
amoss··on NY Times copyright suit wants OpenAI to delete all GPT instances
The idea precedes LLMs by a couple of decades and is thought to apply more broadly within ML/AI than being a specific meta for LLMs. http://prize.hutter1.net/ has been around for a while, there is a link in there to the earlier work (called AIXI?).
amoss··on Programs are games, programming is a game
Why is arithmetic not a game? Conway showed the equivalence between numbers and games. Arithmetic procedures are just wrapping a game-like structure around games.
amoss··on Programs are games, programming is a game
py3 is ok, but py2 was the best game in that trilogy.
amoss··on Supercomputer that simulates entire human brain will switch on in 2024
It's really a question of fidelity. A typical brain has on the order of 100B neurons and 100T connections. This machine can perform 228T "synaptic processes" per second so it has reached the right ballpark. A synapse can fire more frequently than once per second, so there are some orders of magnitude missing there.

The rest of it comes down to how complex their simulation steps are, and where they have losses in fidelity because they have not captured a realistic model of how the biological system works.

There is a lot of marketing hype in the title (its an SC announcement), but they can probably do something interesting with this system.

amoss··on Does uBlock Origin bypass the latest YouTube anti-adblock script?
I used to host video on a custom site, mainly lecture material for an audience of about 100-200 people so there were no economies of scale involved. A VPS with 2TB of transfer was about 10eur/m. Video was encoded for about 500MB/hr (encoders have improved, but hosting prices have probably increased so figures are just ballpark).

As a (very) small scale provider video was costing me about 0.25 cents / hour. It is certainly cheaper for a larger provider. Ad rates are not that low, the margins involved are huge.

For a premium server I would take a heavy user as a model, say 8hr/day, giving a cost of 60 cents per month. Assume processing fees and overheads are about 30%, and a user is willing to pay $10/m for a service. That still leaves $6.40 to be split between platform and content creator.

Yes, video is expensive compared to text. But in absolute terms the costs are not that expensive.

amoss··on Spotify will reduce total headcount by approximately 17%
It's the same approach in Sweden.
amoss··on Quitting the full-time poker scene
> Help me get to 1000 karma and I’ll stop posting forever.

This beautiful, it has a hook in both directions. Like a little piece of art sitting here on the site.

amoss··on Win-Vind: Vim key binder for Windows
Looking at the usage page of the docs leaves me confused. Does this rebind the ':'-key system wide??? How would that work with using the key in normal text entry fields, or in vim?
amoss··on Cities Skylines 2 runs with 20fps on an Nvidia RTX4090
Captain of Industry is pretty good fun.
amoss··on Ask HN: 20% of LinkedIn's recent layoffs were managers
Underrated.
amoss··on Forty years of programming
Rowing is fantastic for this. There is a good balance between cardio workout and strength. If your day job involves sitting in a chair for eight hours a day then the all over effect finds those muscles that you don't use very often and tones them up.
amoss··on Fake recruiter lured aerospace employee with trojanized coding challenge
To store them on a corporate device. Weirdly the requirement originated from the IT department.
amoss··on Shimano Recalls 760k Cranksets
Ahh good old Shimano 105s still trucking after ten years and unaffected.
amoss··on UK Parliament undermined the privacy, security, freedom of all internet users
What does this mean for Signal and Telegram in the UK?
amoss··on Linear code is more readable
> Source code isn't written to be executed by computers, it's written to be read by other humans.

It is pronounced "documentation".

amoss··on Some flying robot behavior improvements
It's called Steamdeck Midnight Special by impish. Mouse+gyro on right pad. Various controls on the buttons, left joystick press to enter/exit vehicles and switch modes. Left mouse on left side (not the default swap) and extra precision on a soft pull. Enjoy
amoss··on Some flying robot behavior improvements
I hate to tell you, but once you sort out a decent control scheme it plays really well on the steam deck. There are enough buttons to cover everything, it's mainly case of working out what is most logical to you personally so that you don't have to think about it. Gyros for the mouse, and a mode switch on soft-pull LMB to increase precision help a lot.
amoss··on The End of the Googleverse
Google understood a long time ago that they could not beat SEO, and have been fighting a losing battle ever since. I remember a research presentation from them (might have been late 00s or early 10s) in which they wanted to know: we have an adversary with unlimited resources who can create as many webpages and servers as they want. How do we detect pages in "their" internet as opposed to pages in the "real" internet. The basic answer at the end of the seminar was - you can't. There is no information-theoretic way to do it on the structure of the graph. Instead you need to follow chains of trust, which means that you need roots of trust, which means .... look at the web today, dominated by a handful of known platforms.
amoss··on Twitter/X has removed all media posted before 2014
It really is easier to refer to it as ex-twitter.
amoss··on I am afraid to inform you that you have built a compiler (2022)
Don't hate the player, hate the game.
← PreviousPage 5 of 9Next →