Re: Twinprimes generator that showcases Nim

2018-04-09 Thread jzakiya
Hey SolitudeSF thanks for the tip. Hey Miran, this is `Open Source Software` so you can modify it as much as you want. I think all you have to do is comment out the line that puts out the enter number message to get what you want. But as I said in the initial post, people should feel free to

Get all entities in a module?

2018-04-09 Thread Udiknedormin
I'm wondering whenever it's possible to iterate over all entities available in a module. My main idea is a wrapper module macro, which could sort-of-borrow other type's procedures declared in another module.

Re: Twinprimes generator that showcases Nim

2018-04-09 Thread miran
Thanks @SolitudeSF! Here are my results for i7-970 hexa-core @ 3.2 GHz. Nim 0.18.1 (devel), GCC 7.3.1, Linux kernel 4.9 10_000_000_000 0.544 secs 50_000_000_000 2.954 secs 100_000_000_000 5.513 secs 500_000_000_000 73.863 secs 1_000_000_000_000

Re: The terminal module and reading the non-alphanumeric key presses

2018-04-09 Thread h42
The easiest thing to do is do a read on stdin with a buffer big enough to hold the longest sequence. I only do this sort of thing on posix systems so posix read with a size of 6 should cover all function key escape sequences. The problem is bit bigger if you want a general solution. Different

Re: The terminal module and reading the non-alphanumeric key presses

2018-04-09 Thread bronikowski
Thanks Udikendormn, that makes sense. So, what would the solution be? If F1 puts that sequence of three values into stdin and getch() plucks one (and blocks, so I can't call it one after another). Would catching the start of a sequence and just reading next bytes out of stdin work?

Re: UTF8 problem ?

2018-04-09 Thread moigagoo
Windows 10 latest Insider Build on Fast Ring. Both samples are showing properly with chcp 650001 in ConEmu:

Re: UTF8 problem ?

2018-04-09 Thread matkuki
Reproduced on Windows 10. Using **default** encoding shows: ┼Ĺalma while using the **chcp 65001** encoding shows an empty string, while the direct terminal command **echo őalma** displays the string correctly.

Re: UTF8 problem ?

2018-04-09 Thread miran
Windows 8.1, cannot reproduce.

nim Exercism track

2018-04-09 Thread Frosh_VII
Hey, I don't know how many of you know about Exercism, but it's a great utility for programming practice, and they're trying to get a nim track off the ground: [http://exercism.io/languages/nim/launch](http://exercism.io/languages/nim/launch) , so if anyone's interesting in contributing,

hang up Alonso or even Suh

2018-04-09 Thread Monicacutich
American footbal won't hang up Alonso or even Suh | Miami Herald Baltimore Ravens quarterback Later on Flacco (6) receives upward slowly and gradually right after getting struck through Miami Sharks Kiko Alonso within the 2nd one fourth with the Meters T Lender Arena inside Baltimore Matt

mixture of confuses along with sunshine every

2018-04-09 Thread Monicacutich
BenFred's A few: Questionnaire claims — soccer execs on top of Stanton-to-Cardinals | Bill Frederickson | stltoday Nowadays A mixture of confuses along with sunshine every day as well as cloudy atmosphere during the day

Legal professional symbolizing Uber motorist

2018-04-09 Thread Monicacutich
Legal professional symbolizing Uber motorist requires National football league to investigate Ronald Darby defense involving Jameis Winston American footbal inspired to consider Darby protection involving JameisPhiladelphia Eagles15dDrew Brees can be looking lower his or her very last greatest