frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Gremllm

https://github.com/awwaiid/gremllm
70•andreabergia•6h ago

Comments

andreabergia•6h ago

  from gremllm import Gremllm

  # Be sure to tell your gremllm what sort of thing it is
  counter = Gremllm('counter')
  counter.value = 5
  counter.increment()
  print(counter.value)  # 6?
  print(counter.to_roman_numerals()) # VI?
I love this!
SoftTalker•4h ago
Awesome, now I don't have to write mocks for testing!
mark_undoio•6h ago
I am appalled and delighted by this.

It feels like an AI cousin to the Python error steamroller (https://github.com/ajalt/fuckitpy).

Whenever I see this sort of thing I think that there might be a non-evil application for it. But then I think ... where's the fun in that?

femto113•3h ago
I share your feelings. What it most brings to mind for me is the infamous StackSort from the image alt text on XKCD comic 1185 (https://xkcd.com/1185/)
awwaiid•3h ago
I was chatting with Simon Willison (who's LLM library I use to power gremllm) on Discord and he suggested D&D use-cases. Kinda works!!!

    >>> from gremllm import Gremllm
    >>> player = Gremllm('dungeon_game_player')
    >>> player.go_into_cave()
    'Player has entered the cave.'
    >>> player.look_around()
    {'location': 'cave', 'entered_cave_at': '2025-07-02T21:59:02.136960'}
    >>> player.pick_up_rock()
    'You picked up a rock.'
    >>> player.inventory()
    ['rock']
(further attempts at this have ... varying results ...)
Fraterkes•2h ago
Just want to say that I'm not an ai guy at all, but this has made me more excited about it than anything in a while. Really cool! Did you also do the one where you put "spells" in your code?
jmsdnns•1h ago
i helped Chris Callison-Burch design a class at upenn, called interactive fiction, which is a similar context to what Simon suggested. the real magic is that it reframes hallucinations as creative story telling. the usecase is SUPER fun if you imagine the LLM as a dungeon master telling a story that gets expanded over time.

the framework he and I built kept track of the game state over time and allowed saving and loading games as json. we could then send the full json to an LLM as part of the prompts to get it to react. the most neat part, imo, was when we realized we could have the LLM generate text for parts of the story, then analyze what it said to detect any items, locations, or characters not jn the game state, and then have it create json representations of the hallucinated objects that could be inserted into the game states. that sealed the deal for using hallucinations as creative story telling inside the context of a game.

i assure you the D&D context is very fun! the class website might give you more ideas too https://interactive-fiction-class.org/

i wasnt officially part of upenn at the time, so my name isnt listed on the site, but we wrote a paper about some of the things we did, such as this one, and you'll see me listed there https://www.cis.upenn.edu/~ccb/publications/dagger.pdf

cudder•2h ago
Thanks, I hate it! Brilliant and absolutely disgusting.
mpalmer•2h ago
Love it, I am here for exactly this sort of playful boundary nudging.

"Wet mode" is such a fantastically awful name. Definitely make me think twice about turning it on.

Nvidia Is Full of Shit

https://blog.sebin-nyshkim.net/posts/nvidia-is-full-of-shit/
116•todsacerdoti•1h ago•53 comments

Mini NASes marry NVMe to Intel's efficient chip

https://www.jeffgeerling.com/blog/2025/mini-nases-marry-nvme-intels-efficient-chip
264•ingve•8h ago•124 comments

EverQuest

https://www.filfre.net/2025/07/everquest/
149•dmazin•7h ago•66 comments

How to Incapacitate Google Tag Manager and Why You Should (2022)

https://backlit.neocities.org/incapacitate-google-tag-manager
103•fsflover•5h ago•70 comments

The story behind Caesar salad

https://www.nationalgeographic.com/travel/article/story-behind-caesar-salad
51•Bluestein•3h ago•21 comments

Being too ambitious is a clever form of self-sabotage

https://maalvika.substack.com/p/being-too-ambitious-is-a-clever-form
52•alihm•2h ago•16 comments

Robots move Shanghai city block [video]

https://www.youtube.com/watch?v=7ZccC9BnT8k
31•surprisetalk•1d ago•10 comments

Why I left my tech job to work on chronic pain

https://sailhealth.substack.com/p/why-i-left-my-tech-job-to-work-on
259•glasscannon•10h ago•166 comments

Everything around LLMs is still magical and wishful thinking

https://dmitriid.com/everything-around-llms-is-still-magical-and-wishful-thinking
121•troupo•2h ago•132 comments

Show HN: AirBending – hand gesture based macOS app MIDI controller

https://www.nanassound.com/products/software/airbending
32•bepitulaz•3h ago•10 comments

Continue (YC S23) is hiring software engineers in San Francisco

https://www.ycombinator.com/companies/continue/jobs
1•sestinj•2h ago

Larry (cat)

https://en.wikipedia.org/wiki/Larry_(cat)
235•dcminter•13h ago•59 comments

Show HN: I AI-coded a tower defense game and documented the whole process

https://github.com/maciej-trebacz/tower-of-time-game
186•M4v3R•10h ago•113 comments

Chasing Lost Languages

https://nautil.us/chasing-lost-languages-1221167/
5•dnetesn•3d ago•1 comments

Kepler.gl

https://kepler.gl/
115•9woc•9h ago•17 comments

Compression Dictionary Transport

https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Compression_dictionary_transport
66•todsacerdoti•8h ago•21 comments

Ask HN: Worth leaving position over push to adopt vibe coding?

19•NotAnOtter•1h ago•14 comments

Writing a Game Boy Emulator in OCaml

https://linoscope.github.io/writing-a-game-boy-emulator-in-ocaml/
206•ibobev•13h ago•37 comments

ChatGPT creates phisher's paradise by serving the wrong URLs for major companies

https://www.theregister.com/2025/07/03/ai_phishing_websites/
107•josephcsible•5h ago•9 comments

The Amiga 3000 Unix and Sun Microsystems: Deal or No Deal?

https://www.datagubbe.se/amix/
5•wicket•2h ago•1 comments

Who is Soham Parekh, the serial moonlighter Silicon Valley can't stop hiring?

https://techcrunch.com/2025/07/03/who-is-soham-parekh-the-serial-moonlighter-silicon-valley-startups-cant-stop-hiring/
12•nradov•35m ago•4 comments

Bcachefs may be headed out of the kernel

https://lwn.net/Articles/1027289/
86•ksec•10h ago•117 comments

Gremllm

https://github.com/awwaiid/gremllm
71•andreabergia•6h ago•9 comments

Wind Knitting Factory

https://www.merelkarhof.nl/work/wind-knitting-factory
211•bschne•1d ago•57 comments

OpenDrop – Electro-wetting technology to control small droplets of liquids

https://gaudishop.ch/index.php/product-category/opendrop/
17•_V_•3d ago•5 comments

Free as Air, Free as Water, Free as Knowledge (1992)

http://bactra.org/Sterling/Free_as_the_Air_Free_as_Water_Free_as_Knowledge.html
23•whoopdedo•3d ago•5 comments

Zig breaking change – initial Writergate

https://github.com/ziglang/zig/pull/24329
199•Retro_Dev•19h ago•194 comments

Lens: Lenses, Folds and Traversals

https://hackage.haskell.org/package/lens
69•hyperbrainer•3d ago•27 comments

Air pollution may contribute to development of lung cancer in never-smokers

https://today.ucsd.edu/story/air-pollution-may-contribute-to-development-of-lung-cancer-in-never-smokers-new-study-finds
112•gmays•5h ago•45 comments

Can Large Language Models Play Text Games Well? (2023)

https://arxiv.org/abs/2304.02868
56•willvarfar•12h ago•43 comments