Re: Mascot

2017-03-17 Thread dom96
Sure. You can run it locally, grab the source here: [https://github.com/nim-lang/website](https://github.com/nim-lang/website) (btw PRs are always welcome in case you want to help :))

Re: Mascot

2017-03-17 Thread def_pri_pub
@jester, those designs do look a lot better IMO.

Re: Mascot

2017-03-17 Thread perturbation2
I actually like him, but I think a little friendlier-looking would not be amiss. That badger looks like he wants to devour me if I don't get my bounds checking right.

Re: Mascot

2017-03-17 Thread dom96
> I've become a father just a month ago Congratulations @moigagoo

Re: Mascot

2017-03-17 Thread moigagoo
@dom96 > Yes, we are working on a new website design incorporating that logo. That's great news! Any chance to see the work in progress?

Re: Mascot

2017-03-17 Thread dom96
Yes, we are working on a new website design incorporating that logo.

Re: Mascot

2017-03-17 Thread evacchi
love the new website design! I don't love the typeface, but I definitely like it more than current, it looks much more current and fresh. Any ETA for seeing it live ? (not sure about the mascot idea, but the prototype is definitely too aggressive)

Re: Mascot

2017-03-17 Thread mashingan
The bear somehow gives a vibe which opposite of "gopher"

spawn & sync woes

2017-03-17 Thread marksummerfield
I have a program on Windows that tries to distribute its work over multiple threads. They key function is this: proc doJobs(config: Config) = var responses = newSeq[FlowVarBase]() for filename in getFilenames(config): responses.add(spawn doOneJob(config, file

Re: Mascot

2017-03-17 Thread bpr
> Should we have it ripping apart a Snake? Or gnawing down on a Gopher? I like the way you think! Maybe eating a crab too? OK, I did laugh, but I think that having the Nim mascot eat the mascots of other languages would not be very classy.

Re: Mascot

2017-03-17 Thread evacchi
@Fungi: you clone it from github then cd into the dir and run jekyll serve (provided you already did gem install jekyll – ruby required)

Re: Mascot

2017-03-17 Thread moigagoo
The new site looks great! Can't wait to see it live. I'm afraid I won't be able to help a lot. I've become a father just a month ago, so I'm pretty low on spare time (this is also why I had to postpone the podcast production sadly).

Re: Mascot

2017-03-17 Thread Fungi
@moigagoo @evacchi How do I run and see the new website? I don't know how to run it localy, please tell me.

Can't write to a subprocess - can't even compile

2017-03-17 Thread marksummerfield
I want to start a bunch of subprocesses and write some lines to each of them with some configuration data, then write filenames to them to process, and then tell them there's no more work to do. Then I want to gather any results they produce. The key function is this: proc doJobs(

Re: Can't write to a subprocess - can't even compile

2017-03-17 Thread mashingan
Is `$` for Stream already implemented? cmiiw, I don't find the `$` for Stream in any lib.

Re: PolyConf Call for Proposals

2017-03-17 Thread dom96
@jeff_c brilliant! Can't wait to see it. Be sure to post a link on the forum once it's live on YouTube

Re: Mascot

2017-03-17 Thread Arrrrrrrrr
I'd rather leave aside mascots.

Re: Mascot

2017-03-17 Thread hcorion
Holy smokes, I don't think I'd want to program in Nim if I saw that honey badger! I'd run away as fast as possible!

Re: Mascot

2017-03-17 Thread jester
@def_pri_pub I like your direction. Personally I like the top-middle and bottom-middle entries in [https://www.vecteezy.com/vector-art/114348-honey-badger](https://www.vecteezy.com/vector-art/114348-honey-badger).

Re: How can I detect redundant imports?

2017-03-17 Thread evacchi
@xyz32: I had a few problems with making nimsuggest work on macOS with VSCode. I ended up compyling nim from sources, then adding /path/to/Nim/sources/bin to my $PATH. FYI: previously I had Nim installed from brew and it couldn't find the binary (possibly because of problems resolving symlinks)

Re: Mascot

2017-03-17 Thread def_pri_pub
> Honey badgers are admired precisely for their capacity and inclination to do > violence. A Nim honey badger should look meaner than most I'd think. Should we have it ripping apart a Snake? Or gnawing down on a Gopher?

Re: spawn & sync woes

2017-03-17 Thread marksummerfield
doOneJob is very expensive -- and it now peaks at over 40% CPU, but I can't get it to do more than that, at least not so far. And I also don't know how to get the string out of each response -- I'd really like to be able to do that. (Right now I'm having each thread output its own data but that

Re: Mascot

2017-03-17 Thread def_pri_pub
Aww man, and here I was hoping for some sort of cutesy anime girl for a mascot. Oh well : P (Just kidding) I think having a mascot is a good idea, but I don't think that having him front and center everything would be good. Having the crown logo in more places would be better. I also think the

Re: spawn & sync woes

2017-03-17 Thread Araq
Maybe `doOneJob` needs to be significantly more expensive for the threading to kick in? If it finishes too quickly, you won't see more than one core busy.

Re: Mascot

2017-03-17 Thread inotsu
What about [this](http://imgur.com/a/GUKK7)? Dont have photoshop here right now so it looks kinda crappy. Yeah that badgers are definitely more pleasant.

Re: Mascot

2017-03-17 Thread moigagoo
That's some nightmare fuel over there

Re: Mascot

2017-03-17 Thread bpr
I think it's a bit odd to pick a honey badger for a mascot and then complain that it looks too aggressive or violent. Honey badgers are admired precisely for their capacity and inclination to do violence. A Nim honey badger should look meaner than most I'd think. I don't care for the mascot ide

Re: Mascot

2017-03-17 Thread inotsu
Honeybadgers are awesome. But this one reminds me more Godzilla or Grizly.

Re: Can't write to a subprocess - can't even compile

2017-03-17 Thread marksummerfield
Your reply shows almost exactly how I did it at first! However, I now realise that it failed to work because I hadn't imported streams, as your snippet shows, so thanks for that. The import means that it now builds and runs. It does crash though, so I'll have to look into that, but it is a star

Re: Can't write to a subprocess - can't even compile

2017-03-17 Thread Araq
You cannot use the handles with the file IO and expect things to work. osproc gives you `inputStream()` and `outputStream()` for a reason. import osproc, streams ... for i in 0..processes.high: var process = startProcess(config.subcommand,

Re: Can't write to a subprocess - can't even compile

2017-03-17 Thread marksummerfield
I can now get a variation to compile; but it doesn't actually work -- it crashes at runtime: Traceback (most recent call last) searchpdfscmd.nim(86)searchpdfscmd searchpdfscmd.nim(82)main searchpdfscmd.nim(50)doJobs osproc.nim(240) inputHandle