Nim Programming Language

215 readers
1 users here now

founded 2 years ago
MODERATORS
1
10
submitted 3 weeks ago* (last edited 3 weeks ago) by [email protected] to c/nim
 
 

Reposted from forum.

I couldn't find an existing compilation of Nim practice websites, so
I thought it would be helpful to create one. Here's what I've found so far:

Sites with Native Nim Support:

  • Exercism - Low difficulty, excellent support, best experience, uses latest Nim compiler
  • Code Golf - Can be used as general programming challenge website, supports latest Nim compiler
  • Kattis - All ranges of difficulty, 5000+ problems, uses Nim v2.0.0
  • CodeWars - Easy and Medium difficulty, most katas use outdated Nim v1.6 compiler, some even older version
  • Sphere Online Judge - Uses Nim v0.19.4

Sites Supporting JavaScript (Compatible with Nim's JS Backend):

  • LeetCode - Add {.exportc.} pragma to your function and compile with -b:js backend
  • Potentially all other programming challenges websites that support js or nodejs, but I've only tested leetcode.

Language-Agnostic Websites (Text/Output Based):

  • Advent of Code - good quality Christmas-themed puzzles, runs in December (see y'all in a week!)
  • Everybody Codes - similar to Advent of Code, but starts one month early
  • Project Euler - mathematical/programming problems, difficulty spike past first 100 problems
  • The Weekly Challenge - submissions are not checked

Please share any other resources you know!

2
 
 

Personal note: Aside from a software demo (+very small change to other demo) and a basic 3D character controller (which I need to work on again), I really haven't worked with this much.

I have been more focused on vertex color models and their use in Godot. Haven't done much here either... but have started a collection of materials, got billboarded models* working and a simple gridmap.

*=face negative Y in blender, apply rotation. Otherwise it will not export properly.

3
7
NimConf 2024 (October 26th) (conf.nim-lang.org)
submitted 1 month ago by [email protected] to c/nim
4
5
15
submitted 5 months ago by mac to c/nim
6
11
submitted 10 months ago by mac to c/nim
7
 
 

The Nim team is happy to announce two releases:

  • the latest Nim, version 2.0.2
  • LTS release, version 1.6.18
8
9
6
submitted 1 year ago by mac to c/nim
10
 
 

Reply to So I'm kind of experiencing some cognitive dissonance

Was going to post this on an existing microblog but it won't go through for whatever reason. Reply to @futureisfoss and somewhat to @sotolf as well.

I haven't kept up w/it, but Dominik (who made the package manager and a book to say the least) quitting a little over a year ago seems like it was a significant setback all on its own (which probably has made a major difference by now).

Though I also haven't really started yet (it certainly doesn't help lacking stuff, like Godot 4 bindings are still being worked on by 1 person) so maybe me dropping it is part of why I feel cynical. The last code I did (months ago, in September), load format example (I didn't really make a complete system, because technical hangups and no idea on resulting usage)

11
23
submitted 1 year ago* (last edited 1 year ago) by dsrw to c/nim
 
 

Enu is a multiplayer programming environment powered by Nim and Godot. It's meant to teach kids to code, make 3D game programming easier, and for experimenting and having fun. It's MIT licensed and will be usable to create standalone games.

Enu is based on the belief that text based programming can be accessible to kids if made simple enough, and that text is more flexible than visual programming using tools like Scratch and Game Builder Garage. I still have lots of work to do to improve discoverability, but based on my experience using it to run a coding club and teaching my own children, I believe the theory mostly holds. It's inspired by Logo and Minecraft, has a terse syntax for building nested state machines (although it calls them Command Loops), and tries to make it possible to build full games using only simple concepts like loops and conditionals.

I've been working on Enu for almost 4 years now (very much part time) and have put out a few releases already, but I believe this is the first version that really captures what Enu is all about. Let me know what you think!

12
13
29
Nim v2.0 released (nim-lang.org)
submitted 1 year ago by unquietwiki to c/nim
14
 
 

I was playing around a bit with cellular automata, and "Brian's brain" always looks kind of fun, this is just a simple little program visualising it using curses (through illwill).

15
7
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/nim
 
 

I've finally managed to join this community from kbin, seems we were having federation problems with programming.dev.

So anyway, what sorts of projects are you all using Nim for?

Edit: Post isn't propagating. Maybe this edit will help?

16
 
 

I wrote this in Fall/Winter 2022/23 and got some use out of it for my own data archives. Haven't done much else with it since, but would be willing to add/revise some features on it, if there's interest.

17
8
submitted 1 year ago by unquietwiki to c/nim