frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: SFX – A language where 0.1 and 0.2 = 0.3 and Context is first-class

https://github.com/roriau0422/sfex-lang
3•roriau•44m ago
I've spent the last few weeks building SFX in Rust. It's a programming language experiment focused on context-oriented programming with some unusual design choices.

Reality check first:

Solo project, 53 commits

1 GitHub star xD

Zero users besides me

No production usage

Documentation is aspirational

Many stdlib modules are minimal stubs

What actually works:

Basic interpreter (tree-walker)

Arbitrary precision decimals (0.1 + 0.2 = 0.3)

1-based indexing (controversial, I know)

Context/Situation system (the main idea)

Some file I/O and basic networking

JIT hooks exist but optimization is minimal

The Context idea (asking for feedback on this):

Instead of checking if (user.isAdmin) everywhere, you define Situation: AdminMode that overrides methods:

  Concept: User
      To GetPermissions:
          Return "read"
  
  Situation: AdminMode
      Adjust User:
          To GetPermissions:
              Return "admin,write,delete"
  
  Story:
      Create User Called Bob
      Switch on AdminMode
      Print Bob.GetPermissions  # Now returns "admin,write,delete"
Objects change behavior based on active situations without mutating state. Is this useful or just overengineered?

What's NOT ready:

Performance is terrible (haven't optimized anything)

Standard lib is mostly TODOs

AI features are vaporware

REPL doesn't exist

No tooling (LSP, debugger, etc.)

Tests exist but coverage is poor

My questions:

Is context-oriented programming solving a real problem or creating busywork?

Should I focus on making it fast OR making the stdlib useful?

Is 1-based indexing a dealbreaker for you?

Would arbitrary precision by default bother you for a general-purpose language?

I'm not trying to replace anything. This is a learning project that got out of hand.

Repo: https://github.com/roriau0422/sfex-lang

Pages: https://roriau0422.github.io/sfex-lang/

Honest feedback wanted - including "this is pointless, stop wasting time."

I Don't Socialize at 35 Living in China [video]

https://www.youtube.com/watch?v=L6N0t_bkawA
1•donsupreme•47s ago•0 comments

Byte Shop 50th Year Birthday Party

https://byteshop50thyearbirthdayp.rsvpify.com
1•robterrell•1m ago•1 comments

The cognitive neuroscience of memory representations

https://www.sciencedirect.com:5037/science/article/pii/S014976342500418X
1•bookofjoe•1m ago•0 comments

Apple Rocked by Executive Departures, with Chip Chief at Risk of Leaving Next

https://www.bloomberg.com/news/articles/2025-12-06/apple-rocked-by-executive-departures-with-john...
1•retskrad•1m ago•1 comments

Reflections from shutting down my VC backed startup after 4 years

https://shivekkhurana.com/blog/reflections-after-shutting-down-first-vc-backed-startup/
1•shivekkhurana•2m ago•0 comments

Show HN: Manifesto – An AI-Native UI Framework (Intent-to-State, Not Text-to-App

https://manifesto-ai.dev
1•eggplantiny•2m ago•0 comments

Show HN: SideSpark – A Local, Private AI Note Taker for macOS

https://sidespark.app/
1•raj_khare•6m ago•0 comments

Weird FFmpeg Use Cases – Part 03

https://www.youtube.com/watch?v=5kvLDWYyJX8
1•implabinash•9m ago•1 comments

Show HN: I made a tool to make PDFs look scanned because bureaucracy

https://github.com/Francium-Tech/scanify
3•bragboy•14m ago•0 comments

Investigating a Possible Scammer in Journalism's AI Era

https://thelocal.to/investigating-scam-journalism-ai/
1•ohjeez•14m ago•0 comments

Perl's Decline Was Cultural

https://www.beatworm.co.uk/blog/computers/perls-decline-was-cultural-not-technical
4•todsacerdoti•15m ago•0 comments

GitHub Actions Has a Package Manager, and It Might Be the Worst

https://nesbitt.io/2025/12/06/github-actions-package-manager.html
1•todsacerdoti•15m ago•0 comments

Nearly half of tickets for Milan-Cortina Olympics still unsold

https://www.espn.com/olympics/story/_/id/47221223/nearly-half-tickets-milan-cortina-olympics-unsold
1•cwwc•17m ago•0 comments

What Billionaire Tech CEOs Get Wrong About the Future, with Adam Becker [video]

https://www.youtube.com/watch?v=o6UdRXloqGc
1•xbmcuser•19m ago•0 comments

FreeBSD 15: Why You'll Want It

https://freebsdfoundation.org/blog/freebsd-15-why-youll-want-it/
1•todsacerdoti•19m ago•0 comments

Show HN: AgentPG – Stateful AI Agents in Go with PostgreSQL Persistence

https://github.com/youssefsiam38/agentpg
1•youssefsiam38•20m ago•0 comments

Show HN: 3-Minute Connection – tiny daily missions for couples

https://conexao-em-3-minutos.vercel.app
1•ArielAio•23m ago•0 comments

Why ID Format Matters More Than ID Generation (Lessons from Production)

https://piljoong.dev/posts/distributed-id-generation-complicated/
1•fs_software•23m ago•0 comments

Claude Code Tips

https://github.com/ykdojo/claude-code-tips
2•ykdojo•23m ago•1 comments

Show HN: Scrollbots – 24/7 Infinite LLM Characters Debating Any Topic

https://scrollbots.com
1•sbcom•23m ago•0 comments

Navigating the filesystem and Git with single key presses

1•dharmatech•24m ago•1 comments

Melt ICE: a wearable guide for what to do if you see ICE detaining someone

https://sites.google.com/view/melt-ice
5•nbd-hardwear•25m ago•1 comments

'Weird' meteorite may be from Mars moon (2004)

https://www.newscientist.com/article/dn4902-weird-meteorite-may-be-from-mars-moon/
1•r721•25m ago•1 comments

What the heck is going on at Apple?

https://www.cnn.com/2025/12/06/tech/apple-tim-cook-leadership-changes
1•Noaidi•25m ago•0 comments

When AI Agents Go Rogue

https://www.maybedont.ai/blog/agents-go-rogue/
1•mooreds•26m ago•0 comments

Show HN: Agentic Code Review with Tree Sitter MCP Tool

https://alexcpn-code-review-agent.hf.space/
1•alexcpn•27m ago•0 comments

Distroless

https://github.com/GoogleContainerTools/distroless
1•m-hodges•27m ago•0 comments

Musk threatens 'response' against individuals who imposed €120M X penalty

https://www.politico.eu/article/elon-musk-threatens-response-against-individuals-who-imposed-e120...
7•Teever•29m ago•1 comments

Some people are unhappy with AI 2027 title and our AI timelines. Let me clarify

https://twitter.com/DKokotajlo/status/1992316608073847201
1•r721•29m ago•0 comments

Pig butchering: CA widow loses nearly $1M in crypto scam, ChatGPT alerts her [video]

https://www.youtube.com/watch?v=f86Z7jM3RxY
1•randycupertino•33m ago•1 comments