frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Some Data Should Be Code

https://borretti.me/article/some-data-should-be-code
2•ingve•1h ago

Comments

zahlman•35m ago
> I wish I could, instead, write a make.py file with something like this:

I have had in mind a project which I hope could make this more ergonomic. I think the example could look more like so (and be made to work):

  from whatever import *

  @depends("inputs/checkbook_pro_export.csv")
  @makes(ledger_path="ledger/{year}_{month:02d}.toml") # n.b. not an f-string
  @parametrized_rule(year=range(2019, 2026), month=range(1, 13))
  def import_month():
      return import_from_checkbook(ledger_path, year, month)
itay-maman•30m ago
Two thoughts this sparked, somewhat in tension with each other:

The HTML→React evolution is a good parallel. Writing long-term maintainable markup without loops, reuse, and parameterization became untenable at scale. React (and similar) emerged precisely because "data" (HTML) needed to become "code." Not everyone loves frameworks, but clearly many developers found the abstraction ceiling of pure markup too low.

That said, declarativity has real advantages — mostly around security and sandboxing. CloudFormation is instructive: CDK eventually outputs CloudFormation YAML. AWS could let you run arbitrary code inside CloudFormation, but they don't — because if you can send code there, you can also make it mine bitcoin. The declarative layer is the trust boundary.

So maybe the sweet spot is code-that-emits-data. You get loops, abstraction, and type safety at authoring time, but the execution environment only sees the constrained, analyzable output. CDK got this right. The problem is when systems skip the "emit data" step and try to grow a DSL organically inside YAML.

sea-gold•2m ago
> Consider GitHub Actions. How much better off would we be if, instead of writing the workflow-job-step tree by hand, we could just have a single Python script, executed on push, whose output is the GitHub Actions YAML-as-assembly?

github-workflows-kt[0] is a tool for generating GitHub Actions workflow YAML files in a type-safe script, helping you to build robust workflows for your GitHub projects without mistakes, with pleasure, in Kotlin.

[0] https://typesafegithub.github.io/github-workflows-kt/

Surfacing hidden security threats in Moltbook posts

https://www.musubilabs.ai/post/how-we-surfaced-hidden-threats-in-agentic-ais-social-media
1•tomq•1m ago•0 comments

Glyph Positions Break PDF Text Redaction

https://arxiv.org/abs/2206.02285
1•wjb3•4m ago•0 comments

Australia's energy market hits 51% renewables for first time

https://www.pv-tech.org/clean-energy-conquers-coal-as-australias-nem-delivers-historic-51-renewab...
1•testing22321•5m ago•0 comments

Async Rust in ScyllaDB: performance, pitfalls, profiling

https://www.scylladb.com/2022/01/12/async-rust-in-practice-performance-pitfalls-profiling/
1•fanf2•5m ago•0 comments

Richard F. Burton: On the English adventurer and writer

https://thelampmagazine.com/issues/issue-32/richard-f-burton
2•CrocodileStreet•5m ago•0 comments

Jupiter 2 – RVA23-compliant SBC features SpacemiT K3 octa-core RISC-V AI SoC

https://www.cnx-software.com/2026/01/30/jupiter-2-an-rva23-compliant-sbc-powered-features-spacemi...
1•emilio2601•6m ago•0 comments

Batteries overtake peaking gas generators in Australia's biggest state grids

https://reneweconomy.com.au/global-proof-point-big-batteries-overtake-peaking-gas-generators-in-a...
1•testing22321•6m ago•0 comments

Sam Altman and the day Nvidia's meteoric rise came to an end

https://garymarcus.substack.com/p/sam-altman-and-the-day-nvidias-meteoric
1•chmaynard•8m ago•0 comments

Think Real Hard

https://www.benkuhn.net/thinkrealhard/
1•codesuki•8m ago•0 comments

AI ASCII Art Generator

https://bejamas.com/tools/ai-ascii-art-generator
1•zdgeier•10m ago•0 comments

Protect Production SQL Databases from AI/LLM Agentic SQL Query Risks

https://rietta.com/blog/ai-sql-database-data-protection-read-replica/
1•rietta•11m ago•0 comments

A Confession from Your Newest User

https://public.3.basecamp.com/p/njmKUBfBAJkfKuB8NHqV1qJ7
1•duck•12m ago•0 comments

Lessons from BF-Tree: Building a Concurrent Larger-Than-Memory Index in Rust

https://zhihanz.github.io/posts/bf-tree-rust-implementation/
1•zhihanz•14m ago•0 comments

Musk's Boring Tunnel in Nashville Has Mayor Hoping No One Dies

https://www.bloomberg.com/graphics/2026-nashville-music-city-tunnel-boring-co/
3•quantified•15m ago•1 comments

Alphabet Q4 2025 Earnings release [pdf]

https://s206.q4cdn.com/479360582/files/doc_financials/2025/q4/2025q4-alphabet-earnings-release.pdf
10•etamponi•15m ago•0 comments

How to know if you're an engineer? (3 min video/comedy)

https://www.youtube.com/watch?v=hBxONI_xYiI
1•rmason•16m ago•0 comments

Divergent vs. Convergent Phases

https://chaseadam.com/divergent-vs-convergent-phases
1•chaseadam17•16m ago•0 comments

The Hans Island "Loophole"

https://www.policymagazine.ca/view-from-europe-the-increasingly-convincing-case-for-canada-joinin...
1•hidden80•17m ago•0 comments

Sonar: Voice, transcribed instantly. No cloud. No monthly fees

https://www.aiprompt.dev/sonar
1•insomnie•19m ago•1 comments

People are sleeping on how much Rails+Claude is a *crazy unlock*

https://twitter.com/garrytan/status/2018368128108167344
3•TroelsHH•19m ago•1 comments

Why Kubernetes is retiring Ingress Nginx

https://thenewstack.io/kubernetes-to-retire-ingress-nginx/
1•CrankyBear•20m ago•0 comments

DOJ and DHS indict 11 for Chinese national sham marriages, incl to US sailors

https://www.justice.gov/usao-mdfl/pr/eleven-individuals-indicted-marriage-fraud-conspiracy
3•737min•21m ago•2 comments

Leigh Light – WW2

https://en.wikipedia.org/wiki/Leigh_Light
1•vinnyglennon•21m ago•0 comments

DS Standard Foundation – Alternatively Sized Keyboards

https://dsstandardfoundation.org/about/
1•simojo•21m ago•0 comments

When the Gut Produces Alcohol Without Drinking

https://www.medscape.com/viewarticle/when-gut-produces-alcohol-without-drinking-2026a1000384
2•wjb3•23m ago•1 comments

TypoSnap – Highlight text, hit Ctrl+Shift+F, typos gone (Windows)

1•MarkBekooy•24m ago•0 comments

Russian spy satellites have intercepted EU communications satellites

https://arstechnica.com/space/2026/02/russian-spy-satellites-have-intercepted-eu-communications-s...
3•derbOac•24m ago•0 comments

Show HN: TITO – Automated threat modeling from code (open source)

https://github.com/Leathal1/TITO
1•xxmrlnxx•24m ago•0 comments

Show HN: Job Tracker, Local-first job search app powered by Claude Code

https://github.com/zot/frictionless/tree/main/apps/job-tracker
1•zotimer•25m ago•0 comments

How to find work (early draft)

https://docs.google.com/document/d/1yQcSnxeG4D8MyaIJad3pO9wGQYvuAq6gAHzADkCeDaI/edit?usp=drivesdk
2•mindweather•30m ago•2 comments