frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: I implemented LINQ in my own programming language

https://github.com/ArcadeMakerSources/ArcadeMaker/blob/master/src/Exp/libs/linq.txt
1•themondayguy•15m ago
I've been working on my own scripting language for my game engine, whose interpreter I wrote in C#. So, for quite a long time now, the only languages I use are C# and my custom language.

Apparently, it's really hard to work without LINQ after you got used to it, so I decided to add it to my language! [Note: I'm talking about in-memory queries, I didn't re-implement the whole EF core...]

Here's a few examples:

  const dangerousEnemies = q(room.objects)
      .ofType(<obj_enemy>)
      .where(func(e) => distanceToObject(e) < 100)
      .groupBy(func(e) => e.specialPower)
      .toArr()

  foreach product in q(products)
      .orderBy(func(p) => p.price)
      .select(func(p) => p.name)
  {
      println(product)
  }

  func getFileExtension(filePath)
  {
      const i = q(filePath).reverse().indexOf('.')
      return filePath.substr(i, filePath.length() - i)
  }
I did my best to make the design as close to .NET LINQ as possible. You can query anything that you can use in a foreach loop, and it uses deferred execution, meaning the query doesn't actually run until you iterate over it or call .toArr(), .toList(), or one of the other methods that execute it.

It also performs just one iteration per query. You can do where().select(), and instead of iterating once for the where operator and then again for the select operator, it processes both in a single iteration.

This post links to the code of this little LINQ library, so you can check it if it sounds interesting to you. Would love to hear what u think about it!

US Army detonates tons of unstable bomb-making chemicals in Iowa

https://www.cnn.com/2026/11/25/us/live-news/iowa-lead-azide-detonation
1•blinding-streak•34s ago•0 comments

Army detonates tons of lead azide as local residents brace for toxic plume

https://arstechnica.com/health/2026/11/army-detonates-tons-of-lead-azide-as-local-residents-brace...
1•mikestew•41s ago•0 comments

Ail: An open format for links that start an AI conversation

https://github.com/ail-spec/ail
1•ail-spec•53s ago•0 comments

Meta insiders say AI content moderation struggles with nuance and appeals

https://www.theguardian.com/technology/2026/nov/25/meta-insiders-concerned-push-to-ai-content-mod...
1•datascientist•1m ago•0 comments

The Fastest Markdown Editor

https://ia.net/topics/the-fastest-markdown-editor
1•robenkleene•1m ago•0 comments

A Mysterious Clone

https://www.leadedsolder.com/2026/11/17/apple-iie-clone-loose-crystal.html
1•speckx•2m ago•0 comments

Bickering Buildings: A Dialogue Between the Churches of Athens in 1854

https://publicdomainreview.org/essay/bickering-buildings
1•titusblair•3m ago•0 comments

Colorado's Digital ID App Was Breached. Up to 150k People's Data May Be Affec

https://inclinq.medium.com/colorados-digital-id-app-was-breached-up-to-150-000-people-s-data-may-...
2•inclinq•5m ago•0 comments

How to Turn a Philanderer into a Father

https://asteriskmag.com/issues/16/how-to-turn-a-philanderer-into-a-father
1•surprisetalk•6m ago•0 comments

Cleaning the house with LLMs (llm2real) [video]

https://www.youtube.com/watch?v=DIernxr0JQQ
1•luka598•7m ago•0 comments

Solar production keeps exceeding predictions

https://bsky.app/profile/aukehoekstra.bsky.social/post/3mzfwqemnpc2l
1•CharlesW•7m ago•0 comments

Show HN: Dx (Rust) – TUI with native LSP, image/video support and more

https://dx.essencefromexistence.com
1•essfrmexistence•7m ago•0 comments

Show HN: Axelix – open-source platform to solve pains of Java Developers

2•mipo256•7m ago•0 comments

I built PocketLAB to vibe code my own handheld apps

https://opuslabs.substack.com/p/i-built-pocketlab-to-vibe-code-my
1•opuslabs•9m ago•0 comments

Veto – Experimental systems language for Ring-0 kernels (v0.4.2)

https://github.com/veto-programming-language/VETO-Programming-Code
2•darkgamer•10m ago•0 comments

Pop _OS 26.04 LTS vs. Pop _OS 24.04 LTS Benchmarks

https://www.phoronix.com/review/pop-os-2604-benchmarks
1•rbanffy•10m ago•0 comments

Never gonna give proofs up, never gonna let Raft down

https://discourse.ubuntu.com/t/never-gonna-give-proofs-up-never-gonna-let-raft-down/92411
1•peterparker204•11m ago•0 comments

Control Tower Agentic

https://github.com/aouicher/control-tower-agentic
1•aouicher•11m ago•1 comments

kevin was right - people use too many words

https://whysaylotword.com/
1•felipevelzani•12m ago•0 comments

WALI: The WebAssembly Linux Interface

https://wasm-thin-kernel-interfaces.github.io/WALI/
1•teleforce•13m ago•0 comments

Show HN: I implemented LINQ in my own programming language

https://github.com/ArcadeMakerSources/ArcadeMaker/blob/master/src/Exp/libs/linq.txt
1•themondayguy•15m ago•0 comments

New York and California Age Gating Rules Go into Effect in the New Year

https://www.eff.org/deeplinks/2026/11/new-york-and-california-age-gating-rules-go-effect-new-year
2•hn_acker•15m ago•0 comments

New York vs. Auto-Enshittification

https://pluralistic.net/2026/11/25/empire-state-strikes-back/
3•hn_acker•15m ago•0 comments

Show HN: Ephyra, a New Library for Agentic Property-Based Testing

https://github.com/datadog-labs/ephyra
1•alpaylan•16m ago•0 comments

I Bought GTA VI with Muse in London

https://www.reddit.com/r/MetaAI/comments/1y5a4ow/day_2_of_muse_i_bought_gta_vi/
1•okiki-clickdrop•17m ago•1 comments

Ask HN: If you had no limitations what would you build in AI?

4•NarcisMirandes•17m ago•2 comments

Looped Transformers: Thinking twice with the same weights

https://huggingface.co/spaces/dlouapre/looped-transformers
3•victormustar•18m ago•0 comments

One yes, always allow: a human-approval bug in AG2's ACP client

https://pitsense.io/research/ag2-acp-allow-always/
1•TeodorVelicky•18m ago•0 comments

FCC: California Can't Enforce Its Broadband Protection and 911 Reliability Laws

https://www.techdirt.com/2026/11/25/trump-fcc-att-says-california-cant-enforce-its-broadband-prot...
2•hn_acker•18m ago•1 comments

App Map: your AI coding agent draws clickable UML of your mobile app

https://github.com/yonivav/app-map
1•yonivav•21m ago•1 comments