Re: How to set up/start a Project?

2020-07-08 Thread federico3
I use [https://github.com/FedericoCeratto/nim_project_maker](https://github.com/FedericoCeratto/nim_project_maker) to initialize projects with some useful files

Re: Benefit of the effect system?

2020-07-02 Thread federico3
I wish the effect system could be used to implement sandboxing. The stdlib procs that run system calls could be tagged accordingly, and the application's "main" could then set up a sandbox at runtime to allow only the required system calls.

Re: Structure of a web project

2020-06-17 Thread federico3
I usually place HTML templates in "templates/.tmpl" See [https://nim-lang.org/docs/filters.html#available-filters-stdtmpl-filter](https://nim-lang.org/docs/filters.html#available-filters-stdtmpl-filter)

Re: Nim's popularity

2020-06-17 Thread federico3
If popularity or quick growth becomes the main priority, aspects like innovative features and good design become secondary. Differently from many other languages, Nim is quite uncompromising and is aiming very high. > 4\. Epic Marketing: Nim is doing nothing here. Hype-driven popularity

Re: How mature is async/threading in Nim?

2020-05-19 Thread federico3
Parallelism/concurrency and async are some of the few pain points of the language. ARC/ORC together with [https://github.com/mratsim/weave](https://github.com/mratsim/weave) might be very promising.

Re: A good word for idiomatic nim?

2020-05-18 Thread federico3
nimetic: when you Nim code is also valid Python and fools language detectors.

Re: New blog, with some Nim articles

2020-05-15 Thread federico3
I think "optimization wall" is not always understood without a bit of context. More importantly, languages can have a very steep climb, instead of a wall, that makes optimization possible but not worth the effort. IMO Nim allows for progressive, smoother optimization. [Ahem, if we exclude the

Re: RSS feed of nimble.directory doesn't work. Notification is stopping.

2020-05-01 Thread federico3
Fixed, thank you!

Re: Automated Nim Packages Security Audit

2020-04-27 Thread federico3
> malicious actor can always check if it's being run under some tool like this Yes, or simply leave a vulnerability around that can be later exploited.

Re: Nim version of Flask Web Framework

2020-04-17 Thread federico3
If you want to add auth to existing frameworks: [https://github.com/FedericoCeratto/nim-httpauth](https://github.com/FedericoCeratto/nim-httpauth)

Re: Creating dynamic libraries as nimble package

2020-04-09 Thread federico3
A benefit of shared/dynamic libraries is that they can receive security updates from the OS without having to rebuild and deploy all impacted applications. It's crucial in many scenarios.

Re: Idea: Nim Online Conference

2020-04-01 Thread federico3
How about having some regular conference calls during this days, while many people are staying at home due to the lockdown?

Re: Is RSS URLs of nimble directory broken?

2020-03-26 Thread federico3
There's a bug report - now fixed - at [https://github.com/FedericoCeratto/nim-package-directory/issues/27](https://github.com/FedericoCeratto/nim-package-directory/issues/27) Thanks!

Re: Midday Commander [retrofuturistic file manager]

2020-03-26 Thread federico3
Midnight commander [1] is actively developed and quite popular. Do you plan to reach feature parity or have new features? [1] [https://en.wikipedia.org/wiki/Midnight_Commander](https://en.wikipedia.org/wiki/Midnight_Commander)

Re: Nim lang for Raspberry Pi devices

2020-03-16 Thread federico3
Raspbian already provides the official Nim 1.0.6 package from Debian: [https://archive.raspbian.org/raspbian/pool/main/n/nim](https://archive.raspbian.org/raspbian/pool/main/n/nim)/

Re: Raylib Forever (4Nim)

2020-02-13 Thread federico3
Shameless plug: This can help updating the naming style: [https://github.com/FedericoCeratto/nimfmt](https://github.com/FedericoCeratto/nimfmt)

Nim 1.0.6 is out!

2020-01-27 Thread federico3
Details at [https://nim-lang.org/blog/2020/01/24/version-106-released.html](https://nim-lang.org/blog/2020/01/24/version-106-released.html)

Re: Goto based exception handling

2020-01-11 Thread federico3
I think we are conflating two types of exceptions: recoverable ones, that can be safely catched and enable granular error management, and fatal ones that Nim cannot handle, where the only safe option is a restart. I would argue that the second type should be exceedingly rare by default, due to

Re: Get local ip address

2020-01-08 Thread federico3
We have a dedicated proc for this in the net module: [https://nim-lang.org/docs/net.html#getPrimaryIPAddr](https://nim-lang.org/docs/net.html#getPrimaryIPAddr)

Re: How to make a new lib work for nimble.packages?

2019-12-20 Thread federico3
"no version" -> you need to create tags on GitHub in order for Nimble to treat it as a version "install test failing": As you can see from [https://nimble.directory/ci/badges/diff/nimdevel/output.html](https://nimble.directory/ci/badges/diff/nimdevel/output.html) Nimble thinks the repository

Re: Is it possible to browse the nimble.directory?

2019-12-13 Thread federico3
The current tags are far from descriptive, while categories organize packages only along one arbitrary dimension. A much better taxonomy in used in Debian by Debtags:

Re: How to Maintain a Nim Chinese Community

2019-12-13 Thread federico3
How are you guys fetching Nim packages? I could host them on [https://nimble.directory](https://nimble.directory) if needed. Let me know if it would help.

Re: Comparing languages by their popularity with their Rosetta Code implementation terseness.

2019-12-12 Thread federico3
Expressiveness and readability are much more important than byte or line count. Unfortunately it can only be sensed by reading and writing a sizeable amount of code.

Re: Is it possible to browse the nimble.directory?

2019-12-07 Thread federico3
Unfortunately packages.json is not categorized and the tags are not based on structured classifiers, see [https://github.com/nim-lang/packages/pull/339](https://github.com/nim-lang/packages/pull/339) I'd be happy to add browsing pages if we had categories or if the Curated-Packages had a

Re: Nim is the friendliest language to start

2019-12-02 Thread federico3
We could assume: popularity = corporate_hype + 0.3 * quality + random() ...and despite the correlation, things that both very good and very popular are really rare compared to very-good _OR_ very-popular

Nim 1.0.4 is out!

2019-11-27 Thread federico3
Blog post: [https://nim-lang.org/blog/2019/11/26/version-104-released.html](https://nim-lang.org/blog/2019/11/26/version-104-released.html) (The Debian package is currently uploading and the Ubuntu one will follow)

Re: How to package external packages into a single standalone binary

2019-11-11 Thread federico3
Nim favors static linking by default. If bignum has no runtime dependency on any shared objects (DLL) the binary contains everything you need to run. Static linking comes with some disadvantages, for example that end users need to update the whole application every time a critical issue is

Nim v. 1.0.2 is out!

2019-10-23 Thread federico3
Enjoy - [https://nim-lang.org/install.html](https://nim-lang.org/install.html) It's also available in Debian Unstable.

Re: I dunno what's so hard to understand about it.

2019-10-22 Thread federico3
I support a smoother deprecation process, like the one Araq suggested, because the abrupt change in #12321 creates conditions where csize has different meaning in Nim 1.0.0 and the next release, making it difficult to maintain backward compatibility in libraries. Also, the deprecation process

Re: Create a firewall / Net IDS with Nim lang

2019-10-16 Thread federico3
What traffic capturing speed do you want to achieve? DPDK is a monster, perhaps

Re: Terseness and productivity in Nim vs other languages

2019-10-12 Thread federico3
A lot of people find Nim's expressiveness comparable to Python. I find static types in Nim increase productivity even over Python although the ecosystem and tooling are not that rich.

Re: Safety of staticRead and StaticExec?

2019-10-10 Thread federico3
@Lachu: the official Nim packages in Debian are using reproducible builds successfully. @cheatfate: sounds like you are describing staticRead and staticExec as a way to obfuscate malicious code. There are many other ways to obfuscate Nim code e.g. with complex macros. I wonder if sandboxing a

Re: Nim for my future project ?

2019-10-03 Thread federico3
> The definition of open source at opensource.org seems to be quite > restrictive; by common sense, sources are open, if just are freely > accessible, in the original, non-obfuscated form. In this case common sense is not correct. Making sources available online does not provide legal rights

Re: Introducing nim-metrics - a client library supporting Prometheus, StatsD and Carbon

2019-10-03 Thread federico3
There's also a lightweight StatsD-only library: statsd_client [https://github.com/FedericoCeratto/nim-statsd-client](https://github.com/FedericoCeratto/nim-statsd-client)

Re: Nim source size

2019-09-30 Thread federico3
The Debian (and therefore Ubuntu) package recommends gcc and build-essentials and uses only 31MB. There is also a nim-doc package that contains documentation. You can use it to build a Docker image with everything you need.

Re: Nim on MIPS

2019-09-20 Thread federico3
FYI: Nim is building and passing its tests on mipsel and mips64el: [https://buildd.debian.org/status/package.php?p=nim](https://buildd.debian.org/status/package.php?p=nim)

Re: Call to all nimble package authors

2019-09-15 Thread federico3
Nimble could provide various quality suggestions when "nimble release" is called, including: * How to fix the package structure if needed * Use structured tags from a list similar to [https://pypi.org/pypi?%3Aaction=list_classifiers](https://pypi.org/pypi?%3Aaction=list_classifiers) *

Re: How to use file system watcher (fsmonitor) in Nim?

2019-09-15 Thread federico3
Fswatch supports Linux, most BSDs, OSX and Windows [http://emcrisostomo.github.io/fswatch](http://emcrisostomo.github.io/fswatch)/

Re: Is anyone working on a port of simdjson?

2019-09-09 Thread federico3
A wrapper for the shared library would be nice.

Re: Should I include translated sources into version control?

2019-09-02 Thread federico3
> new Nim compiler version produces different nimcache sources from the same > .nim sources, so which ones are the "real" ones now? This is a feature rather than a problem. The .nim files are the "real" sources and the .c files are artifacts. If you commit the .c sources you can then inspect

Re: Nim vs. Python & Groovy (string splitting): Why is string splitting so slow in Nim?

2019-08-18 Thread federico3
Nim is usually among the fastests languages around. Occasionally you run into a shockingly slow proc without warnings in its documentation. Having a large set of language/stdlib benchmarks could really help but so far there's been little interest creating and maintaining such set.

Re: State of Nimble packages

2019-08-14 Thread federico3
Nimble could run better checks when releasing a package [https://github.com/nim-lang/nimble/issues/632](https://github.com/nim-lang/nimble/issues/632)

Re: State of Nimble packages

2019-08-14 Thread federico3
The Nimble package directory can help with this, see: [https://nimble.directory/about.html](https://nimble.directory/about.html) If someone wants to contribute you can contact me on IRC

Re: What text editor are you using for Nim?

2019-08-05 Thread federico3
Neovim user here.

Re: Hyphens Not Allowed in Nim Filenames? [Invalid Module Name]

2019-07-23 Thread federico3
It's also quite common to use hyphens in project names, git repositories and project home pages - including many projects in Nimble. Being able to keep consistent naming across project name, filenames, executable name and imports instead of a random mixture of "my-project" "my_project" and

Re: Simple P2P library

2019-06-22 Thread federico3
I might release one. What is your use-case exactly?

Re: International meetup or conference?

2019-06-21 Thread federico3
A Devroom at FOSDEM would be really nice.

Re: Nim v0.20.0 is here (1.0 RC)

2019-06-07 Thread federico3
Nim 0.20.0 is now in Debian Unstable and will trickle down to Ubuntu and other derivatives.

Re: Nim v0.19.6 released

2019-05-14 Thread federico3
The package is entering Debian Experimental right now. I'll upload it to Sid/Unstable after some testing and later Ubuntu and other derivatives.

Re: Question about colorized output with nim (console application)

2019-05-13 Thread federico3
A working example: [https://github.com/FedericoCeratto/nim-dashing](https://github.com/FedericoCeratto/nim-dashing)

Re: Nim in CircleCI

2019-04-21 Thread federico3
This page collects known configuration for buildservices: [https://github.com/nim-lang/Nim/wiki/BuildServices](https://github.com/nim-lang/Nim/wiki/BuildServices)

Re: Is there a 2D game framework recently updated for Nim ?

2019-04-07 Thread federico3
> And Nim lacks the build tools, available for every Go programmer. What tools?

Re: What is the best way to run a nim program as daemon?

2019-03-11 Thread federico3
There are different init system and tools to run an application as a daemon without having to increase your application's complexity. Currently a lot of distributions ship systemd by default as it provides features like automated health check and restart and security sandboxing. I wrote a

Re: Noob question: proper way to read binary files byte by byte

2019-02-27 Thread federico3
No, memfiles use the memory mapping mechanism provided by the OS (e.g. mmap). [https://nim-lang.org/docs/memfiles.html](https://nim-lang.org/docs/memfiles.html)

Re: LMDB shared across processes

2019-02-17 Thread federico3
@Gregbalfourd I added a multithreaded test to [1] and improved the library a bit. [1] [https://github.com/FedericoCeratto/nim-lmdb](https://github.com/FedericoCeratto/nim-lmdb)

Re: Stats for Nimble packages

2019-02-05 Thread federico3
Please also keep in mind that counting downloads is not very meaningful for languages using statically compiled libraries: often CI systems pull them on every build.

Re: watchcode: not written in Nim, but at least for Nim ;)

2019-01-28 Thread federico3
I wrote [https://github.com/FedericoCeratto/nim-testrunner](https://github.com/FedericoCeratto/nim-testrunner) (testrunner in Nimble) for a similar use.

Re: How to "install" a newly built Nim on a directory?

2019-01-19 Thread federico3
Run ./install.sh from the source directory after building to extract the required files. The "compiler" directory is currently included but it should not really installed according to

Re: FOSDEM 2019

2019-01-17 Thread federico3
We created a dedicated Telegram group at [https://t.me/NimFOSDEM2019](https://t.me/NimFOSDEM2019) to avoid spamming the general discussion group.

Re: Any advices for performant tcp listener?

2019-01-14 Thread federico3
Nim is a good choice for this use-case because it's going to have very little overhead. Anyhow you are mostly system-bound. Consider using SO_REUSEPORT and spawning enough processes to use the two cores fully.

Re: ptr arithmetics?

2018-12-11 Thread federico3
NESM comes in handy for data [de]serialization [https://github.com/xomachine/NESM](https://github.com/xomachine/NESM)

Re: Should we get rid of style insensitivity?

2018-11-22 Thread federico3
> many of those who definitively rejected Nim for its case insensivity will > have, anyway, rejected Nim for other reasons Stating that the same group of people dislike style insensitivity, GC, etc is a bold claim.

Re: Should we get rid of style insensitivity?

2018-11-18 Thread federico3
I do not want a vote. As GULPF wrote, Nim needs stability. Breaking compatibility to fix language warts is beneficial as long as it happens occasionally. A lot of people express concern about style insensitivity fearing that it leads to inconsistent naming withing the same project or even

Re: FOSDEM Stand 2.0?

2018-10-20 Thread federico3
Count me in!

Re: Version 0.19.0 is out

2018-09-28 Thread federico3
Nim 0.19.0 is in Debian Unstable since yesterday evening. Derivative distributions will fetch the package in the next days. A little dashboard: [https://repology.org/metapackage/nim/versions](https://repology.org/metapackage/nim/versions)

Re: [Help]update nim ubuntu package

2018-09-17 Thread federico3
@MoKhaild123 I'll try to get the official package in Ubuntu updated. In the meantime you can pull the package from Debian (it's the source used by Ubuntu): [https://packages.debian.org/sid/nim](https://packages.debian.org/sid/nim)

Re:

2018-03-26 Thread federico3
> Packages in any registry, however "real", can disappear because of security > or legal reasons. The current registry requires merge approval to remove a package. This can be used to prevent "leftpad"-like disastrous takeovers.

Re: Increasing Nim exposure

2018-03-15 Thread federico3
wavexx: for some time the forum was able to mirror posts to dedicated mailing list. Unfortunately the SMTP integration has been shut down. There was also an attempt at receiving messages from the mlist using POP - see [https://github.com/nim-lang/nimforum](https://github.com/nim-lang/nimforum)

Re: Module logging: how to create the right Logger(s) in a library?

2018-02-13 Thread federico3
Logging in libraries is pretty common across different languages. It's not invasive as long as libraries do not explicitly configure loggers to create files and so on. The application is at the root of a hierarchy of loggers and can set verbosity and backends for all imported libraries.

Re: Nim on Ubuntu - only old version?

2018-01-02 Thread federico3
geo555 you can pick packages from Artful Aardvark (the current stable release) or Bionic Beaver. They both ship 0.17.2 and are imported from Debian. There is also HTML documentation in the nim-doc package. [https://launchpad.net/ubuntu/+source/nim](https://launchpad.net/ubuntu/+source/nim)

Re: bytes to hex string

2017-11-15 Thread federico3
There's an open PR for this: [https://github.com/nim-lang/Nim/pull/6517](https://github.com/nim-lang/Nim/pull/6517)

Re: Has anyone considered if Nim would be a good fit for a

2017-11-01 Thread federico3
@monster: since you mentioned Kubernetes - most container orchestration systems can deploy and run arbitrary binaries in Linux containers. What matters is performance and memory usage (and having small binaries is a little plus). Nim is quite good in all of those.

Re: project organization question

2017-10-23 Thread federico3
Relevant: [https://github.com/nim-lang/nimble/issues/413](https://github.com/nim-lang/nimble/issues/413)

Re: Simple logging with module filename and line number

2017-10-05 Thread federico3
Spam: if you need more logging helpers: [https://github.com/FedericoCeratto/nim-morelogging](https://github.com/FedericoCeratto/nim-morelogging)

Re: FSMonitor

2017-09-12 Thread federico3
I'm using fsmonitor in [https://github.com/FedericoCeratto/nim-testrunner](https://github.com/FedericoCeratto/nim-testrunner)/ and I'll be happy to support other OSes if fsmonitor did so.

Re: Reproducible builds (stop mentioning nimble install)

2017-05-10 Thread federico3
Speaking of which, it's useful to track what dependencies (and exact versions) were used in a build and ship this information with the binary. This can be used to automatically identify if a binary was built against libraries affected by known vulnerabilities or that use obsolete protocol/file

Re: Crypto Stuff

2017-02-19 Thread federico3
Speaking of crypto wrappers, a fairly complete wrapper for libsodium is at [https://nimble.directory/pkg/libsodium](https://nimble.directory/pkg/libsodium) or [https://github.com/federicoceratto/nim-libsodium](https://github.com/federicoceratto/nim-libsodium) Peer reviewers with experience in

Re: Please , can we stop spams?

2016-12-24 Thread federico3
I've seen flagging working well for other forums. When a comment is flagged as spam by N users a moderator will be able to remove the comment and block the account that posted it. If regular users abuse the spam flag the moderator can block their account instead. N=1 is probably enough to start

Re: noob: json to object conversion

2016-11-25 Thread federico3
I'm told that while marshal uses JSON, there is no guarantee that it will not change.

Re: netwatch 1.0.0 - network monitor written in nim

2016-11-08 Thread federico3
@JohnS: are you developing this? [https://github.com/johnscillieri/psutil-nim](https://github.com/johnscillieri/psutil-nim)

Re: StackOverflow Nim Documentation Proposal

2016-09-08 Thread federico3
Issue created for the edit button: [https://github.com/nim-lang/Nim/issues/4736](https://github.com/nim-lang/Nim/issues/4736)

Re: Nim Documentation - a GitBook version

2016-09-06 Thread federico3
> Anyone can raise a PR, but my perception is that very few do so I think an "Edit me on GitHub" ribbon on the online copy of the docs could help. > a periodic "lets figure this out together moment". Some other projects are running monthly conference calls to improve communication across

Re: Document breaking changes in advance

2016-07-27 Thread federico3
@andrea currently [http://ci.nim-lang.org](http://forum.nim-lang.org///ci.nim-lang.org)/ is doing only nimble install, indeed, but this is already catching some libraries that fail to install. Running full unit/functional test suites might be unnecessary for this use-case and too heavy on the

Re: StackOverflow Nim Documentation Proposal

2016-07-21 Thread federico3
I don't know about StackOverflow Documentation, but the GitHub wiki allows exporting pages. We could use it for collaborative editing and then extract good pages and merge them into the mainline doc at release time.

Re: Love nim but at the same time starting to hate it...

2016-07-08 Thread federico3
I recommend using a local copy of the docs and using theindex.html when looking for something. IMO the docs would benefit from examples, usage patterns, and more linking across pages (e.g. between manuals and library docs) Maybe adding a "help improve this page" GitHub ribbon to the online