Sunday, August 20, 2023

Show HN: Superfunctions – AI prompt templates as an API https://ift.tt/lNg163D

Show HN: Superfunctions – AI prompt templates as an API Hi HN, https://ift.tt/zuBWD91 I'm working on a web app that allows Ai prompts to function as an API. I want to make it easier for developers to use Ai. I've found it painful to monitor, cache, and iterate on prompts. superfunctions.com is designed to be the simplest building block to create Ai powered apps and scripts. Simplest example I can think of: You want an api to convert human-named colors to hex You can write a prompt like: "convert to color, only output hex for css" and then you can call your prompt with https://ift.tt/XkzFYRJ and the response will contain: #0000FF Watch a short video intro: https://www.youtube.com/watch?v=KdO1TBUbRuA Login without needing an account: https://ift.tt/jEQeW9K I'm still sorting out a few bugs, but it's usable in it's current state. This is my first solo project, so I'm very open to feedback and suggestions. -Trent https://ift.tt/s2vQRLO August 20, 2023 at 03:06PM

Show HN: How to Use SQLite3 with Elixir and Ecto https://ift.tt/ah24yHY

Show HN: How to Use SQLite3 with Elixir and Ecto https://ift.tt/SRVwi0T August 20, 2023 at 06:51AM

Show HN: Just intonation keyboard – play music without knowing music https://ift.tt/31jhJMb

Show HN: Just intonation keyboard – play music without knowing music This is a keyboard in just intonation. It can play the notes a piano can. The big difference from a piano is that all the notes become consonant. You can play without knowing any music theory. Hit arbitrary notes with the rhythm you want, and the pitches will work. Not understanding the buttons is fine. Even rolling your elbow around your keyboard is fine. If you are a musician and press the wrong key while playing a song, it will still fit. It will sound like you made an intelligent, conscious choice to play another note, even though you know in your heart it was an accident. Beginner jazz musicians rejoice. It's not an AI making choices for you; it's just a very elegant interface. What makes this possible is several new discoveries in psychoacoustics about how harmony works. While a piano lays out notes in pitch space, this keyboard is able to lay out notes in consonance space. When you play random notes, they tend to be "close together" on the physical keyboard. Distance on the keyboard maps well to distance in consonance space, so those random notes are close together in consonance space and sound good together. According to Miles Davis, a "wrong" note becomes correct in the right context. If you try to play a wrong note, the purple buttons you press will automatically land you in the right context, even if you don't know what that context is yourself. So you can stumble your way through an improv and the keyboard will offer the right notes without needing you to think about it. Harmonic consonance of chords can be read directly off the numbers in the keyboard, which implies that these numbers are a good language to think about music with. It doesn't take years of training, just reading the rules. The subset of playable songs is different from a piano, which means that songs in your existing piano repertoire will snip off some notes. Hardware for thumb keys would fix this, so you could play your existing piano songs in full, plus other songs a piano can't play. I don't have such hardware so I haven't implemented this. The other way is to have two keyboards and a partner. The remaining issue is that there is no sheet music in just intonation. Unfortunately, I have had no success in finding piano sheet music in a common, interpretable format. So while I do have a converter from 12 equal temperament to just intonation, there are no input files to use it with... https://ift.tt/YfTevx8 August 20, 2023 at 04:19AM

Show HN: NES emulator with network multiplayer written in Go https://ift.tt/ACqW4Vx

Show HN: NES emulator with network multiplayer written in Go https://ift.tt/2e57ta1 August 19, 2023 at 09:35PM

Show HN: CatGPT - Expert answers to any cat-related questions https://ift.tt/wqy481K

Show HN: CatGPT - Expert answers to any cat-related questions https://ift.tt/Ex0mw5C August 19, 2023 at 08:14PM

Saturday, August 19, 2023

Show HN: Rivet (YC W23) – Open-Source Game Server Management with Nomad and Rust https://ift.tt/sx598LT

Show HN: Rivet (YC W23) – Open-Source Game Server Management with Nomad and Rust Hey HN! Rivet is an OSS game server management tool that enables game developers to easily deploy their dedicated servers without any infra experience. We recently open-sourced Rivet after working on it for the past couple of years. I wanted to share some of my favorite things about our experience building this with the HN community. My cofounder and I have been building multiplayer games together since middle school for fun (and not much profit [1]). In HS, I stumbled into building the entire infrastructure powering [Krunker.io]( http://Krunker.io ) (acq by FRVR) & other popular multiplayer web games. After wasting months rebuilding dedicated server infrastructure + DDoS/bot mitigation over and over, we started building Rivet as a side project. Some interesting tidbits: - ~99% Rust and a smidgeon of Lua. - Bolt [2] – Cluster dev & management toolchain for super configurable self-hosted Rivet clusters. It’s way over-engineered. - The entire repo is usable as a library. Our EE repo uses OSS as a submodule. - Traefik used as an edge proxy for low-latency UDP, TCP+TLS, & WSS traffic. - Apache Traffic Server is under-appreciated as a large file cache. Used as an edge Docker pull-through cache to improve cold starts & as a CDN cache to lower our S3 bill. - ClickHouse used for analytics & game server logs. It’s so simple, I have nothing more to say. - Serving Docker images with Apache TS is simpler & cheaper than running a Docker pull-through cache. - Nebula has been rock solid & easy to operate as our overlay network. - We use Redis Lua scripts for complex, atomic, in-memory operations. - Obviously, we love Nix. - We keep a rough SBOM [3]. - Licensed under Apache 2.0 (OSI-approved). We seriously want people to run & tinker with Rivet themselves. We get a lot of questions about this: [4] [5] Some HN-flavored FAQ: > Why not build on top of Agones or Kubernetes? Nomad is simpler & more flexible than Agones/Kubernetes out of the box, which let us get up and running faster. For example, Nomad natively supports multiple task drivers, edge workloads, and runs as a standalone binary. > [Fly.io]( http://Fly.io ) migrated off of Nomad, how will you scale? Nomad can support 2M containers [6]. Some quick math: avg 8 players per lobby * 2M lobbies * 8 regional clusters = ~128M CCU. That’s well above PUBG’s 3.2m CCU peak. Roblox’s game servers also run on top of Nomad [7]. We’re in good company. > Are you affected by the recent Nomad BSL relicensing [8]? Maybe, see [9]. > How do you compare to $X? Our core goal is to get developers up and running as fast as possible. We provide extra services like our matchmaker [10], CDN [11], and KV [12] to make shipping a fully-fledged multiplayer game require only a couple of lines of code. No other project provides a comparably accessible, OSS, and comprehensive game server manager. > Do you handle networking logic? No. We work with existing tools like FishNet, Mirror, NGO, Unreal & Godot replication, and anything else you can run in Docker. > Is anyone actually using this? Yes, we’ve been running in closed beta since Jan ‘22 and currently support millions of MAU across many titles. [1]: https://ift.tt/uQN5eZ6 [2]: https://ift.tt/0B9u5PY... [3]: https://ift.tt/YBVpiX1... [4]: https://ift.tt/3Jzs7hZ... [5]: https://ift.tt/3Jzs7hZ... [6]: https://ift.tt/3ceU4Qr [7]: https://ift.tt/Hy352uf [8]: https://ift.tt/bJ8S0dy... [9]: https://ift.tt/hFBMZ3g [10]: https://ift.tt/3Sln7F2 [11]: https://ift.tt/f0ELj4W [12]: https://ift.tt/M23vu7o https://ift.tt/5LkcHnF August 19, 2023 at 07:08PM

Show HN: A simple, open-source Notion-like avatar generator https://ift.tt/gzxLnb6

Show HN: A simple, open-source Notion-like avatar generator https://ift.tt/FtBvcWD August 19, 2023 at 06:02PM

Show HN: Open-Source outcome- / usage-based billing engine for AI Agents https://ift.tt/d8OsnvF

Show HN: Open-Source outcome- / usage-based billing engine for AI Agents https://ift.tt/zIjuxqT June 29, 2025 at 12:12AM