#nimlang - как оказалось, весьма неплохой язык программирования. И автор - интересный немец.
#nim is a weird (and hard) language... It feels like multiple languages mixed all together… but damn, I still managed to add a feature I want for a project without actually learning it
#nim #nimlang #foss #programming
Okay, adding #swift Automatic Reference Counting (ARC), which is thread safe, to what my dream #programmingLanguage should have. Compared to Swift, #nim their preferred implementation, ORC, doesn’t leak memory when dealing with reference cycles. Although I don’t know if #nimlang their implementation it thread safe, as well.
Maybe my theoretical #languageDesign should use atomic operations and warn, but leak upon reference cycles. It seems to make the implementation easier but still thread safe.
#swift #programminglanguage #nim #nimlang #languagedesign
DREAM:
- A systems programming language with the safety of Rust
- a package manager
- the ecosystem/community size of Rust
- the tooling from C/C++ (debugger and LS)
- ALL OF THAT with a Ruby-like syntax.
The answer could be Crystal, but unfortunately it has a tiny tiny ecosystem and Windows is a 2nd class citizen and Crystal has probably the slowest compiler on Earth.
Nim is probably the answer (I'm already into Nim), but Nim loses on tooling. Suggestions?
This Saturday we (me and @hugogranstrom) are back with #nimib speaking hours! Come join us if you are curious about #nimib and #nimlang! https://calndr.link/event/FIR7M9Unkd https://github.com/pietroppeter/nimib/discussions/207
Nice read. Be interesting to do a similar integration that @mitchellh did here integrating #zig and #swiftui but instead integrating #scala #scalanative and #swiftui https://mitchellh.com/writing/zig-and-swiftui
#zig #swiftui #scala #scalanative #nimlang
@lenary @dom hi Sam and welcome! Nim added some time ago support to prove validity of certain statements (e.g. if an index is out of bound, if after a sort algorithm an array is sorted, …) using z3. The functionality is called DrNim. It has not been very successful yet (cannot recall examples of other people using it) but it is still there for people to play with it… https://nim-lang.org/docs/drnim.html #nim #nimlang
And... I adopted the Nim lang officialy into work!
For Bash tasks, using NimScript.
So far I always added tasks to our Elixir monolithic app, but it always required making a new deployment and starting a new Heroku console instance which always start a new pool of DB connections (fake it till you make it!).
Or of course, I'd write plain Bash scripts.
For some tasks there's no way to avoid plugging into the Elixir codebase, but for others, I'll keep using Nim. #Nim #NimLang
#NimLang on Apache #NuttX RTOS 👍
Source: https://github.com/apache/nuttx-apps/blob/master/examples/hello_nim/hello_nim_async.nim
@b0rk and for those interested in how it works in #nimlang the dragonbox implementation was added in 2021 and made available in 1.6 https://github.com/nim-lang/Nim/pull/18139
Why Use Nim over C#?
https://forum.nim-lang.org/t/9957
Discussions: https://discu.eu/q/https://forum.nim-lang.org/t/9957
Nim recap for week 8/2023
https://discu.eu/weekly/nim/2023/8/
Get RSS feeds and support this bot with the premium plan: https://discu.eu/premium
How to write a Lexer in Go using State Functions --- by an original Go author --- applicable to all languages including Nim
https://www.youtube.com/watch?v=HxaD_trXwRE
Discussions: https://discu.eu/q/https://www.youtube.com/watch?v=HxaD_trXwRE
Nim Macros For Internationalization ( i18n ) and Localization ( l10n )
https://github.com/heinthanth/ni18n
Discussions: https://discu.eu/q/https://github.com/heinthanth/ni18n
and a new #nimibook release is out, 0.3.1 (work by me and @hugogranstrom), motivated by the work Phil (not on Mastodon?) is doing to provide @CanLehmann owlkettle with nimibook-powered docs: https://github.com/pietroppeter/nimibook/releases/tag/v0.3.1 sometime a powerful way to contribute is just using a library. it does indeed provide extra motivation! #nimlang
sometimes in a PR the things you are proud of is not the fix itself but the (sort of) clever way in you can write a low effort test:
```nim
check renderedToc.count("<ol") == renderedToc.count("</ol>")
```
#nim #nimlang #nimibook
https://github.com/pietroppeter/nimibook/pull/75/commits/480d23b792c87bdb4cec9b4975becf8a33ff37d2#diff-61d20432180f5dad2da497d3960543daeee6008c0c9d8d4de07d886409ebdd4aR34
Nim recap for week 7/2023
https://discu.eu/weekly/nim/2023/7/
Get RSS feeds and support this bot with the premium plan: https://discu.eu/premium