Re: tools documentation link is broken

2018-03-06 Thread Araq
Thank you once more. Fixed.

Re: Big integer litterals

2018-03-06 Thread Stefan_Salewski
> I have issued the majority of reports at this time Yes, indeed I remembered your name a short period after sending my post -- so I removed the question about GTK a few days ago already.

Re: Nim's status discussion

2018-03-06 Thread Libman
I wouldn't say that "corporations suck" \- they are a means to an end. They need to make things work in a cost-effective and dependable way, without making themselves dependent on genius. Average-IQ programmers are the base, the bread and butter of the industry, and so they are the standard. Ni

Re: tools documentation link is broken

2018-03-06 Thread mitai
in the same page, backend integration link is broken [https://nim-lang.org/docs/backends.html](https://nim-lang.org/docs/backends.html) All other links seems to work

Re: Big integer litterals

2018-03-06 Thread lscrd
Thank you all for your answers. Is seems that my first replies are still blocked . @Stefan_Salewski I didn't remember this paragraph, but indeed the compiler does what is written in the manual. However, in "Numerical constants" is is said that "Literals without a type suffix are of the type **

Re: compiler error in 0.18.0 ??

2018-03-06 Thread jzakiya
Stafan_Salewski, yes, thanks for reminding about that again. The twinprimes code is old (almost a year, using 0.17.x), when I was just getting seriously into converting C++ code into Nim. Using the original construct for that loop worked, because I always compiled with `gc` on. Then I started p

Re: Unable to reply?

2018-03-06 Thread lscrd
Thank you. I will wait until my messages appear in the thread.

Re: Unable to reply?

2018-03-06 Thread lscrd
Seems OK, now

Re: Unable to reply?

2018-03-06 Thread dom96
New users are in moderation mode by default so that's probably what the issue was.

Unable to reply?

2018-03-06 Thread lscrd
Hi. I submitted my first post some time ago without any problem, but my replies do not appear in the thread. To reply, I click on "reply", type my message, click on "preview" (to check if anything is OK) then on "submit". The window closes, but that's all. I have tried three times, first with th

Re: Big integer litterals

2018-03-06 Thread Stefan_Salewski
@lscrd Nim 0.18 is correct indeed -- see language manual: Pre-defined integer types These integer types are pre-defined: int the generic signed integer type; its size is platform dependent and has the same size as a pointer. This type should be used in general.

Re: Nim's status discussion

2018-03-06 Thread lightness1024
> Nim isn't for the "enterprise", which makes programming language choices > based on how easy it would be to hire replacement programmers. At least not > yet. That's very interesting. It makes sense because of less bootstrap time, but if the company has people who are so thick headed that they

Re: Big integer litterals

2018-03-06 Thread lightness1024
I just wish to say that I'm not sure of how nim behaves, but as of the C standard, nothing is said about the size of types, and definitely, the fact that int should be the natural machine's word size is an urban legend. What the C standard says about type, is the following: sizeof(char) <= sizeo

Re: compiler error in 0.18.0 ??

2018-03-06 Thread Stefan_Salewski
jzakiya, you may wonder why your program eats that much memory. I had just looked at you code, and tried this: #for byt in seg[0..Kn-1]: # count the twin primes in the segment # primecnt += uint(pbits[byt]) # count the '0' bit pairs as twin primes for jj i

Re: compiler error in 0.18.0 ??

2018-03-06 Thread guibar
Hello, I tested your code on a similar configuration (Linux 64-bit i7-2675QM 2.20GHz). With an input of 500 billions, the system had to make use of the swap and then crashed. Moreover for 50 billions, with `--gc:none`: $ /usr/bin/time ./twinprimes_ssozp5a2a Enter integer numb

Re: need an explanation of strings/add behavior

2018-03-06 Thread Libman
Thanks for pointing that out. So we don't know what the extent of the 's' bug was, but the Playground is now at 0.18.0 and it's gone.

Re: compiler error in 0.18.0 ??

2018-03-06 Thread woggioni
@jzakiya what do you mean exactly with the word "process"? I do not see usage of osproc module in your code... Also, what is an input value for which you get that error?

Re: compiler error in 0.18.0 ??

2018-03-06 Thread jzakiya
> Turn of your OS's memory overcommitment. I have no idea what this means. Giving an example would be helpful next time. Unfortunately, 0.18.0 has some bigtime regressions. I compiled the same code in 0.17.2, and not only does it compile and run correctly for all input values, the compiled bina