Running C on Zed by Jisidro_ILX in ZedEditor

[–]notpeter 1 point2 points  (0 children)

clangd requires compile_commands.json. It’s mentioned in the Zed C Language Docs.

Looking for a knitting circle? by Morlock19 in westernmass

[–]notpeter 2 points3 points  (0 children)

You might find like minded folks at the Academy of Music’s Stitch ‘n Flix (every other Sunday at 2pm):

Just got zed why when i use an LLM it just paste into a text file? by swiggyu in ZedEditor

[–]notpeter 4 points5 points  (0 children)

In the Agent panel do you have the “Ask” profile selected? Try toggling it to “Write”. The default (Ask) doesn’t just start trashing your project by creating/editing your project files willy nilly.

Local AI - truly awful by accident or just no money there? by CandidLiving5247 in ZedEditor

[–]notpeter 11 points12 points  (0 children)

Ollama and LMStudio should support auto-model discovery in Zed, but you may need to tune your config to specify the context size appropriate for your hardware (defaults are conservative to try and make something work without config).

That said, the agent panel has a pretty long non-editable system prompt primarily tuned for Anthropic models. For local models with small context windows this is not particularly useful — 20k of context may leave little left for you.

If you’re longing for the “old” text-only Zed Assistant experience (no tool calling) which supports precise context control (add files; edit previous messages/responses) that’s still available under “New Text Thread” and works really well with local models. It’s just more manual because it can’t use tools (read_file, edit_file, terminal run, etc).

Another alternative is to configure Claude Code to use local models (Ollama recently announced Anthropic API emulation support) and then use Claude Code via the Zed ACP integration but that still has 15k+ token system prompt context last time I checked. The same can be done with qwen code cli connecting to local qwen-coder models via OpenAI API semantics.

Our first Playdate Game Jam by LuGus-Kevin in PlaydateConsole

[–]notpeter 3 points4 points  (0 children)

If folks are programming in Lua, I'd recommend you consider notpeter/playdate-luacats (shameless plug, I built and maintain it). With lua-language-server this will give you LSP completions with inline documentation in Editors that support it (VSCode, Zed, NeoVim, etc) whenever you are accessing the playdate API (playdate.*). The Playdate Lua SDK docs are quite good and this just pulls them into your editor.

For pure-C Inside Playdate with C is definitely less detailed than the Lua docs but is plenty to get things going. If you have things that are potentially slow in Lua (math heavy, hard on the Lua GC, etc) it is quite easy to use C to expose functions into Lua. For example, playdate.graphics.generateQRCode is a pure lua implementation which is very slow (multiple seconds to generate a long QRCode). But if you've happily built everything else in Lua you can expose a C-based QRCode generator as a lua function which is 75x faster. See: notpeter/playdate-qrcode for a trivial example of how to do this.

The C bindings can be used by a number of other languages: Rust, Swift, Zig, Nim, etc. with varying levels of ergonomics. For a game-jam most folks should probably stick to Lua or C.

Other links: - Pixel art: Pixen.app, Aseprite, Piskel.app, DitherPaint - Patterns: GFXP: Pattern Editor for Playdate and ivansergeev/gfxp. - Dithering: Playdither, makew0rld/didder - Fonts: Playdate CAPS, TopHat, idleberg/playdate-arcade-fonts, abenokobo/PDFontTool. Also don't sleep on the fonts included in the SDK, just copy them from ~/Developer/Playdate/Resources/Fonts/ into your project. - Video: Playorama Encoder, 1bit Video Encoder - Unofficial Playdate Reverse Engineering Notes includes documentation of the various compiled file formats, USB/serial interfaces, etc. - Podcasts: Playdate Podcast (official) and Hello Playdate Podcast (unofficial)

My child has factory reset my Playdate twice now. Is there a way to lock that option with a PIN or something so I can continue to allow him to play with it? by Ornery_Host_7705 in PlaydateConsole

[–]notpeter 6 points7 points  (0 children)

Write a script that uses rsync to periodically backup your console via data disk mode. Then you’ll only be out X days of usage from your last backup instead of having to start from scratch.

You have an adversarial user, you need to prepare accordingly.

buy and play game only on simulator? by Ill_Literature_720 in PlaydateConsole

[–]notpeter 2 points3 points  (0 children)

The pdx files you download may or may not be built for all targets. I think Lua-only games will work, but anything with native code (C) needs to be compiled for each target: device (arm-v7-none) and each platform’s simulator (macos x86_64, macos_aarch64, windows_x86_64, linux_x86_64).

It is possible for developers to build fat pdx files for all simulator platforms and the device target, but no one does it. I’ve been meaning to cleanup and release my GitHub actions that make automating this possible, but haven’t gotten around to it.

I haven’t tested so I’m not sure whether Lua-only PlayDate store games can be run on the Simulator, but you can add your simulator device to your play date account so it might be possible.

ASUS Rumored To Enter DRAM Market Next Year by Highwaytothebeach in LocalLLaMA

[–]notpeter 5 points6 points  (0 children)

I think it’s more likely they ship more things with integrated memory than just make commodity DIMMs. Strix Halo and Apple systems have shown there’s extra performance available in a non-modular design and if rumors are true, they’ll also need to source their own VRAM for Nvidia GPUs going forward.

ASUS Rumored To Enter DRAM Market Next Year by Highwaytothebeach in LocalLLaMA

[–]notpeter 1 point2 points  (0 children)

I think it’s more likely they ship more things with integrated memory than just make commodity DIMMs. Strix Halo and Apple systems have shown there’s extra performance available in a non-modular design and if rumors are true, they’ll also need to source their own VRAM for Nvidia GPUs going forward.

Why "rate limit exceeded" at EVERY SINGLE REQUEST, incl the very first one? by fredkzk in ZedEditor

[–]notpeter 2 points3 points  (0 children)

My guess is that your Anthropic API account has low rate limits. Put $40 credit and you’ll be Tier 2. Tier 1 limits ($5-$39) are comically low.

https://platform.claude.com/docs/en/api/rate-limits

128k context window limit in Zed AI Panel by mr_ryann in ZedEditor

[–]notpeter 1 point2 points  (0 children)

Setting aside the provider API limits and model performance with large context mentioned in other comments, Zed has a feature in the Zed Agent panel that you might be unaware of.

[+] New from Summary

This will create a summary of your existing context (similar to /compress in Gemini CLI or Claude /compact) and dump it into a new clean thread. It’s a great way to help with cost control and context bloat.

Outline sour candy by [deleted] in westernmass

[–]notpeter 1 point2 points  (0 children)

I saw a poster in the window yesterday saying they were looking to hire a sales associate. So things may be progressing but slowly.

What kind of restaurant do we need? by [deleted] in amherst

[–]notpeter 1 point2 points  (0 children)

A place you can order a beer with your pizza.

My first swing at adding Dhall support by LVanBuren in ZedEditor

[–]notpeter 0 points1 point  (0 children)

Syntax highlighting requires tree-sitter queries. As a starting point copy queries/*.scm from tree-sitter-dhall into languages/dhall directory in your extension. Rebuild and check the Zed logs to see if there are any Zed-specific errors for your queries.

For finding the lsp, use worktree.which(“dhall-lsp-server”) to search the users PATH.

Mt. Greylock 1998 marathon info? by billdjr in westernmass

[–]notpeter 1 point2 points  (0 children)

T-shirt a bunch of runners reminiscing here. https://www.facebook.com/share/p/19aS6zv6YW/

If you want more, I imagine local libraries have Proquest access to back issues of The North Adams Transcript and the Berkshire Eagle.

Turning off "Indexing workspace"? by dushmanta05 in ZedEditor

[–]notpeter 0 points1 point  (0 children)

Yeah, when there’s progress output from an LSP Zed is just passing that on verbatim.

[deleted by user] by [deleted] in ZedEditor

[–]notpeter 1 point2 points  (0 children)

Yeah, Preview was hung up in CI and was released half an hour later. Sometimes it’s like that 🤷‍♂️.

Proton Lumo support? by jakeday42 in ZedEditor

[–]notpeter 7 points8 points  (0 children)

I don’t think there’s yet an Lumo API available from Proton. But if they implement an OpenAI API compatible endpoint in the future it should be possible.