Hacker Newsnew | past | comments | ask | show | jobs | submit | None4U's commentslogin

Yeah, having the expansion rule operate on operators that are clearly not transitive serves no purpose (1 < 2 < 3 is at least a math notation)


What are the odds you write a binary search that you'll use more than once instead of just running it and writing down the result?


I once needed to write binary search for a microcontroller in C (no libraries). The routine ran about every hour, with appx 4M data points.


I once worked lots of projects in C, microcontrollers, embedded systems etc. It was a start up.

Every time I needed to write something algorithmically demanding, I could do it in a day or two. Im not into Leetcoding, or competitive coding.

Most regular everyday programmers can work these things out in one or two workdays.

Its definitely not like the competitive programmers say, like if you aren't into this full time, at the time you need to write something you won't have access to time, internet and even an IDE and have to write the code in a Google doc(which needs internet connection, when I pointed this out in the interviews they didn't like it).


That's a very surprising angle of questioning. Are you writing some sort of compile-time-only programs?


I have an object representing piecewise linear functions, defined by a sequence of (x_i, y_i) tuples. It has a method to evaluate y for a given value of x. The first step is to find the least i for which x_i is greater than or equal to x: this uses a binary search. Initially, I stored the x values in a separate array and used dotnet's inbuilt Array.BinarySearch. Later I removed this array to save on memory and it now runs a handbuilt binary search on the first items of the array of points instead.


About 100%?

When do you write code that doesn't need to search? (Unless you hand it all to the database, in which case... sure, you're good)


For Apple's own `container`[1], just remove the `--platform linux/arm64` part, like this:

  container run -it --rm -v "$(pwd):/workspace" ghcr.io/simonw/alpine-edit
I did have to resize my terminal for this to work, but that could be a terminal emulator issue.

[1] https://github.com/apple/container


This was harder to quit than vim. ctrl-f didn't work and there's no alt on my keyboard; hard pass.


I don't understand. You don't have an option key, either?

Or are you not on a Mac, PC, or Chromebook?


On a macbook pro, option key just gave me a ƒ symbol, both in Terminal.app and Ghostty. Anyways, if that was meant to be alt and it requires setup to work, then it's not worth the effort.


Terminal.app has a setting "Use Option as Meta Key" that needs to be enabled. It's under the Edit menu as well as in Settings > Profiles > Keyboard (if you want, you can click use Command-A to select all the profiles to apply the change to all of them at once). Ghostty will have a similar option.

Also surprised you haven't encountered this earlier, given it affects all usage of Alt in the terminal.


Never had a reason to use alt or F-keys; I deliberately avoid them because they're not easily accessible by all terminals. Only programs I've seen these days use it are emacs and this edit program.


There was a post on HN a bit ago from someone who used o3 to find a vulnerability in the Linux kernel's SMB server, which this person is just saying should've been tried earlier and probably recently became possible


The game https://corru.observer/ is a great example of a CSS-rendered 3D video game that runs fairly well on modern devices (even playable on mobile although it'll try to block you based on viewport size if you're not in "desktop mode")


There's already an element <hr> "horizontal rule" in HTML


I imagine something like neither case (of getting arrested for such) would be good


That some may consider FOIA a source of "government inefficiency", perhaps


I've not noticed this


I suspect that means they wrote the memory parser using Claude (the Twitch description also mentions the LLM getting specific info)


I doubt any of those are short enough to have their own tokens


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: