News for hackers. Stuff that matters.

geoffhill

Re:Claude Advanced Tool Use on Monday November 24, 2025 @07:24PM (#46041000)
One of my agents is kinda like this too. The only operation is SPARQL query, and the only accessible state is the graph database.

Since most of the ontologies I'm using are public, I just have to namedrop them in prompt; no schemas and little structure introspection needed. At worst, it can just walk and dump triples to figure out structure; it's all RDF triples and URIs.

One nice property: using structured outputs, you can constrain outputs of certain queries to only generate valid RDF to avoid syntax errors. Probably can do similar stuff with GraphQL.

Re:My first verified imperative program on Monday July 07, 2025 @06:48PM (#44495373)
Both Clang and GCC have musttail attributes than can force tail calls at specific return statements in C/C++.
Re:Chatbot Software Begins to Face Fundamental Limitations on Sunday February 02, 2025 @12:01AM (#42905986)
Idk, `o3-mini-high` was able to pop this Prolog code out in about 20 seconds:

  solve(WaterDrinker, ZebraOwner) :-
      % H01: Five houses with positions 1..5.
      Houses = [ house(1, _, norwegian, _, _, _),  % H10: Norwegian lives in the first house.
                 house(2, blue, _, _, _, _),       % H15: Since the Norwegian lives next to the blue house,
                 house(3, _, _, milk, _, _),        %       and house1 is Norwegian, house2 must be blue.
                 house(4, _, _, _, _, _),
                 house(5, _, _, _, _, _) ],
  
      % H02: The Englishman lives in the red house.
      member(house(_, red, englishman, _, _, _), Houses),
      % H03: The Spaniard owns the dog.
      member(house(_, _, spaniard, _, dog, _), Houses),
      % H04: Coffee is drunk in the green house.
      member(house(_, green, _, coffee, _, _), Houses),
      % H05: The Ukrainian drinks tea.
      member(house(_, _, ukrainian, tea, _, _), Houses),
      % H06: The green house is immediately to the right of the ivory house.
      right_of(house(_, green, _, _, _, _), house(_, ivory, _, _, _, _), Houses),
      % H07: The Old Gold smoker owns snails.
      member(house(_, _, _, _, snails, old_gold), Houses),
      % H08: Kools are smoked in the yellow house.
      member(house(_, yellow, _, _, _, kools), Houses),
      % H11: The man who smokes Chesterfields lives in the house next to the man with the fox.
      next_to(house(_, _, _, _, _, chesterfields), house(_, _, _, _, fox, _), Houses),
      % H12: Kools are smoked in a house next to the house where the horse is kept.
      next_to(house(_, _, _, _, horse, _), house(_, _, _, _, _, kools), Houses),
      % H13: The Lucky Strike smoker drinks orange juice.
      member(house(_, _, _, orange_juice, _, lucky_strike), Houses),
      % H14: The Japanese smokes Parliaments.
      member(house(_, _, japanese, _, _, parliaments), Houses),
      % (H09 is built in: Milk is drunk in the middle house, i.e. house3.)
      
      % Finally, find out:
      % Q1: Who drinks water?
      member(house(_, _, WaterDrinker, water, _, _), Houses),
      % Q2: Who owns the zebra?
      member(house(_, _, ZebraOwner, _, zebra, _), Houses).
  
  right_of(Right, Left, Houses) :-
      nextto(Left, Right, Houses).
  
  next_to(X, Y, Houses) :-
      nextto(X, Y, Houses);
      nextto(Y, X, Houses).
Seems ok to me.

   ?- solve(WaterDrinker, ZebraOwner).
   WaterDrinker = norwegian,
   ZebraOwner = japanese .
Re:Honey, YouTubers Are Poisoning the Kids on Monday September 23, 2024 @01:44PM (#41628621)
I found myself empathizing more with MrBeast and his kid audience than the grump who wrote this article.
> When we use the $10B satellite that took 25 years to build, we must be secretive about why we point it at a certain part of the sky.

> Then we must gatekeep all data for up to a year, in order to better take personal credit for the findings.

> This will help accelerate scientific progress in the long run.

Statements dreamed up by the utterly deranged.

You're gonna want that TrueCoat though...
Re:All public GitHub code was used in training Copilot on Thursday July 08, 2021 @03:03PM (#27776369)
> not copying and pasting code

https://news.ycombinator.com/item?id=27710287

Re:Watchy: Hackable $50 Smartwatch on Tuesday March 02, 2021 @05:24PM (#26321889)
For cheap esp32-based smartwatches and wristbands, I've had good success with LILYGO and the esp-idf toolchain.

$18 T-Wristband: https://www.aliexpress.com/item/4000527495064.html

$26 T-Watch-2020: https://www.aliexpress.com/item/4000971508364.html

esp-idf: https://github.com/espressif/esp-idf

Re:Ask HN: How do you RSS? on Friday June 19, 2020 @03:02PM (#23577798)
I use NewsBlur in Firefox and via the Android app, and I'm very happy with it.
Re:Popcount CPU instruction on Monday September 09, 2019 @01:10AM (#20915352)
I like popcount for converting a 2^N-bit uniformly-distributed random number into a N-bit binomially-distributed one. Each bit of the input simulates a random coin flip.
Re:Software Engineering at Google (2017) on Friday January 04, 2019 @04:02PM (#18827581)
None of the other replies try to explain specifics of how this works, so let me illustrate an example of two teams collaborating to add Feature X to the monorepo without branching:

1) Team A checks in their code to provide Feature X. Their code is not used anywhere in the codebase yet, however full unit test coverage exists for the public API; this is required for code review.

2) Team B checks in their code to turn on Feature X in their product, gated under a command-line flag which by default uses the old behavior.

3) Team B checks in an integration test that flips the flag and makes sure everything works as planned.

4) If Team B requires changes to Feature X to get expected behavior, they communicate those changes to Team A and someone from either team (using available human resources) makes the changes.

5) Team B checks in a small change to flip the flag by default.

6) Team B monitors their product. If things go awry, only the very latest change is reverted and repeat (4).

7) Once stability is achieved, Team B checks in a change to remove the flag.

Re:Introducing the Intel Galileo Development Board on Thursday November 07, 2013 @06:45AM (#6688843)
Most notably missing from this page: how, where, and when can I get one?
I like this idea a lot!

A less powerful solution implemented completely locally: A "known_hosts" file for SSL certificates for repeat visits. As long as you've visited a site once before, any subsequent visits will be safe.

To deal with certificate upgrades, certificate Y could present a signed verification that it obsoletes a past certificate X. Then, when a client that trusts certificate X receives certificate Y, it can update its "known_hosts" file accordingly. This change would require more than just local changes, but remote cooperation.

Here's the actual commit that was reverted, for anyone curious like me: http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/com...

Doesn't exactly seem like a lot of work to support this.

Re:CDN vs S3 on Saturday May 18, 2013 @04:49PM (#5730417)
Amazon Web Services does offer a worldwide CDN, CloudFront. http://aws.amazon.com/cloudfront/
Re:Chicken Scheme on Friday March 15, 2013 @01:19PM (#5381698)
Racket supports running multiple (sometimes incompatible) dialects of Scheme through the use of a #lang directive.

If you prefix your program with "#lang racket", you get the definitions for the full Racket language, with all of the extensions and libraries that Racket provides.

But if you want to preserve compatibility with the standard and with other implementations, you can prefix your program with "#lang r5rs". It derives from the same base language as Racket.

http://docs.racket-lang.org/r5rs/r5rs-mod.html

Re:Valve Finds Value In Open-Source Drivers on Friday August 31, 2012 @03:54PM (#4461400)
> Valve has granted these Intel Linux developers complete access to the game's source-code, including the Source Engine. This has allowed Intel's Linux developers to better investigate possible optimizations and tweaks to their driver in order to enhance Source-powered games. Valve has even given them commit access to push back changes to the game company.

That sure is something EA and Ubisoft wouldn't do in a million years.

Re:JRE & JDK now available to OS X developers on Tuesday August 14, 2012 @05:21PM (#4383126)
So speaking just in terms of the JRE, is there any reason to download it from Oracle instead of Apple? A separate Oracle updating program is a much less elegant solution than the current Software Updates integration that Apple uses.
Just go into your About Me and enable "hidden from timeline" for the @facebook.com email address. Now everything is back to normal.
This attitude is extremely anticompetitive. Big guys like Craigslist need to give away their customer base just because they're big? That doesn't make sense to me.
Re:Back That Gmail Up on Sunday May 27, 2012 @10:10PM (#4031669)
> "It's hosted on SourceForge, just kidding that was weird and scary"

How the world has changed...

Re:Things Not Strings -- Google Launches Knowledge Graph on Wednesday May 16, 2012 @01:40PM (#3983094)
More clutter.
Re:Why Android should switch to Go on Tuesday May 15, 2012 @02:18PM (#3977939)
Probably a much better idea with the gift of hindsight. However, Objective-C is more than 28 years old, and Go is just 3 years old at time of writing. The Go language has changed and continues to change a lot, and tying such a large platform to it before it is ready would make backwards-compatibility a huge concern for Go, and stifle its innovative growth.
This article makes no mention of SOPA. The title doesn't correspond to the article. ACTA is a more appropriate analogue, according to the story.
Re:Linus Torvalds won't do github pull requests on Friday May 11, 2012 @05:04PM (#3961396)
Don't sweat it; Linus's needs are far different from the rest of us. We're talking about the guy here who made Git just to have a tool that perfectly conformed to his ideal kernel development process. Since his job is basically to be a full-time pull request approver, it makes sense that he would be extremely specific about the format to improve his efficiency.
No, Dirac is based on wavelet transforms, which have different math behind them, not using Fourier transforms. This Sparse Fourier Transform (which the authors are now calling the sFFT) would be more useful for traditional FFT/DCT compression algorithms. Though for the most part, the hardware for even very complicated real-time Fourier-based compression (H.264, HD) already exists.

Older »