Wishlist: Ideal UI library for Nim

2023-06-29 Thread federico3
> > Companies want to brand their UI/UX. > > Let them build their own UI frameworks paying their own money. Seconded. Having different applications use the same UI components makes desktop use less distracting and even less tiring. Also this allow customizing the whole desktop consistently, e.g

Twitter Clone in 60 lines of Nim

2023-06-29 Thread federico3
Very nice! How is the browser receiving events? Is there a polling loop or is it using websockets?

Wishlist: Ideal UI library for Nim

2023-06-26 Thread federico3
GUIs are difficult. The most promising I found so far is because libadwaita seamlessly supports desktop and touchscreen use and requires little boilerplate.

How doeas NIM differ from Mojo programming language?

2023-06-13 Thread federico3
Compared to Nim, Mojo is less mature and not open source yet. However it is designed to be backward-compatible with Python and allow progressive typing and performance improvements. This allows reusing the existing (massive) amount of Python libraries and tools.

Atlas shrugged...

2023-06-12 Thread federico3
Nimble supports dedicated directories using the `NIMBLE_DIR` env variable or the `nimbledebs` directory:

Best Web Framework Features?

2023-05-26 Thread federico3
Somebody called it "Resume Driven Development". As a side note, the "hyperscale" companies are not using most of the new fancy tools of the month internally, especially around critical infrastructure.

Best Web Framework Features?

2023-05-24 Thread federico3
I'd be happy with a minimalist threaded HTTP server in the stdlib. Next, a HTML oriented framework (think hotwire) without build dependencies.

Malebogia

2023-05-17 Thread federico3
Backpressure and absence of unbounded queues/channels is also crucial for availability, in applications when running out of memory is not acceptable. Also in most services response time and jitter needs to be constrained making any unlimited wait not suitable. Now, locks can be useful but they

Malebogia

2023-05-15 Thread federico3
Looks similar to \- which is quite promising. I wonder if something similar could be used with async workers to solve the problem of unhandled exceptions. BTW is the name meant to refer to

Can't import compiler/* anymore

2023-05-11 Thread federico3
This is related to \- the last line indicates: > The "compiler" directory contains compiler sources and should not be part of > the compiler binary package This is also related to and it impacts

pure nim io_uring library

2023-05-09 Thread federico3
I opened to suggest supporting io_uring in the standard library.

Mojo Language: Similarities/Differences with Nim, Potential Lessons for Adoption

2023-05-04 Thread federico3
Mojo sounds promising: there's as massive data science/AI community aching for a faster Python with a gentle adoption curve. For example, the `fn` functions seems to go in that direction (), where people first port over regul

State of HTTP Servers in Nim

2023-04-13 Thread federico3
> Most people's solution to the HTTP server problem seems to be "put it behind > Nginx." Not only is this ignoring the problem (why should your application > server NEED to be behind a reverse proxy?), Sorry for the sidetrack. Running web services behind Nginx (and often behind external load ba

Nim in production #2: 100k+ WebSocket connections on one small VM, lots of CPU and RAM to spare

2023-04-05 Thread federico3
> eventually the server will oom. This is totally the same as async though imo, > with caveats as always. Unmanaged queues are usually a pattern to be avoided due to the bad failure mode (oom) but also because clients can timeout and generate unnecessary load. Often it's better to apply (increm

Nim v2.0.0 RC2 is out

2023-04-03 Thread federico3
The stdlib provides pegs: \- which potentially could be safer than regexps.

Dear library developers,

2023-04-02 Thread federico3
There's an issue open for that:

Nim enters top 50 programming languages list on TIOBE Index!

2023-03-08 Thread federico3
COBOL is even growing in adoption ( ) Allegedly a number of financial entities tried the "new shiny thing" known as Java and went back to a more stable ecosystem. I doubt they would consider Nim :)

Multilungual Nimdoc

2023-01-16 Thread federico3
See and

OpenSSL/DTLS Support in Nim

2023-01-10 Thread federico3
You can implement encryption using but doing file transfer over UDP would require implementing retransmission and ideally also congestion control.

OpenSSL/DTLS Support in Nim

2023-01-09 Thread federico3
`std/openssl` is meant to provide only a minimal subset of OpenSSL functions to provide TLS.

Official Fediverse (e.g. Mastodon) account?

2023-01-08 Thread federico3
There are already accounts writing announcements and summaries and I can set up bots to track specific sources if people are interested.

A seasoned programmer's take on Nim's docs

2023-01-07 Thread federico3
Indeed OpenSSL has a lot of sharp edges, that's why I use [libsodium](https://libsodium.gitbook.io/doc/) :)

Why is Rust faster than Nim in this CSV parsing example?

2022-12-06 Thread federico3
provide mmap based file access. memSlices does 0-copy memory slicing as an alternative to splitLines

Best way for ipc between a rust app and Nim app?

2022-11-25 Thread federico3
A local socket is enough. The tricky part is the serialization format. Msgpack could be an option for good performance. See

Building Nim + Nimble on Ubuntu 22, "could not import: SSL_get_peer_certificate"

2022-11-23 Thread federico3
1.6.10 should fix OpenSSL 3. You can try the RC2 version, see:

new to nim install fail Ubuntu 22.04.1 LTS

2022-11-15 Thread federico3
I understand your worry! Hopefully OpenSSL 3 will be supported in 1.6.10 and 2.0

new to nim install fail Ubuntu 22.04.1 LTS

2022-11-14 Thread federico3
Pity that canonical did not include the nim package in Ubuntu 22. If it can be of help, you can pull the package from Debian.

Nim 1.6.10 release candidate

2022-11-03 Thread federico3
Would it be possible to add support for OpenSSL 3.0 in 1.6.10 please? It's impacting a number of users.

Nimscript and GPL

2022-10-28 Thread federico3
@sls1005 it's common to include a file named LICENCE or COPYING at the root of a repository to **hint** that all files in the project are under the same license unless stated otherwise. A safer option is to also include a little header on top of every file, for better clarity. You are not requi

Nim 1.6.8 released!

2022-09-29 Thread federico3
OpenSSL 3 support is not mentioned in the changelog. How comes? (see )

How to install packages via nimble on a machine without internet

2022-08-30 Thread federico3
Unfortunately Nimble does not have a concept of "tarball" packages like most languages, making it difficult to distribute or preserve the package ecosystem. You might be interested in

Alternative to gravatar for the forums?

2022-08-18 Thread federico3
Codeberg might be the ideal candidate for FOSS projects, especially as Gitea is going to support decentralized forges. Regarding analytics, runs locally on the webserver and generates static HTML pages that can be served without any security risk. No javascript, no 3rd pa

Alternative to gravatar for the forums?

2022-08-14 Thread federico3
...not to mention cloudflare.

Nim packages dependencies visualizations

2022-07-24 Thread federico3
If there is interest for this I could add and direct dependency listing to I'm concerned about the increasing fragmentation of dependencies in the Nim ecosystem leading to low stability and high churn. Would people be interested in a dependency health gauge to be dis

openSUSE Reaches First-Class Support for Nim Language

2022-07-14 Thread federico3
Nim is provided by many distributions at this time. Repology provides a (somewhat simplistic) overview: Debian (and its derivatives) provides Nim since 2015 and a handful of libraries. They can be listed with `apt-cache rdepends nim`

Which metrics we should collect for each commit if building a GitHub Action bot?

2022-06-29 Thread federico3
The runners are likely to be VMs on a shared hypervisor, causing unpredictable performance changes even within a CI run.

Which metrics we should collect for each commit if building a GitHub Action bot?

2022-06-29 Thread federico3
Measuring code coverage from tests and showing changes in coverage due to the PR could help improve testing.

Announce: at, a tool to run code later

2022-06-14 Thread federico3
More like `systemd-run --on-calendar ...`

Small improvement discussion: Use `let` to lock variable previously declared as `var`

2022-05-31 Thread federico3
The examples with only one variable used in a block or brackets looks a bit misleading to me. Often you have a handful of variables in the local scope, some of which you might want to "freeze" at different times. Writing code in awkward patterns or introducing complex macros just because we don

Building Nim + Nimble on Ubuntu 22, "could not import: SSL_get_peer_certificate"

2022-05-23 Thread federico3
Nim 1.6.6 does not support OpenSSL 3. See

Nim v2: what would you change?

2022-05-20 Thread federico3
Easy and safe multithreading.

Nim v2: what would you change?

2022-04-30 Thread federico3
More batteries included: Microsoft Excel became a popular programming environment in finance and trading (despite being Excel) mostly because it provided spreadsheet+charting+programming in one relatively monolithic and stable package. Distributing a set of libraries together with the compiler

Newbie questions about Nim, Python, XCB

2022-03-30 Thread federico3
When it comes to GUI, gintro supports libadwaita which allows creating application that work equally well on desktops, tablets and smartphones.

Why doesn't echo have tag WriteIOEffect?

2022-03-21 Thread federico3
Dedicated effects for debugging+logging+metrics could be useful. Most of the time these are seen as "out-of-band" activities.

best practice or guidelines on using log in a library?

2022-02-13 Thread federico3
> logging creates an "out-of-band" channel through which information is > returned and if you also return it in the API, you've created API duplication The out-of-band aspect of metrics and logging is its main feature: the information is consumed by somebody who is not the API caller. This is w

best practice or guidelines on using log in a library?

2022-02-10 Thread federico3
Not having logging and application metrics is a frequent reason for large companies / FAANGs to fork or rewrite popular libraries, in my experience. Good metrics and logs are crucial in many environments. And application metrics are becoming more popular. Of course it's always up to the main mo

Nim devroom at FOSDEM this weekend

2022-02-07 Thread federico3
They are not published at the same time. This just came out: Nim concurrency Past, Present and Future with Araq

Nim's autoformatter situation

2022-02-03 Thread federico3
[nimfmt](https://github.com/FedericoCeratto/nimfmt) is based on nimpretty and add a couple of features. The most important one is detecting is the same variable or proc appears with inconsistent style (myVar, my_var, myvar) and optionally fix it. It can be configured to prefer a specify style o

Privacy offensive - remove Google Analytics from the Nim website

2022-01-19 Thread federico3
The website is also using Cloudflare, which breaches visitors privacy by acting as a proxy. Cloudflare is also hostile to visitors using Tor.

How to dynamically link LGPL nim library to closed-source nim application?

2022-01-19 Thread federico3
Unfortunately MPL does not protect against tivoization, patents and does not grant trademark usage rights. See It could be useful to have a "standard" LGPLv3-with-static-linking-exception license in the project initialization step

nimble.directory down ?

2022-01-18 Thread federico3
It's back up now - thanks!

Why don't build Nim libraries ecosystem on Rust ecosystem?

2022-01-18 Thread federico3
This thread is why I use Nim. Because core developers, especially Araq and mratsim, bring state of the art research into the language and these ideas come up in conversations. Nim might not be a popular language but it's a heck of a learning tool.

Man pages?

2022-01-13 Thread federico3
If it can be of help, `nim jsondoc foo.nim` generates `htmldocs/foo.json` that can be parsed to generate other formats. Unfortunately the JSON body contains chunks of HTML that would need to be converted. If you succeed could you please share the manpages?

is computer online?

2022-01-06 Thread federico3
Usually you should not try to test if connectivity is available because 1) it introduces a race condition between test and use 2) tests can be unreliable as xigoi pointed out 3) sending out spurious traffic is bad network citizenship 4) it introduces unnecessary complexity and delays. Hovever,

compiling nim from source on low memory SBC

2022-01-01 Thread federico3
If it can help, Nim is packaged in Debian and built for approx 10 architectures including ARM. Also, the package supports crosscompiling.

A rant about Nim bugs

2021-12-30 Thread federico3
TL;DR Distributing Nim with a rich standard library or with a bundle of "core" libraries is important for many use cases. In some organizations the same team writes software, selects 3rd party dependencies, builds, deploys and runs it. Despite the popularity of continuous deployment, the majori

Nim : Style insensitivity , snake_case , camelCase

2021-12-30 Thread federico3
[spam]: I put together a linter that can switch naming style automatically: Interestingly, most people I know find snake_case more readable and they are not German speakers.

Nim with curly brace and tab

2021-12-21 Thread federico3
Using a mouse occupies your attention (and your eyes) to follow the pointer and aim. This is similar to hunt-and-peck typing instead of touch-typing or using touchscreens while driving.

Energy efficiency

2021-11-18 Thread federico3
Rather than comparing languages in absolute, I think it's worthwhile to consider energy (or computational) efficiency achieved in given amounts of developer working time. Here Nim already has a advantage in terms of productivity. Add to that compile-time execution, templates and macros and it b

SSL/TLS certifictae issues with Nim 1.4.4?

2021-08-19 Thread federico3
Is the ca-certificates package installed?

More Nim on more Microcontrollers!? (Arm CMSIS / Zephyr RTOS)

2021-08-13 Thread federico3
Months ago I created for embedded systems but also drivers for sensors, devices etc - perhaps we should have an official repository under instead?

Nim earns mention in the news (unfortunately?)

2021-08-05 Thread federico3
Indeed. Viruses, trojans, malware have been obfuscated using encryption, polymorfism, self-mutation etc for decades. Switching language to avoid detection sounds dubious. Furthermore, Nim compiles to C and analyzing malware written in C is pretty routine.

NimConf 2021: Saturday, June 26th 2021

2021-06-11 Thread federico3
See the blog post:

Nim JSON parsing is 30 times slower than Node.JS

2021-06-03 Thread federico3
There is a bunch of issues related to JSON performance: #12833 #3809 #12152 and nim-lang/RFCs#188 Perhaps it's worth linking them in and showing a big warning on the top of the page.

Nim Developers Worldwide

2021-06-01 Thread federico3
There's already a 5-years old Nim group on Linkedin: It's quite dormant like most Linkedin groups.

IRC freenode staff exodus

2021-05-26 Thread federico3
More evidence of concerning behaviors from the new stuff are coming out [1][2] Also many claims made by Andrew Lee on hacker news seem dubious [3] Can we please move the Discord/Gitter bridge bots from Freenode to the new channels on Libera? 1

Nim Standard Library - How expansive should it be?

2021-04-30 Thread federico3
Using Nimble packages create risks around their availability, security, forward and backward compatibility with Nim versions, proliferation of dependencies, and lifespan. I still hope in the idea of vetting a set of "core" packages and optionally ship them together with the compiler.

4th Nim online meetup

2021-04-21 Thread federico3
/ is also handy

hashing stored passwords

2021-04-18 Thread federico3
uses password hashing from libsodium as well

Multi-threaded features needed for Server

2021-04-09 Thread federico3
People are asking "how-to" questions around threading and sharing memory relatively often. I think it's a sign that the manual need some more extensive examples/how-tos/tutorials (or links to external resources).

Performance against Python: find substring in string

2021-04-08 Thread federico3
@nyggus Ubuntu "groovy" provides version 1.2.6 and "hirsute" provides 1.4.2

More Nim on more Microcontrollers!? (Arm CMSIS / Zephyr RTOS)

2021-04-03 Thread federico3
There's #nim-embedded on Freenode

Show Nim: Puppy - Easy HTTP(S) requests without DLLs, --d:ssl or cacerts.pem.

2021-03-07 Thread federico3
Puppy seems to be dynamically linking Libcurl. Does it means Puppy will do things listed in like automatically reading .netrc ?

What are the latest developments in the Nim compiler?

2021-02-04 Thread federico3
Following PRs, RFCs or discussions on IRC and the forum requires a significant investment in time and needs to be done routinely. Perhaps a weekly summary of the main ongoing activities and requests for feedback could help attract contributors.

Nim Community Survey 2020 Results

2021-01-21 Thread federico3
To put the numbers in perspective: 15% less responders, 5% less Nim users but the poll time was 40% shorter. The fraction of Nim users increased by 8% The average number of poll participants per day increased by 6%

AVR Support?

2021-01-04 Thread federico3
We are seeing a bunch of regression when compiling for AVR or other microcontrollers, making it tricky to find a working combination of --gc / --os / noSignalHandler / useMalloc

Nim for mobile

2020-12-20 Thread federico3
I'm using gtk3+libhandy: / So far the only libhandy wrapper for Nim is

Nim (1.4 ORC) v.s. Rust in terms of safety?

2020-12-18 Thread federico3
> I don't think that it's has ever been really successful regarding adoption > (Ada being a prime example of that). Ada is very popular in safety-critical environments, especially aeronautics. FOSDEM has a dedicated developer room with a growing community. Personally, I wish Nim could have simi

How to rewrite nim programming langauge to be pythonic as possible?

2020-11-28 Thread federico3
I thinks it's more productive to focus on the similarities that people often find between Nim and Python: * Expressiveness and readability, contrasted to boilerplate-intensive languages (Go, Java, Rust, ...) * Plain English keywords and stdlib proc names instead of punctuation marks (Perl,

How do you deal with dependencies in Nim ?

2020-11-16 Thread federico3
This is not a very Nim-specific problem, but about software lifecycle in general. Various software distributions take a "snapshot" of the ecosystem at a given point in time and provide one given version of each library. This ensures that specific set of libraries and tools are well tested toget

Nim videos and tutorials survey

2020-11-02 Thread federico3
Can I suggest: * Wrapping C libraries * Gtk * OpenGL

What is the carbon footprint of the NIm?

2020-10-22 Thread federico3
+1 on measuring energy (Joules, Wh...) rather than CO2 Also, the bulk of energy usage of an application is in its runtime rather than compilation - by far. Nim might be one of the most energy-efficient languages around, as it is very much correlated with CPU efficiency. As the ratio of battery

Version 1.4.0 released

2020-10-17 Thread federico3
Update: has been replaced with a different tarball (without updating the version number) but it's now missing the Nimble sources. I'm being told that a new tarball is being prepared.

Is there any PWA (Progressive Web Apps) framework or package written in nim?

2020-09-10 Thread federico3
It's useful to have webapps that are fully usable when javascript is disabled and add cosmetic and usability improvements when it's enabled. I have this need for work right now. Some of the existing solutions implement server-side rendering with added benefits on speed and bandwidth but they ar

Growth of popularity and Nim community

2020-09-07 Thread federico3
In various system programming (and scientific) environments people care about the stability of the ecosystem and the ability to package, rebuild, distribute and maintain a codebase over time.

Nimble package structure and interop changes

2020-09-01 Thread federico3
Disk space might not be a problem for some users (but not all), but it's a proxy for sprawling dependency trees. Dependencies need to reviewed for quality, security and legal compliance, can become incompatible over time, have vulnerability, and so on. They become exponentially expensive to mai

Nimble package structure and interop changes

2020-08-31 Thread federico3
The biggest pain point for me is that there is no reliable way to create an OS package for a Nim library (or tool) from a GitHub tag / tarball.

Brainstorming ideas to improve Nim's landing page

2020-08-28 Thread federico3
I feel that the landing page and FAQ focus on what Nim is and its syntax and don't mention the language philosophy and long term goals. Something like: "Nim is ambitious project. We value state-of-the-art, research-based design over easy compromises. We strive to reach for the speed of C, the r

Nim sighted in the wild

2020-08-22 Thread federico3
Ah, this explains why gintro has been packaged into Parrot: [https://repology.org/project/gintro/versions](https://repology.org/project/gintro/versions) This is among the first handful of Nim libraries to reach OSes, together with some packages in Debian. I'll try to package gintro as well.

getting an SSL connection to work

2020-08-18 Thread federico3
Indeed the documentation in [https://nim-lang.org/docs/httpclient.html#sslslashtls-support](https://nim-lang.org/docs/httpclient.html#sslslashtls-support) should be improved Documentation on setting the SSL context is available at [https://nim-lang.org/docs/net.html#newContext%2Cstring%2Cstring

Nim website front page redesign (unofficial and WIP)

2020-08-12 Thread federico3
I miss the original style e.g. [https://web.archive.org/web/20150217215322/http://nim-lang.org](https://web.archive.org/web/20150217215322/http://nim-lang.org)/ \- it had its personality.

cross platform symmetric and assymetric cryptography

2020-07-29 Thread federico3
I wrote the [https://github.com/FedericoCeratto/nim-libsodium](https://github.com/FedericoCeratto/nim-libsodium) [https://github.com/FedericoCeratto/nim-gnutls](https://github.com/FedericoCeratto/nim-gnutls) wrappers for the reasons listed so far: implementing cryptography from scratch is alwa

Procedural X86 inline assembler for Nim

2020-07-25 Thread federico3
A little reminder for other readers: timing attacks pop up often when people implement their own cryptography or other security functions that require string equality checks. Unless you have very strict performance requirements, there are well-know cryptographic libraries that have Nim wrappers