windy
shady
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
windy
-
Show HN: C-ocoa, Write iOS/macOS apps in any language, with a generated C API
Interesting project, though I'd rather just use Obj-C. I guess if you wanna use it in something like JavaScript or Lua it'd make sense to have C as a bindi g layer.
> https://gamepipeline.org/betray.html
Interesting, I've been using a similar project for Nim lately: https://github.com/treeform/windy
It's surprising how simple Obj-C interaction is compared to Java JNI or something. Here's the Obj-C interop for Windy:
- macdefs: https://github.com/treeform/windy/blob/master/src/windy/plat...
- How can I add graphics to my nim program?
-
How to detect and even save key presses
I used https://github.com/treeform/windy in my text editor. It's a pure Nim library like SDL. For separate keypresses I used a state machine where every keypress advances the state and when it reaches an end state the action performed. Works pretty well ^
-
Simple Gamepad Support
I made it because I really like pixie/boxy/windy combo, but there is no gamepad support built-in.
-
Is Fidget usable for implementation of 3D rendering?
The author Fidget actually has a number of other great libraries that are part of the rendering stack. Notably, Pixie for text and shape rendering in 2D, Boxy for rendering textures to the GPU via opengl, and then Windy for an OS window context and user events, and a number of other libraries related to 3D rendering.
shady
- How can I add graphics to my nim program?
-
I learned 7 programming languages so you don't have to
I have used Nim for personal projects for 6 years now and it continues to surprise me on how well versed it is for many problem domains. I am fond of it's SPA framework, karax https://github.com/karaxnim/karax for which I wrote a translation utility https://github.com/nim-lang-cn/html2karax Latest Nimv2 release candidate has improved in the ergonomics and syntax that affect compilation to js, so I was able to cleanup my webapp's code to be less verbose. On GPU programming there has been a few projects that touch GPU programming, most notably https://github.com/treeform/shady
-
Why I enjoy using the Nim programming language at Reddit.
This includes the GPU! Yep, that’s right. You can write shaders in Nim. This makes shader code much easier to write because you can debug it on the CPU and run it on the GPU. Being able to run the shader on CPU means print statements and unit tests are totally doable.
-
Compile time evaluation in Nim, Zig, Rust and C++
You can do a lot with Nim at compile time, check out my talk on Nim Metaprogramming not just for FizzBuzz, but real world applications: https://fosdem.org/2022/schedule/event/nim_metaprogramming/
I am working an a macro to compile Nim code into GLSL. So not only can you write Nim to C or Nim to JS, it can also (in limited way) do Nim to GLSL GPU Shaders. See here: https://github.com/treeform/shady
I am also working on a macro system similar to SWIG, where using a some macros one can write a Nim library and generate wrappers for your NIM library for many languages like C, Python, JS, Ruby. See here: https://github.com/treeform/genny
-
Building a simple room-based chat application in Nim (using HTMX)
See this as one of the examples: https://github.com/treeform/shady
It makes debugging shaders much easier as you can use print statements and unit tests. You can also share code between CPU and GPU side.
What are some alternatives?
FreeCAD - This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler. Issues are managed on our own bug tracker at https://www.freecadweb.org/tracker
karax - Karax. Single page applications for Nim.
imgui - ImGui bindings for Nim via cimgui
RFCs - A repository for your Nim proposals.
cpython - Alternative StdLib for Nim for Python targets, hijacks Python StdLib for Nim
flask_example - Simple examples of the power of flask
NimForUE - Nim plugin for UE5 with native performance, hot reloading and full interop that sits between C++ and Blueprints. This allows you to do common UE workflows like for example to extend any UE class in Nim and extending it again in Blueprint if you wish so without restarting the editor. The final aim is to be able to do in Nim what you can do in C++
pixie - Full-featured 2d graphics library for Nim.
pixels - Toy support library for primitive graphics programming.
Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
nim_emscripten_tutorial - Nim emscripten tutorial.