frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

PortablE

https://cshandley.co.uk/portable/
9•BruceEel•3d ago

Comments

postexitus•13h ago
I remember using Amiga E, from a cover disk of CU Amiga.

Do I remember correctly that Amiga E had a "but" operator, which executes one statement but returns the value of the other? Never understood its point.

I thought it was one of those things that put Amiga ahead of competitors (because other systems had C/D). Oh my teenager brain.

Edit: looks like I remember correctly!: https://cshandley.co.uk/JasonHulance/beginner_93.html

tialaramex•13h ago
That's some real esolang brain damage. Did somebody see the (four!) needlessly confusing increment and decrement operators in C and think this hadn't gone far enough?

It's not quite COME FROM but it sure is close for a supposedly useful language.

amiga386•12h ago
It's only doing what the https://en.wikipedia.org/wiki/Comma_operator does in C

Why you'd use it? Probably for reducing statements to expressions, e.g.

   PROC lower_delta(a1,a2,b1,b2) IS (da:=a2-a1) BUT (db:=b2-b1) BUT (IF da<db THEN da ELSE db)
tialaramex•9h ago
That's just "I wish this was an expression language". Yeah, good idea, why isn't it?

    type Num = i32; // Or whatever your preferred numeric type is
    fn lower_delta(a1: Num, a2: Num, b1: Num, b2: Num) -> Num {
      let da = a2 - a1;
      let db = b2 - b1;
      if da < db { da } else { db }
    }
amiga386•8h ago
A more useful example I found:

  REPEAT
      ...
  UNTIL CtrlC() OR (IF m:=GetMsg(wnd.userport) THEN ReplyMsg(m) BUT 1 ELSE 0)
Which means loop until Ctrl-C is pressed, or an IDCMP message comes to the window (which must be replied to allow the sender to reuse/free the message, but otherwise we don't care what's in the message, because we know it's either a keypress or a mouseclick, and both end the loop).

The comma operator, or "BUT", lets us capture the result of GetMsg(), go down a positive "we got a message so end the loop" path, but also fits in a ReplyMsg() so we don't have to deal with it anywhere else

tialaramex•1h ago
Like I said though, you wanted an expression language, just have an expression language

    loop {
      // ...
      if ctrl_c() ||
         match get_msg(wnd.userport) { None => false,
                                     Some(m) => { _ = reply_msg(m);   true } } {
         break;
      }
    }

What to build instead of AI agents

https://decodingml.substack.com/p/stop-building-ai-agents
33•giuliomagnifico•1h ago•20 comments

Exploiting the IKKO Activebuds "AI powered" earbuds

https://blog.mgdproductions.com/ikko-activebuds/
435•ajdude•11h ago•158 comments

ASCIIMoon: The moon's phase live in ASCII art

https://asciimoon.com/
125•zayat•1d ago•49 comments

Don’t use “click here” as link text (2001)

https://www.w3.org/QA/Tips/noClickHere
429•theandrewbailey•13h ago•310 comments

Show HN: CSS generator for a high-def glass effect

https://glass3d.dev/
205•kris-kay•9h ago•70 comments

Couchers is officially out of beta

https://couchers.org/blog/2025/07/01/releasing-couchers-v1
146•laurentlb•7h ago•62 comments

Physicists Start to Pin Down How Stars Forge Heavy Atoms

https://www.quantamagazine.org/physicists-start-to-pin-down-how-stars-forge-heavy-atoms-20250702/
30•jnord•3h ago•2 comments

That XOR Trick (2020)

https://florian.github.io//xor-trick/
18•hundredwatt•2d ago•9 comments

Vitamin C Boosts Epidermal Growth via DNA Demethylation

https://www.jidonline.org/article/S0022-202X(25)00416-6/fulltext
30•gnabgib•4h ago•12 comments

Evidence of a 12,800-year-old shallow airburst depression in Louisiana

https://www.scienceopen.com/hosted-document?doi=10.14293/ACI.2025.0004
94•keepamovin•1d ago•40 comments

The Zen of Quakerism (2016)

https://www.friendsjournal.org/the-zen-of-quakerism/
87•surprisetalk•3d ago•60 comments

Gene therapy restored hearing in deaf patients

https://news.ki.se/gene-therapy-restored-hearing-in-deaf-patients
286•justacrow•10h ago•71 comments

Sony's Mark Cerny Has Worked on "Big Chunks of RDNA 5" with AMD

https://overclock3d.net/news/gpu-displays/sonys-mark-cerny-has-worked-on-big-chunks-of-rdna-5-with-amd/
61•ZenithExtreme•9h ago•68 comments

The Evolution of Caching Libraries in Go

https://maypok86.github.io/otter/blog/cache-evolution/
68•maypok86•3d ago•18 comments

Features of D That I Love

https://bradley.chatha.dev/blog/dlang-propaganda/features-of-d-that-i-love/
61•vips7L•8h ago•47 comments

Websites hosting major US climate reports taken down

https://apnews.com/article/climate-change-national-assessment-nasa-white-house-057cec699caef90832d8b10f21a6ffe8
186•geox•4h ago•84 comments

A list is a monad

https://alexyorke.github.io//2025/06/29/a-list-is-a-monad/
104•polygot•3d ago•110 comments

AI note takers are flooding Zoom calls as workers opt to skip meetings

https://www.washingtonpost.com/technology/2025/07/02/ai-note-takers-meetings-bots/
51•tysone•7h ago•43 comments

Escher's art and computer science

https://github.com/gritzko/librdx/blob/master/blog/escher.md
32•signa11•1d ago•5 comments

How large are large language models?

https://gist.github.com/rain-1/cf0419958250d15893d8873682492c3e
232•rain1•14h ago•135 comments

MindsDB (YC W20) is hiring an AI solutions engineer

https://job-boards.greenhouse.io/mindsdb/jobs/4770283007
1•adam_carrigan•7h ago

The Unseen Fury of Solar Storms

https://www.noemamag.com/the-unseen-fury-of-solar-storms/
14•NaOH•3d ago•1 comments

Efficient set-membership filters and dictionaries based on SAT

https://github.com/NationalSecurityAgency/XORSATFilter
30•keepamovin•3d ago•6 comments

Private sector lost 33k jobs, badly missing expectations of 100k increase

https://www.cnbc.com/2025/07/02/adp-jobs-report-june-2025.html
369•ceejayoz•11h ago•227 comments

WebAssembly Troubles part 4: Microwasm (2019)

http://troubles.md/microwasm/
28•Bogdanp•3d ago•0 comments

TikTok is being flooded with racist AI videos generated by Google's Veo 3

https://arstechnica.com/ai/2025/07/racist-ai-videos-created-with-google-veo-3-are-proliferating-on-tiktok/
66•kozika•2h ago•36 comments

The "personal computer" model scales better than the "terminal" model

https://utcc.utoronto.ca/~cks/space/blog/tech/ScalingTerminalsVsPCs
6•zdw•1d ago•4 comments

Reuleaux Kinematic Mechanisms Collection

https://digital.library.cornell.edu/collections/kmoddl
17•gyomu•1d ago•3 comments

Cloudflare Introduces Default Blocking of A.I. Data Scrapers

https://www.nytimes.com/2025/07/01/technology/cloudflare-ai-data.html
360•stephendause•11h ago•241 comments

More assorted notes on Liquid Glass

https://morrick.me/archives/10068
100•freediver•16h ago•104 comments