frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Show HN: Mongoose unit of work – transactions made easy

https://github.com/tauqeernasir/mongoose-unit-of-work
1•tauqeernasir•5m ago•1 comments

Scale AI's Wang Brings to Meta Knowledge of What Everyone Else Is Doing

https://www.bloomberg.com/news/articles/2025-06-16/scale-ai-s-alexandr-wang-brings-meta-his-extensive-competitor-knowledge
1•gametorch•6m ago•0 comments

The Impact of Return-to-Office Mandates on Equity Analysts

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5206058
1•petethomas•6m ago•0 comments

Show HN: Chawan TUI web browser

https://chawan.net/news/chawan-0-2-0.html
3•shiomiru•6m ago•0 comments

The Modern Observability Roundtable: AI, Rising Costs and OpenTelemetry

https://thenewstack.io/the-modern-observability-roundtable-ai-rising-costs-and-opentelemetry/
1•oavioklein•8m ago•0 comments

Fugento: How an AI and a Human Built a Magento 2 Assistant Together

https://medium.com/@saccitizen/the-tale-of-fugento-how-an-ai-and-a-human-built-a-magento-2-assistant-together-f1681ab83c60
1•Matsonian•11m ago•0 comments

Logarithms of algebraic data types for property-based testing (2022)

https://dl.acm.org/doi/abs/10.1145/3498726
1•fanf2•13m ago•0 comments

Penn State boffins create silicon-free two-dimensional computer

https://www.theregister.com/2025/06/16/penn_state_boffins_2d_cmos/
2•moose44•15m ago•0 comments

How Do Olympiad Medalists Judge LLMs in Competitive Programming?

https://arxiv.org/abs/2506.11928
1•npalli•17m ago•1 comments

Levels.fyi's Over-the-Air Updates on Mobile App

https://www.levels.fyi/blog/over-the-air-updates.html
1•zuhayeer•19m ago•0 comments

phkmalloc

https://phk.freebsd.dk/sagas/phkmalloc/
2•matt_d•20m ago•0 comments

Flashes of lucidity before death: The debate shaking up neuroscience

https://english.elpais.com/science-tech/2025-06-16/flashes-of-lucidity-before-death-the-debate-shaking-up-neuroscience.html
2•domofutu•20m ago•0 comments

Show HN: Zero-config AWS CUR → interactive cost dashboard (DuckDB and Rill)

3•adamkabak•21m ago•0 comments

Improving Continual Pre-Training Through Seamless Data Packing

https://arxiv.org/abs/2505.22018
1•PaulHoule•21m ago•0 comments

Show HN: Nexus.js - Fabric.js for 3D

https://punk.cam/lab/nexus
3•ges•21m ago•0 comments

FreeRDP 3.16 Released with Better SDL3 Client Support

https://www.phoronix.com/news/FreeRDP-3.16-Released
1•Bender•22m ago•0 comments

People who are 'allergic' to humans

https://www.bbc.com/future/article/20250613-the-people-who-are-allergic-to-humans
2•domofutu•23m ago•0 comments

Denmark tests unmanned robotic sailboat fleet

https://apnews.com/article/denmark-robot-sailboats-baltic-sea-bfa31c98cf7c93320115c0ad0e6908c5
4•domofutu•23m ago•0 comments

Cosmic Dawn: The Untold Story of the James Webb Space Telescope [video]

https://www.youtube.com/watch?v=uSMGENDH_QI
1•namanyayg•24m ago•0 comments

After eighteen years of infertility, an AI tool let a couple conceive

https://www.today.com/health/news/ai-fertility-technology-star-sperm-conception-rcna212591
1•namanyayg•24m ago•0 comments

A better way to turn solar sails

https://www.universetoday.com/articles/a-better-way-to-turn-solar-sails
1•namanyayg•24m ago•0 comments

Amazon Ads and Roku Set Pact Giving Brands Access to 80% of Connected-TVs

https://deadline.com/2025/06/amazon-ads-roku-set-landmark-pact-connected-tv-streaming-1236432615/
2•WaitWaitWha•25m ago•0 comments

Should Wyoming Ranchers Paint Zebra Stripes on Their Cows? Science Says Yes

https://cowboystatedaily.com/2025/06/13/should-wyoming-ranchers-paint-zebra-stripes-on-their-cows-science-says-yes/
1•Bender•28m ago•0 comments

China lays foundation for cislunar infra with spacecraft in novel lunar orbits

https://spacenews.com/china-lays-foundation-for-cislunar-infrastructure-with-spacecraft-in-novel-lunar-orbits/
1•rbanffy•29m ago•0 comments

The AI Arms Race: Deepfake Generation vs. Detection

https://www.securityweek.com/deepfakes-and-the-ai-battle-between-generation-and-detection/
1•Bender•29m ago•0 comments

AlphaOne: Reasoning Models Thinking Slow and Fast at Test Time

https://alphaone-project.github.io
3•hullo•33m ago•0 comments

Matrix Is Cooked

https://blog.cyrneko.eu/matrix-is-cooked
7•sanqui•34m ago•0 comments

Retrobootstrapping Rust for some reason

https://graydon2.dreamwidth.org/317484.html
23•romac•35m ago•5 comments

Why digital sovereignty is the new national treasure

https://www.rocket.chat/blog/why-digital-sovereignty-is-the-new-national-treasure
1•rbanffy•38m ago•0 comments

First US college declines federal science grants due to new DEI requirements

https://www.science.org/content/article/u-s-college-first-decline-federal-science-grants-because-new-dei-language
7•Geekette•38m ago•0 comments
Open in hackernews

Show HN: dk – A script runner and cross-compiler, written in OCaml

https://diskuv.com/dk/help/latest/
41•beckford•6h ago
I've always found it cool to be in roles where I can help a younger generation learn skills to have a bright future. That role is something I do in a few ways (as a parent, robotics mentor, school board advisor and Sunday school teacher) and I suspect most HN readers share the same role and appreciation. And for developing software skills, it was obvious that both the students and I had to have a productive software environment where we could work together. That theme of experienced/inexperienced engineers working together is the context in which I created `dk` as a scripting tool.

My testing ground has been students with one or two AP CS courses (high school computer science in the US), some of whom interned with me. I had to tackle a few problems:

- The development environment had to be simple to setup and the programming language couldn't be complicated - The recognition that writing small, easily testable units of work (ex. "scripts") has been the only way I've found for very junior programmers to develop a large application - Cheap, locked-down development hardware (ex. school computers with limited RAM and no Administrator privileges) is sometimes used for deployment to cheap hardware targets (ex. hand-me-down Android tablets)

My solution was to write a standalone binary called `dk` that uses scripts as the atom of work, cross-compiles to standalone executables, and downloads the runtimes and sysroots it needs on-demand. It sits roughly in the same space as Python and Go.

`dk` is available for Windows, macOS and Linux/glibc host machines with a growing list of cross-compilation targets. Your `dk` scripts are written in an almost complete subset of OCaml 4: all `dk` scripts are OCaml, but not all OCaml code can run in `dk`. The other differences from conventional OCaml are that `dk` comes with a large library included, and that I treat any feature as buggy if the feature does not work on all supported OS-es.

The above origin of `dk` is admittedly odd (and abbreviated), so I was not expecting that `dk` would now be a general-purpose scripting tool. Yet it is. I can wrap, re-use and organize most of my hand-written software as a set of `dk` scripts.

Fair warning: The cross-compilation support in `dk` has had a recent overhaul and not every bug is closed. The error messages suck (you have to scroll up to see the root cause and resolution) but they will improve. Some progress bars are missing. There are also a few experimental features ... `uv`-style imports and an interactive interpreter are the big ones ... which are purposely under-documented because I am worried about `dk`'s API surface.

But it still works well, and you can see some real applications in the Examples section. I'd love if you could give it a kick in the tires and give `dk` some feedback! The issue list is at <https://github.com/diskuv/dk/issues>.

Comments

tempodox•5h ago
I wouldn't associate having to use `Lwt_main.run` with “a limited background in programming”, but maybe that's just me.
beckford•4h ago
I usually structure teaching the same way done in https://www.writethedocs.org/videos/eu/2017/the-four-kinds-o.... So "the Quick Walkthrough Guide will explain what dk scripts are and give you small examples to run" is simply a learning-oriented tutorial which is mostly about giving students confidence and visual feedback. And simultaneously it an explanation of nothing (the video has a great explanation for why to do that). So, I agree that an explanation of threads + Internet + cross-compilation would quite nuts, but for an experienced developer I'd expect to see a meaty example (take a look at https://ziglang.org/ for comparison).

One concrete action may be to make two distinct Quick Start guides ... one for the experienced and one for the inexperienced students though. Is that your thinking?

filoleg•1h ago
You are totally fine, the grandparent comment is just either needlessly nitpicking (“great is the enemy of the perfect”) or misunderstanding what the tool is supposed to be used for.

P.S. Your idea of having two distinct quick start guides (one that goes into the meaty details and another one that is just “run this command and you are good to go”) is great. But imo it is not necessary/crucial, and not having it doesn’t detract from the value proposition of your tool at all either.

rfl890•38m ago
I'm very confused at first glance. What are "coder scripts"? Why is "std" repeated 3 times in "dk StdStd_Std.Run"? What on earth is "Tr1Stdlib_V414Io"? The entire tool comes off as arbitrary and confusing, at least to me. I would really quite appreciate a brief primer on the language and its design decisions, architecture and syntax. So far, I'm just having assorted bits of information thrown at me with no real structure.

(Note: I have never touched OCaml. Is this some weird OCaml thing?)