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 b

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: The terminal module and reading the non-alphanumeric key presses

2018-04-09 Thread bronikowski
Yeah, h24, I'll probably get ncurses, I bet I'll get stuck on another solved issue if I'll stick to trying to make RAW work for me. Thanks for your help!

Re: Function as object? Object as function?

2018-04-09 Thread Udiknedormin
Well, I know why it happened now. The declaration was injected into another module via a macro, so the {.experimental.} should be used in the caller module, not the macro defining one.

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 15

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 te

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.

UTF8 problem ?

2018-04-09 Thread k1attila1
Hi OS:Win10 (chcp 65001) It works well : var s:string s="almő" echo(s) result : "almő" It doesn't work : var s:string s="őalma" #first character UTF-8 echo(s) result : "" Than you Attila

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 McClur

Expenses James despises Battle along with believes

2018-04-09 Thread Monicacutich
Expenses James despises Battle along with believes Aaron Determine was nowhere fast close to as excellent as Jose Altuve within 2017 — Quartz Your soccer time never ever finishes with regard to information nerds. Nearly monthly as soon as the Houston Astros won the 2017 world series, Expenses Da

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, there'

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 [https://www.msuteamfansshop.com/120-david-dowell](https://www.msuteamfanss

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