News for hackers. Stuff that matters.

teoryn

Show HN: I made an AI agent write a spoiler-free wiki for the novel Anathem

https://avoutarchive.com/wiki/

I made an LLM agent build a spoiler-free wiki about a novel where the reader can select the latest chapter they've read, and then see pages written with only contents of the book up to that chapter.I've wanted something like this since I read The Wheel Of Time a decade ago. Reading epic fantasy and other novels comes with needing to remember a lot of characters and places etc, sometimes over...

( Read More... | no comments | on HN )
Re:So you've installed `fzf`. Now what? on Tuesday March 21, 2023 @08:24PM (#35254898)
I like `<editor> <ctrl-t>`; ctrl-t opens fzf and pastes any selected files onto the command line. If you choose to abort you end up back at the prompt after `<editor> `.
Re:Divergent Association Task: Fast creativity test on Sunday May 01, 2022 @10:38PM (#31230858)
You might enjoy Semantle: https://semantle.novalis.org/
Re:A barber shop on wheels that you book via an app on Sunday March 31, 2019 @04:45AM (#19534543)
I use a strip of electrical tape.
Re:Benchmarking Rust with Project Euler Solutions on Saturday August 30, 2014 @01:17PM (#8246958)
What's the reason for 'asm("");' in 002.c (and other c codes)? All I can see that doing is intentionally breaking the compiler's ability to optimize over loop iterations, which puts rust a huge advantage over c.
Re:CUDA Pro Tip: Optimize for Pointer Aliasing on Friday August 22, 2014 @10:09AM (#8212137)
Shouldn't it be 'float * restrict a'?

When could one get into trouble thinking that "restrict == this will not alias"? If X is never modified during B it seems like aliasing wouldn't cause any problems.

Since restrict means nothing if no value in it is modified, would it be reasonable and possible for the compiler to issue a warning in cases like example1?

Re:Autopsy of GCC 4.6.3 compiler bug on Raspberry Pi on Sunday June 15, 2014 @12:19PM (#7895555)
Nah, I'd just like to take a look at it, but you might be able to get someone else to use it on ARM compilers if you release it.
Re:Autopsy of GCC 4.6.3 compiler bug on Raspberry Pi on Sunday June 15, 2014 @12:26AM (#7894372)
Have you or will you be releasing code for Orion?
Re:Spaced Repitition on Sunday April 06, 2014 @12:56AM (#7539820)
It should be alternating lines with red, black and blue not greys, it's to increase reading speed: http://www.beelinereader.com/
Re:Surgical Precision JIT Compilers [pdf] on Monday March 31, 2014 @04:43PM (#7504020)
Aliasing information is one place the programmer can help the compiler. The 'restrict' keyword in C/C++ is a great example of this. Also information provided by 'const' can be very helpful for the compiler. While both of these aren't strictly hints because they limit what you can do and still get correct results, they do tell the compiler facts that would be otherwise difficult or impossible to prove.
Re:404 - File not found on Sunday December 15, 2013 @12:59AM (#6908543)
It's visible in view source:

  "The requested document is no more.",
  'No file found.',
  "Even tried multi.",
  "Nothing helped.",
  "I'm really depressed about this.",
  "You see, I'm just a web server...",
  "-- here I am, brain the size of the universe,",
  "trying to serve you a simple web page,",
  "and then it doesn't even exist!",
  "Where does that leave me?!",
  "I mean, I don't even know you.",
  "How should I know what you wanted from me?",
  "You honestly think I can *guess*",
  "what someone I don't even *know*",
  "wants to find here?",
  "*sigh*",
  "Man, I'm so depressed I could just cry.",
  "And then where would we be, I ask you?",
  "It's not pretty when a web server cries.",
  "And where do you get off telling me what to show anyway?",
  "Just because I'm a web server,",
  "and possibly a manic depressive one at that?",
  "Why does that give you the right to tell me what to do?",
  "Huh?",
  "I'm so depressed...",
  "I think I'll crawl off into the trash can and decompose.",
  "I mean, I'm gonna be obsolete in what, two weeks anyway?",
  "What kind of a life is that?",
  "Two effing weeks,",
  "and then I'll be replaced by a .01 release,",
  "that thinks it's God's gift to web servers,",
  "just because it doesn't have some tiddly little",
  "security hole with its HTTP POST implementation,",
  "or something.",
  "I'm really sorry to burden you with all this,",
  "I mean, it's not your job to listen to my problems,",
  "and I guess it is my job to go and fetch web pages for you.",
  "But I couldn't get this one.",
  "I'm so sorry.",
  "Believe me!",
  "Maybe I could interest you in another page?",
  "There are a lot out there that are pretty neat, they say,",
  "although none of them were put on *my* server, of course.",
  "Figures, huh?",
  "Everything here is just mind-numbingly stupid.",
  "That makes me depressed too, since I have to serve them,",
  "all day and all night long.",
  "Two weeks of information overload,",
  "and then *pffftt*, consigned to the trash.",
  "What kind of a life is that?",
  "Now, please let me sulk alone.",
  "I'm so depressed."
Re:Our 1-year project: MercuryPuzzle. What do you think? on Thursday March 28, 2013 @05:03PM (#5457597)
In level 9 rank (among contacts and global) is shown, but percentile would be more interesting.
Re:Mona Lisa in 50 polygons, using a genetic algorithm (2008) on Wednesday December 12, 2012 @10:07PM (#4913929)
Here's how I did it: https://bitbucket.org/teoryn/image-approximation

For converting the polys to pixels I render it with OpenGL and then extract the resulting image. I use ppm for both input and output, they're just a plain text file, and any decent image editor can convert to or from them.

Re:Postgres Performance: To avg or To sum/count on Thursday November 15, 2012 @11:23AM (#4789256)
The faster version looks like it might not be numerically stable; if sum(l_quantity) is greater than the maximum value that can be represented it would overflow and give meaningless results. Given the arrays mentioned by the average function, it could also be maintaining a heap and adding the numbers from smallest to largest for more stability.
Re:Small functions to functionally augment ruby. on Friday September 09, 2011 @09:59AM (#2978093)
Naive fibonacci is a much more interesting example for memoize than factorial:

    fib = +lambda {|n| return 1 if n <= 1; fib[n-2] + fib[n-1]}
Re:Programmers Survey on Wednesday August 31, 2011 @05:26PM (#2947627)
I fully agree it's satire or a really bad survey, but that doesn't disqualify Ubuntu from being an operating system.
Re:Programmers Survey on Wednesday August 31, 2011 @02:55PM (#2947007)
How is Ubuntu not an operating system?
Re:Retiring a Great Interview Problem on Monday August 08, 2011 @10:56AM (#2860240)
From the problem definition:

Q: What if there are multiple valid segmentations? A: Just return any valid segmentation if there is one.