Goodbye Core_kernel
Jane Street merged its Core and Core_kernel OCaml standard libraries by moving the mostly non-portable, Unix-dependent functionality out of Core into standalone libraries and then renaming Core_kernel to Core. This leaves two libraries: Base, which is light, fast to compile and stable, and Core, which is more extensive. Both are now fully portable to JavaScript and Windows. To migrate, replace Core_kernel with Core and build with deprecation errors enabled, then follow the deprecation alerts to the new modules such as Date_unix, Time_unix, Core_unix and Command_unix. The change is not backward compatible, so the opam release plan is still undecided.
Related posts
- Bun v1.1.35
Bun mediumAdept
Bun v1.1.35 adds native Musl libc binaries for Alpine Linux, replacing a glibc compatibility shim. It also adds JUnit XML output for bun test, a preload option for Worker, data URI imports, and ${configDir} in tsconfig. The binary shrinks by 6 MB on Linux and macOS by moving large structs from stack to heap and stripping dependency unwind tables, and fs.readFile is up to 10% faster for small files. Fixes cover node:net (full net.Server, setKeepAlive and setNoDelay), Windows auto-install now using junctions instead of symlinks, and a Linux hang fixed by reverting v1.1.34's change that let the GC run while the event loop slept.
- What the interns have wrought, 2021 edition
Jane Street Tech Blog mediumAdeptJane Street's 2021 dev internship (87 interns across New York, London and Hong Kong) is showcased through three projects. One extended the OCaml syntax extension ppx_typed_fields, which uses GADTs to make record fields first-class values. It now supports parameterized and nested records, and a new typed-variants extension does the same for variant types. A second built filterable cross-day time-series exports of historical atop process data for the CLI and web UI. A third added memoization of intermediate computations to Datafetcher, a Haxl-like OCaml DSL for data-fetching jobs that run in production, test or record mode.
- Using OxCaml to implement type-safe reference counting between OCaml and Python
Jane Street Tech Blog hardMasterWrapping Python objects as OCaml values in PyOCaml ties each object's release to the OCaml GC finalizer, so large data frames or GPU buffers can stay alive long after Python code drops them. OxCaml's modes fix this: `@ local` arguments let C glue borrow Python references without an incref, `@ unique` returns let it steal the reference back without one, and `borrow_` keeps a value unique across local calls. For manual control, `Py.newref`, a uniqueness-consuming `Py.decref` and `ppx_release` provide type-safe explicit reference counting that frees objects promptly even when exceptions are raised.
- Bun v1.1.10
Bun mediumAdept
Bun v1.1.10 fixes 20 bugs, makes uncached bun install on Windows about 2x faster, and cuts fetch() memory use by up to 2.8x by freeing response bodies sooner. The fetch change pairs JavaScriptCore Strong and Weak references with reference counting in Zig, so the Response and its body are freed once the GC finalizes them, and the HTTP client is told to ignore unread bodies. Other fixes include a Windows hang caused by sockets being made non-blocking only after connect, and a macOS spawn hang where send() with MSG_NOWAIT still blocks on blocking sockets. Smaller items cover sourcemap fixes with --splitting, setDefaultTimeout in bun:test, and an EventEmitter listener-removal bug in node:stream.
- CommonJS is hurting JavaScript
Deno easyNoviceCommonJS, born in 2009 from the ServerJS effort to give server-side JavaScript a module system, became Node's default but carries core flaws: synchronous loading, poor tree-shaking, and no native browser support. ECMAScript modules fix these as a web-first standard, yet Node's decision to support both systems pushed the interoperability burden onto package authors, who must ship complex dual ESM/CJS package.json configurations. The argument is to abandon CommonJS for an all-ESM future, with tools like dnt as a stopgap for dual publishing.