newbie kick-in-the-pants: nim as a cgi application

2021-08-19 Thread martin
Yup, that helped. Ty :)

The `db_postgres`, distinguish "" from NULL

2021-08-19 Thread geohuz
> I have a similar question, for the following statement: db.exec(sql"insert into data (name) values (?)", name) Run the name field could be a string value or null, what is the best way to deal with it?

newbie kick-in-the-pants: nim as a cgi application

2021-08-19 Thread sdmcallister
Maybe check out thos thread

newbie kick-in-the-pants: nim as a cgi application

2021-08-19 Thread martin
oh boy. $ :-) why is it in there then?

newbie kick-in-the-pants: nim as a cgi application

2021-08-19 Thread ynfle
It's the same as a string, except in tainted mode which is deprecated

SSL/TLS certifictae issues with Nim 1.4.4?

2021-08-19 Thread ynfle
What's the issue?

Togel Online

2021-08-19 Thread bandartogel
Togel Online Terbaik dan Terpercaya Aktif 24 Jam /

newbie kick-in-the-pants: nim as a cgi application

2021-08-19 Thread martin
as embarassing as this question is: what does one do with a tainted string?

Why `except` doesn't catch `SIGSEGV: Illegal storage access. (Attempt to read from nil?)`?

2021-08-19 Thread alexeypetrushin
> You're not supposed to "catch" bugs, you're supposed to fix them. Well... I'm supposed to live on my own island and sail on yacht. How things supposed to be and how they are in reality are different stories. Let's hope though one day I'm going to have my island, and Nim will be able to identi

SSL/TLS certifictae issues with Nim 1.4.4?

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

SSL/TLS certifictae issues with Nim 1.4.4?

2021-08-19 Thread geohuz
I'm having this problem under ubuntu, with nim 1.4.8, how can I fix it?

Is it possible to mix c and c++ backend?

2021-08-19 Thread Araq
> Should I prefer one backend? You should prefer the C++ backend as it performs better type checking and has a usually faster exception handling implementation.

Is it possible to mix c and c++ backend?

2021-08-19 Thread Clonk
If it's a C++ library you're wrapping, then you'll need to use the C++ back-end.

Is it possible to mix c and c++ backend?

2021-08-19 Thread bitstorm
Many thanks! I'm currently working on a new version of the arrayfire nim wrapper and have the choice to use the c or c++ arrayfire API - from my point of view both ways would work well. Should I prefer one backend?

Why `except` doesn't catch `SIGSEGV: Illegal storage access. (Attempt to read from nil?)`?

2021-08-19 Thread shirleyquirk
> You're not supposed to "catch" bugs, you're supposed to fix them. _laughs in Java_

Is it possible to mix c and c++ backend?

2021-08-19 Thread Araq
That used to be possible simply by compiling via `nim c` and the modules that require C++ interop would be fed to the C++ compiler and then the result would be linked together. However, it's not officially supported anymore as it's a nightmare to support properly.

Is it possible to mix c and c++ backend?

2021-08-19 Thread Clonk
C++ code is not valid C code. Standardized C code is valid C++ code in 99.99% of case (and you probably don't want to use the C code that is not valid C++ as it's usually some weird un-intuitive stuff). So in practice, you can just use C++ back-end.

Is it possible to mix c and c++ backend?

2021-08-19 Thread bitstorm
Hello, I was wandering if it is possible to mix modules which are build with different backends (c c++) and if so what problems may occur? Please excuse if I missed relevant information in the docs or other posts. Many thanks in advance.

Why `except` doesn't catch `SIGSEGV: Illegal storage access. (Attempt to read from nil?)`?

2021-08-19 Thread Araq
> I think such approach is wrong. Nim is not null-safe, and null errors in Nim > are not rare. And it can't catch it in default configuration. Not good. You're not supposed to "catch" bugs, you're supposed to fix them.

Simple excel/xlsx reader, support some basic operators.

2021-08-19 Thread martin
Howdy Xflywind! I would love to use your library but when trying to compile, it shows some funny usiness with zip library. I noticed that in github issues you mentioned using zippy instead - could you please advise on how to switch from zip to zippy?

Why `except` doesn't catch `SIGSEGV: Illegal storage access. (Attempt to read from nil?)`?

2021-08-19 Thread ElegantBeef
To elaborate on Arne's statement, one is not supposed to catch a defect, so do not catch them! Quoting the manual: > Exceptions that indicate programming bugs inherit from system.Defect (which > is a subtype of Exception) and are strictly speaking not catchable as they > can also be mapped to

Why `except` doesn't catch `SIGSEGV: Illegal storage access. (Attempt to read from nil?)`?

2021-08-19 Thread arnetheduck
even with the segfaults module, a `Defect` is raised which you may or may not be able to catch