frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Bold linker v0.2.0 release – bold just got faster

https://github.com/kubkon/bold/releases/tag/v0.2.0
1•todsacerdoti•1m ago•0 comments

The rules-based world order is in retreat and violence is on the rise

https://www.theguardian.com/news/ng-interactive/2025/may/10/are-we-heading-for-another-world-war-or-has-it-already-started
2•prmph•3m ago•0 comments

Bret Victor – The Future of Programming (2013) [video]

https://vimeo.com/71278954
1•rapnie•5m ago•0 comments

RPG in a Box

https://rpginabox.com/
2•skibz•12m ago•0 comments

Show HN: Voice Cloning from American English to Indian Langs

https://sarypslabs.com
1•siddhartha_soma•12m ago•0 comments

Countries could use forests to 'mask' needed emission cuts: Report

https://phys.org/news/2025-04-countries-forests-mask-emission.html
1•PaulHoule•12m ago•0 comments

Pakistan/India accuse each other of striking military bases in major escalation

https://www.theguardian.com/world/live/2025/may/10/pakistan-says-three-air-bases-attacked-by-indian-missiles-live-updates
1•spzx•13m ago•0 comments

Factorio lets fix video #1 – kovarex

https://www.youtube.com/watch?v=AmliviVGX8Q
1•sensanaty•14m ago•0 comments

Dia – Executive Assistant Waitlist is now live

1•AnshulT•15m ago•0 comments

Cosmos 482 Descent Craft tracker

http://astria.tacc.utexas.edu/AstriaGraph/
2•Kaibeezy•18m ago•0 comments

CT scans don't lie–cigarettes are harder on the lungs than marijuana

https://healthimaging.com/topics/medical-imaging/computed-tomography-ct/ct-scans-dont-lie-cigarettes-are-harder-lungs-marijuana
2•XzetaU8•21m ago•0 comments

The US has 1,001 measles cases and 11 states with active outbreaks

https://www.independent.co.uk/news/montana-new-mexico-ohio-oklahoma-pennsylvania-b2748266.html
2•amarcheschi•22m ago•0 comments

Google is bringing automatic passkey upgrades to Android (APK teardown)

https://www.androidauthority.com/google-automatic-passkey-upgrades-android-apk-teardown-3555935/
1•unigiri•23m ago•0 comments

Quiz Machine – Simple and quick indie AI live quiz generator

https://www.quiz-machine.com/en
1•kurgandev•25m ago•1 comments

Unveiling the Future of Graphics: 'Zorah' UE5 Path-Tracing Demo with RTX 5090

https://www.mmfooty.com/nvidia-108gb-ue5-path-tracing-demo-zorah/
1•lamariexa•26m ago•0 comments

A conversation with Jony Ive [video]

https://www.youtube.com/watch?v=wLb9g_8r-mE
1•tosh•27m ago•0 comments

Show HN: ToolRegistry – A Python Library for Structured Tool Integration

https://github.com/Oaklight/ToolRegistry
2•Oaklight•39m ago•1 comments

After 16 years, we're renewing the StackOverflow Brand

https://meta.stackexchange.com/questions/408823/after-16-years-we-re-renewing-the-brand
10•walterbell•52m ago•0 comments

Everything You Need to Know About Sparkle's Upcoming 24GB Arc Battlemage GPU

https://old.reddit.com/r/intel_arc_graphics/comments/1kj5906/sparkle_teases_arc_battlemage_gpu_with_24gb/
1•lamariexa•52m ago•0 comments

End of History – Francis Fukuyama (1992)

https://www.jstor.org/stable/24027184
2•thunderbong•53m ago•1 comments

5 Steps to N-Body Simulation

https://alvinng4.github.io/grav_sim/5_steps_to_n_body_simulation/
1•dargscisyhp•54m ago•0 comments

Ash (Almquist Shell) Variants

https://www.in-ulm.de/~mascheck/various/ash/
4•thefilmore•1h ago•0 comments

'Just Write Great Content' Is the Worst SEO Advice You'll Hear

https://news.seoforfounders.com/p/seo-myth-busting-1-great-content-ranks-itself
4•contctlink•1h ago•2 comments

So Yeah – I hate useEffect

https://substack.com/inbox/post/163261746
1•hmontazeri•1h ago•0 comments

15 Years of Shader Minification

https://www.ctrl-alt-test.fr/2025/15-years-of-shader-minification/
1•laurentlb•1h ago•0 comments

Apple hits back at US judge's 'extraordinary' contempt order

https://www.bbc.com/news/articles/c3r8rg4w2v0o
4•chrisjj•1h ago•0 comments

EM-LLM: Human-Inspired Episodic Memory for Infinite Context LLMs

https://github.com/em-llm/EM-LLM-model
2•jbotz•1h ago•0 comments

Model Context Protocol (MCP) Clearly Explained

1•Arindam1729•1h ago•0 comments

Show HN: Codigo – The Programming Language Repository

https://codigolangs.com
3•adamjhf•1h ago•0 comments

A whippet waypoint / Nofl: A Precise Immix

https://wingolog.org/archives/2025/05/09/a-whippet-waypoint
1•matt_d•1h ago•0 comments
Open in hackernews

How to Average in Prolog (2017)

https://storytotell.org/how-to-average-in-prolog
72•todsacerdoti•2d ago

Comments

danilafe•2d ago
This is a strange article to me. I've not seen any class that teaches Prolog place these constraints (use recursion / don't add new predicates) or even accidentally have the outcome of "making prolog look tedious". What's the joke here?

That aside, I wonder if getting the reverse solution (sum(?, 10)) is better served by the straightforward or the tedious approach. I suspect both would work just the same, but I'd be curious if anyone knows otherwise.

7thaccount•2d ago
I found the article to be hilarious.

It's existence obviously means some professor didn't allow them to use the standard library and they tongue in cheek show how irritating that is.

I'm sure it's possible they made it up, but we had similar restrictions where I could use an Arduino for my engineering Senior Design Project in college, but no Arduino or module libraries - just our own C. We passed, but barely. It also was weird as it didn't match how normal people would solve the problem.

Jtsummers•2d ago
Yeah, this line made it click:

> Now this is starting to look like Professor of Programming Languages code!

A lot of tier 2/3 CS schools with programming language courses (a survey of multiple languages across various paradigms) teach Prolog this way (and I've seen some fantastically terrible examples of Lisp code coming out of those same courses). It's unfortunate because, at these schools, this is often the only formal course where students branch out of C/Java/C++/C#/Python/JS (and they may only get 2-3 of those over the rest of their courses). It leaves the students with a gross misunderstanding of the languages and dread when they see them again.

Blackthorn•2d ago
There's nothing wrong with teaching like that. If the class is supposed to teach you something that isn't just "use the stdlib", then it makes sense to ban it.
7thaccount•1d ago
I'm guessing the author is aware and just venting. It doesn't make it less frustrating though. It's almost like someone asking you to dig a hole with chopsticks.
seba_dos1•2d ago
> It also was weird as it didn't match how normal people would solve the problem.

If I can solve a problem by building from preexisting LEGO blocks then I'll probably do that, but it wouldn't be a valuable learning exercise. Students aren't being given problems in need of effective solution, these problems are tools to facilitate understanding.

What you described could be pointless if it made you work on reimplementing trivial stuff that you'd already mastered long time ago instead of focusing on actual problem. Writing your 100th hashmap implementation or yet another I2C driver isn't particularly valuable. Since you mentioned "barely passing", I don't think that was the case though.

7thaccount•2d ago
It's one of those projects where you never have enough time throughout the year. Coding what we did from scratch wasn't very easy either. I could now probably do the coding in a weekend with the right library code. You learn something either way I guess.
yuye•1d ago
>I'm sure it's possible they made it up, but we had similar restrictions where I could use an Arduino for my engineering Senior Design Project in college, but no Arduino or module libraries - just our own C.

When I started compsci, it was the first year of a all-new curriculum for CompSci.

Literally the first week: We had to program an Arduino to play a song on a speaker by toggling GPIO, within a week. No assembly or any of that high-level mumbo-jumbo. We had to read the datasheet, look at the instructions and write the hex representation for each instruction in a txt file.

We had a "linker" tool: It took a basic bootloader (containing some helper functions for GPIO), turned our hex-txt file into actual binary, then just copies that to a set address. The bootloader did nothing more than init the GPIO pins and jump into our code.

We were given the locations of where these helper functions lived, nothing else.

It was to give a quick and intimate understanding of how CPUs actually work and why we use compilers and stuff. It worked really well, but it was so much of a pain that they changed it to allow students to use asm a year or two after.

tengwar2•1d ago
<Four Yorkshiremen accent>

You were lucky! We had to design and build the computer out of Z80-family components first before we could play around in binary.

There was actually a reason - this was back in '83/84 in a physics lab, and the idea was to be able to build your own logging / control device. PCs existed, but were terribly expensive.

floxy•2d ago
>getting the reverse solution (sum(?, 10))

Doing an "all modes" predicate:

  sum_list(List,Sum)
...where...

  sum_list([1,2,3], 6)
...is "True" as expected would probably be a pretty interesting exercise if you wanted to be able to get all of the lists. You'd probably need to do an "enumerate the rationals" type of thing, since you need to go to infinity in a couple of different directions at the same time. That is, you can't do nested loops/recursing:

   for(x=-∞; x<∞; ++x) {
       for(y=-∞; y<∞; ++y) {
i.e.

   sum_list([],0).
   sum_list([L|Ls],BigSum) :- sum_list(Ls, LittleSum), add(L,LittleSum,BigSum).
...with an all-modes "add/3". Since there are an infinite supply of pairs that add up to, say 10:

       ⋮
    [12,-2]
    [11,-1]
    [10, 0]
    [ 9, 1]
    [ 8, 2]
       ⋮
    [ 0,10]
    [-1,11]
    [-2,12]
       ⋮
...and you can also go to arbitrary list lengths:

  [10]
  [1,9]
  [1,1,8]
  [1,1,1,7]
   ⋮
  [1,1,1,1,1,1,1,1,1,1]
   ⋮
  [0,1,1,1,1,1,1,1,1,1,1]
  [1,0,1,1,1,1,1,1,1,1,1]
   ⋮
  [1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0]
   ⋮
  [-100,-99,-98,...,-12,-11,-9,-8,...,0,1,2,3,4,5,6,7,8,9,10,11,...,99,100]
...your life probably gets easier if you limit the domain to positive integers (without zero) since then the list length doesn't diverge. Then a declarative looking solution probably just has a all-modes equivalent to "sort" somewhere within? Certainly interesting to think about.

https://www.cs.ox.ac.uk/people/jeremy.gibbons/publications/r...

https://prolog-lang.org/ImplementersForum/0103-modes.html

https://www.swi-prolog.org/pldoc/man?predicate=permutation%2...

ebolyen•2d ago
It's been a long time since I took a class like this, but I definitely had a similar experience to the author.

Ideas like fold and map where _never_ mentioned in lisp (to exaggerate, every function had to have the recursive implementation with 5 state variables and then a simpler form for the initial call), at no point did higher-order functions or closures make an appearance while rotating a list by 1 and then 2 positions.

The treatment of Prolog was somehow worse. Often the code only made any sense once you reversed what the lecturer was saying, realizing the arrow meant "X given Y" not "X implies Y", at which point, if you could imagine the variables ran "backwards" (unification was not explained) the outcome might start to seem _possible_. I expect the lecturer was as baffled by their presentation as we were.

In general, it left the rest of the class believing quite strongly that languages other than Java were impossible to use and generally a bad move. I may have been relatively bitter in the course evaluation by the end.

Y_Y•2d ago
Thie irony is palpable. I had the (misfortune) of only being (mis)taught procedural languages by professors who thought computers were big calculators who could never be understood, but could be bent to your will by writing more code and maybe by getting a weird grad student to help.

Patterns might appear to the enlighted on the zeroth or first instance, but even the mortal must notice them after several goes. The magic of lisp is that if you notice yourself doing anything more than once you can go ahead and abstract it out.

Not everything needs to be lifted to functional valhalla of course, but not factoring out e.g. map and filter requires (imho) a wilful ignorance of the sort that no teacher should countenance. I think it's bad professional practise, bad pedagogy, and a bad time overall. I will die on this hill.

eru•1d ago
If you are only used to Java (the bad, old, ancient version), you don't even notice that you can factor out map and filter.
turtletontine•2d ago
Having been on the other side of this (teaching undergrads), I do get why courses would be structured like this. If you actually try explaining multiple things, lots of students freeze up and absorb nothing. Certainly there’s a few motivated and curious students who are three lectures ahead of you, but if you design the class for them, 60% of students will just fail.

So I get why a professor wouldn’t jump in with maps and folds. First, you need to make students solve a simple problem, then another. At the third problem, they might start to notice a pattern - that’s when you say gee your right there must be a better way to do this, and introduce maps and folds. The top 10% of the class will have been rolling their eyes the whole time, thinking well duh this is so boring. But most students seem to need their hand held through this whole process. And today, of course, most students are probably just having LLMs do their homework and REALLY learn nothing

kstrauser•2d ago
Ah, yes. Like in the class where we learned Moscow ML, where loops don’t and variables ain’t, and Godspeed!
smadge•2d ago
It reminds me of a satirical post called “Evolution of a Haskell Programmer” in which a nice simple implementation of the Fibonacci function becomes more and more convoluted, abstract, and academic [1].

[1] https://people.willamette.edu/~fruehr/haskell/evolution.html

smadge•2d ago
*factorial function
JadeNB•2d ago
Or maybe just a very bad implementation of the Fibonnaci sequence.
widforss•2d ago
I was extremely confused for a moment and pondered returning my MSc.
Pinus•2d ago
It’s been more than 30 years since I took a (very basic) course in logic programming in general and Prolog in particular, so I can’t read the level of sarcasm in the text, but: Surely, when a course places various artificial limitations on programming, like “hands off the standard library”, the reason is that they are not trying to teach you to be productive Prolog (or whatever language) programmers, they are trying to teach you basic principles, and truly internalizing those principles often (not for everyone!) requires swimming around in them for a while. In Lisp, you are not just supposed to know that you can write a tail-recursive function for something, you are supposed to have done it so many times that you can do it almost without thinking. In calculus, you are not supposed to look up the derivative of arcsin in a table, you are supposed to feel it, so that to immediately see that that subsituting t=sin(x) makes that integral much nicer. They are not training you to use the standard library, they are training you to write it.

Admittedly, teachers sometimes seem to lose track of this and assign busywork exercises for no good reason.

pjmlp•2d ago
Love the jab regarding "only tools available in the 18th century", applies to so many things in mainstream computing.
fuzz_junket•2d ago
The author seems to be frustrated at something but I'm not sure what. There is value in learning how to implement something from first principles. Teachers aren't sitting around scheming about how they can waste their students' time with "meaningless calisthenics", they're trying to help them. Calling them "clueless professors" isn't great either. There's a degree of disrespect in undergraduates dunking on professional tertiary-level educators for making them do homework.

Also, Prolog does not have a "standard library". What predicates are implemented varies greatly by implementation, and if you want to write portable code then you have to stick as closely as possible to the ISO standard.

timonoko•1d ago
TIL: Grok cannot do Prolog, it insists that

  average([X],X) :- !.
is better than

  average([X],X).