惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
Y
Y Combinator Blog
M
MIT News - Artificial intelligence
The Cloudflare Blog
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 司徒正美
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
J
Java Code Geeks
云风的 BLOG
云风的 BLOG
C
Check Point Blog
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
V
V2EX
F
Fortinet All Blogs
B
Blog
大猫的无限游戏
大猫的无限游戏
N
Netflix TechBlog - Medium
B
Blog RSS Feed
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - scascino4/Gym.jl: Gymnasium RL environments in J...
scascino4 · 2026-05-05 · via Hacker News: Show HN

Gym.jl is a package that implements a subset of the Gymnasium RL environments in Julia.

Gym.jl environments preview

Installation

Clone the repository and instantiate the project environment:

git clone https://github.com/scascino4/Gym.jl
cd Gym.jl
julia --project=. -e 'using Pkg; Pkg.resolve(); Pkg.instantiate()'

To inspect the currently registered environments:

julia --project=. -e 'using Gym; Gym.pprint_registry()'

Quick Start

From the repository root, start Julia with julia --project=. and run:

using Gym

env = Gym.make("CartPole-v1"; render_mode=:human)
observation, info = Gym.reset!(env)

while true
    action = rand(Gym.action_space(env))
    observation, reward, terminated, truncated, info = Gym.step!(env, action)
    if terminated || truncated
        break
    end
end

Gym.close(env)

render_mode=:human uses an OpenGL renderer backend, so it requires a working OpenGL 3.3 context at runtime. Some rendered environments also load packaged PNG assets through project dependencies, so run Pkg.instantiate() after pulling dependency changes.

Vector environments are available through Gym.make_vec(...), like:

envs = Gym.make_vec("CartPole-v1"; num_envs=2, vectorization_mode=:async, render_mode=:human)
observations, infos = Gym.reset!(envs)

vectorization_mode=:async runs one worker task per environment. For real parallel speedups, start Julia with multiple threads, for example julia --project=. -t auto.

Repository Guide

  • src/: package source, spaces, vector environments, and environment implementations
  • examples/: scripts that use and validate environment implementations
  • benchmark/: scalar step-throughput benchmarks against Gymnasium
  • test/: Julia tests and the Gymnasium compatibility harness

Examples

The examples/ directory contains example usages of some of the defined environments. From a repository checkout, run scripts like:

julia --project=. examples/ppo.jl CartPole-v1
julia --project=. examples/ppo.jl CartPole-v1 --render-final
julia --project=. examples/dqn.jl Acrobot-v1 --render-final

Tests

The test/ directory contains the Julia package tests and the optional Python compatibility harness used to compare environments against Gymnasium.

From a repository checkout, run the Julia test suite with:

julia --project=. test/runtests.jl

The compatibility checks require:

  • Python 3.10+
  • uv

On first use, uv will create test/.venv and install compatible dependencies for the local harness. If uv is missing, the compatibility checks are skipped automatically with an info message.

To force skipping the Gymnasium compatibility harness and run only the Julia tests:

julia --project=. test/runtests.jl --no-compatibility

Documentation

Full package documentation lives under docs/ and can be built locally with:

julia --project=docs docs/make.jl

Environment Checklist

This checklist is copied from the core Gymnasium environments. You can inspect the currently available environments at any time with Gym.registered_envs() or Gym.pprint_registry().

  • Classic Control (5/5)

    • Acrobot
    • CartPole
    • Mountain Car
    • Continuous Mountain Car
    • Pendulum
  • Toy Text (4/4)

    • Blackjack
    • Taxi
    • Cliff Walking
    • Frozen Lake

Box2D, MuJoCo, and Atari environments use external engines, so the benefits of a Julia re-implementation are quite limited. For this reason, they're (currently) out of scope.

Benchmarks

The benchmark/ directory contains a scalar environment throughput benchmark that compares Gym.jl against Gymnasium. From a repository checkout, regenerate the plot with:

julia --project=. benchmark/benchmark.jl
gnuplot benchmark/plot_benchmark.gp

Gym.jl vs Gymnasium scalar step throughput