hello all

2021-05-27 Thread hypnos97
hi alll I'm newbie member nice too meet you all I'm strongly considering porting a project to Nim. It is a single 1.7k lines C file (not C++). I've ported the core over with some refactors to see how working with Nim is since the main reason for porting is ergonimic. Now I'd like to get an idea

Open file > 2GB on raspi OS 32

2021-05-27 Thread giaco
Following as I'm having same problem on raspian lite (that's a 32bit release)

Date issue. What happened in 1940?

2021-05-27 Thread lscrd
Yes I understand, but as I said the problem is not only with DST but also with time zone changes. When a country changes its timezone as it was the case several times in France between 1902 and 1968 (in my second example), this may cause troubles when we want to count the number of days between

Libraries: geometry - 3d - coord systems

2021-05-27 Thread treeform
I use library I have written: github: docs: See a 3d gltf loader written using vmath: See orbital mechanics using vmath: I use vmath in

Date issue. What happened in 1940?

2021-05-27 Thread treeform
I think there is several different confusions here mainly do to timezone's day light savings time transitions (DST). * Days are not 24 hours long, they can be 23 and 25 hours when switching 1 hour forward or one 1 hour back during daylight savings time (DST). Or even some other random number

Date issue. What happened in 1940?

2021-05-27 Thread lscrd
Yes, it seems to be a known problem. I never encountered it before but also never played a lot with dates. Better avoid local time is some cases and use UTC which is much more predictable.

Date issue. What happened in 1940?

2021-05-27 Thread shirleyquirk
shades of

How to debug: SIGBUS: Illegal storage access. (Attempt to read from nil?)

2021-05-27 Thread xigoi
I feel like `cast` should be renamed to `unsafeCastUnsafeThisIsNotATypeConversionDoNotUseThisUnlessYouKnowWhatYoureDoing`.

Problem installing nimble via ./koch on linux

2021-05-27 Thread ggibson
Does installing the right header files solve your problem?

how to handle concurrent requests when my chronos based web framework with chronos based mysql lib

2021-05-27 Thread bung
I recently run a framework benchmark , during concurrent test it raise pending reading operation, I realise I can't do concurrent operation on mysql, how to correct handle this use case ? related code:

Problem installing nimble via ./koch on linux

2021-05-27 Thread brunomerod
So, I'm trying to install nimble via ./koch and I'm getting the following error. Ubuntu 20.04 In file included from /usr/lib/gcc/x86_64-linux-gnu/9/include/syslimits.h:7, from /usr/lib/gcc/x86_64-linux-gnu/9/include/limits.h:34, from /home/br

How to respond to an OPTIONS request?

2021-05-27 Thread carterza
I've never had to explicitly handle an `OPTIONS` request in any web framework I've used in my 10+ years of web development experience... I believe these requests are generally related to CORS and are required for the browser to figure out what communication options are available (what kind of r

FutureVar in async

2021-05-27 Thread dom96
It's used to work around the limitation that closure iterators have, which is that `var T` cannot be used in arguments. Ideally we would transform `var T` in arguments to a `FutureVar` (or fix support in the compiler).

How to respond to an OPTIONS request?

2021-05-27 Thread jasonfi
I'm trying to send a POST request to a Jester web-service from Flutter. However Flutter is first sending an OPTIONS request. How do I respond to this with Jester? Here's a relevant document I found, but it's high-level: An exa

5th Nim online meetup

2021-05-27 Thread carterza
Could we maybe create some public calendar where we can see upcoming Nim related events? I know it's not directly related to this post, but I don't check the forums daily so having some calendar I could occasionally consult without searching through the forums would be amazing.

FutureVar in async

2021-05-27 Thread arnetheduck
What is `FutureVar` used for? We're considering its future in `chronos` and haven't found much practical use for it - getting rid of it would simplify things. I imagine that perhaps it's used for `var` parameters of `async` functions as an alternate way of returning things, but it's not entire

c2nim -- minor update

2021-05-27 Thread Araq
There is `#mangle` that can do that. But c2nim could do that as the default, yes. Probably by patching `typeAtom` in `cparse.nim`.

How to escape colon in the '&' macro in strformat ?

2021-05-27 Thread ynfle
Araq was saying that they should make a new version of 1.6. Nim versions released on even numbers and developed in odd numbers, so 1.6 would never be on devel

Date issue. What happened in 1940?

2021-05-27 Thread lscrd
Thanks all for your answers. I indeed live in France and I was aware that there are hour changes when France was occupied. But I didn’t know that there was a DST on 1940 February 25th (and in fact many DST before war; this is in fact an old and unpleasant idea). So this makes sense… in this exa

Nim Devel - how to (re-) build it?

2021-05-27 Thread shirleyquirk
related: nim looks for `dochack.nim` and `nimdoc.css` in a path relative to the location of the compiler binary so if you've installed `nim` in `/usr/bin` like a sane person, it assumes `/usr/tools` exists choosenim will build devel from source fo

Libraries: geometry - 3d - coord systems

2021-05-27 Thread mantielero
Do we have any library to work with geometry? I am not talking about displaying 3d data. Somethin like [this](https://docs.sympy.org/latest/modules/vector/coordsys.html). The closest thing that I found is [nim-glm](https://github.com/krux02/nim-glm).

How to debug: SIGBUS: Illegal storage access. (Attempt to read from nil?)

2021-05-27 Thread ElegantBeef
Worked through this a bit with them in the real time chat, turns out they were using `cast` to convert a different inherited type to their desired type, minimal reproduction here: type A = ref object of RootObj B = ref object of A name: string C = ref obje

Date issue. What happened in 1940?

2021-05-27 Thread xigoi
Relevant:

JS FFI - getting started

2021-05-27 Thread mantielero
Thanks a lot. This is much easier than the macro that I was trying to implement. In order to handle `seq[tuple]` I just added: func set(tt: seq[tuple]): seq[JsObject] = result = newSeq[JsObject]() for t in tt: var tmp = newJsObject() for name, value in t.