<< 22-09-2015 >>

00:10:04*Sembei joined #nim
00:10:28*Varriount__ joined #nim
00:12:46*Pisuke quit (Ping timeout: 240 seconds)
00:13:21*Varriount_ quit (Ping timeout: 252 seconds)
00:15:11*strcmp1 quit (Ping timeout: 252 seconds)
00:15:44*strcmp1 joined #nim
00:41:54*Demon_Fox joined #nim
00:50:56*Erestian joined #nim
00:51:07*Erestian left #nim ("Quit.. Lost connection..")
00:51:29*AckZ quit ()
01:00:21*so quit (Remote host closed the connection)
01:01:04*strcmp1 quit ()
01:01:19*jaco60 quit (Ping timeout: 240 seconds)
01:01:47*strcmp1 joined #nim
01:06:15*vendethiel joined #nim
01:29:29*vendethiel quit (Ping timeout: 246 seconds)
01:33:10*chemist69_ joined #nim
01:35:58*chemist69 quit (Ping timeout: 240 seconds)
01:38:48*jakesyl joined #nim
01:50:14*jakesyl quit (Ping timeout: 260 seconds)
02:41:50*sarlalian quit (Ping timeout: 240 seconds)
03:28:06*NimBot joined #nim
03:30:46*jakesyl joined #nim
03:44:18*vegansk joined #nim
03:46:54*cyraxjoe quit (Ping timeout: 255 seconds)
03:47:46*cyraxjoe joined #nim
04:08:46*jakesyl quit (Ping timeout: 240 seconds)
04:13:41*Jehan_ joined #nim
04:53:38*xet7_ quit (Ping timeout: 260 seconds)
05:07:24*Jehan_ quit (Quit: Leaving)
05:18:32*gokr joined #nim
05:40:20*Jehan_ joined #nim
05:52:55*FedeOmoto quit (Ping timeout: 260 seconds)
06:16:49*yglukhov joined #nim
06:20:50*yglukhov quit (Ping timeout: 240 seconds)
06:37:17*keyle joined #nim
06:44:11*keyle quit (Quit: http://twitter.com/keyle/)
06:47:51*wuehlmaus joined #nim
06:50:18*BitPuffin|osx quit (Ping timeout: 250 seconds)
06:51:15*Ven joined #nim
07:03:21*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
07:14:10*chemist69_ quit (Quit: WeeChat 1.3)
07:20:39*Ven joined #nim
07:23:53*Ven quit (Client Quit)
07:24:43*bjz joined #nim
07:26:04*bjz quit (Client Quit)
07:36:44*bjz joined #nim
07:41:26*softinio quit (K-Lined)
07:41:27*biscarch quit (K-Lined)
07:41:27*clone1018 quit (K-Lined)
07:41:27*rob__ quit (K-Lined)
07:41:28*mikolalysenko quit (K-Lined)
07:41:28*CARAM__ quit (K-Lined)
07:41:29*DecoPerson quit (K-Lined)
07:41:29*pmbauer quit (K-Lined)
07:41:34*TylerE_ quit (K-Lined)
07:41:34*n1ftyn8_ quit (K-Lined)
07:41:34*NhanH quit (K-Lined)
07:41:39*iamd3vil joined #nim
07:43:25*TylerE_ joined #nim
07:43:31*Trustable joined #nim
07:47:06*bjz quit (Ping timeout: 272 seconds)
07:50:34*yglukhov joined #nim
07:51:38*Jehan_ quit (Quit: Leaving)
08:01:34*bjz joined #nim
08:14:26*chemist69 joined #nim
08:16:16*coffeepot joined #nim
08:36:41*Enamex joined #nim
08:43:05*jaco60 joined #nim
08:45:45*tja joined #nim
08:48:24*aziz joined #nim
08:50:15*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
08:55:39*mal`` quit (Ping timeout: 250 seconds)
08:59:09*mal`` joined #nim
09:08:04*nimbeginner joined #nim
09:08:23*nimbeginner quit (Client Quit)
09:09:35*bjz joined #nim
09:20:26*jaco60 quit (Quit: Leaving)
09:42:02*nchambers is now known as dtscode
09:45:44*DecoPerson joined #nim
09:51:00*mikolalysenko joined #nim
09:53:08*clone1018 joined #nim
09:53:11*CARAM__ joined #nim
09:53:14*rob___ joined #nim
09:53:30*pmbauer joined #nim
09:53:42*biscarch joined #nim
09:53:47*softinio joined #nim
09:53:49*NhanH joined #nim
09:55:29*n1ftyn8_ joined #nim
09:56:30*Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png)
10:05:13*irrequietus joined #nim
10:10:29*Demon_Fox quit (Quit: Leaving)
10:19:34*strcmp2 joined #nim
10:20:42*strcmp3 joined #nim
10:20:42*strcmp2 quit (Read error: Connection reset by peer)
10:21:28*strcmp2 joined #nim
10:23:35*strcmp1 quit (Ping timeout: 264 seconds)
10:25:14*strcmp3 quit (Ping timeout: 250 seconds)
10:31:49*wb joined #nim
10:36:38*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
10:38:27*bjz joined #nim
10:55:50*razaaa joined #nim
11:04:18*Ven joined #nim
11:05:26*Ven quit (Client Quit)
11:05:27*Enamex quit (Ping timeout: 244 seconds)
11:08:51*Ven joined #nim
11:09:32*Ven quit (Client Quit)
11:12:05*Enamex joined #nim
11:18:20*tja quit (Quit: Page closed)
11:28:57*razaaa quit (Read error: Connection reset by peer)
11:30:21EnamexIs there anything I can read about Nim's implementation of iterators in C?
11:30:37*razaaa joined #nim
11:32:50*Ven joined #nim
11:38:00*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11:43:39*strcmp2 quit (Remote host closed the connection)
11:45:07AraqEnamex: inline iterators are always inlined, there is nothing in C left, closure iterators produce a state machine with switch and gotos
11:52:46*BitR quit (Ping timeout: 250 seconds)
11:56:47*Enamex quit (Ping timeout: 240 seconds)
11:57:12*strcmp2 joined #nim
11:58:44*strcmp2 quit (Remote host closed the connection)
11:59:10*strcmp1 joined #nim
12:00:10*strcmp1 quit (Remote host closed the connection)
12:06:17*strcmp1 joined #nim
12:08:14*wb quit (Ping timeout: 246 seconds)
12:15:12*aziz quit (Remote host closed the connection)
12:19:29*jikai joined #nim
12:20:00jikaiDoes nim have the coroutine?
12:23:14*Ven joined #nim
12:23:23dom96jikai: yeah
12:23:42dom96closure iterators are kind of coroutines and then there is also the coro module which implements full coroutines IIRC
12:24:21*Ven quit (Client Quit)
12:25:15jikaiwhich module
12:25:31federico3dom96: what's the difference between "full" corouties and iterators?
12:27:16dom96federico3: not really sure heh
12:27:35*mal`` quit (Ping timeout: 240 seconds)
12:28:19*Enamex joined #nim
12:28:30*razaaa quit (Read error: Connection reset by peer)
12:28:56*razaaa joined #nim
12:30:43Araqfederico3: in full coroutines 'yield' is not bound to an iterator scope
12:31:53Araqthis has deep implications.
12:31:57*mal`` joined #nim
12:32:50Araqit means that a complete stack can be resumed, in other words, coroutines support recursion, iterators do not
12:33:26jikaiDoes nim fit for web develop?
12:33:40jikaiI have learn it just one day
12:33:57jikaibut I think it a really good language than go
12:37:52reactormonkjikai, just one day for a whole language seems a bit little
12:38:11coffeepotjikai: There is jester https://github.com/dom96/jester and emerald https://flyx.github.io/emerald/index.html for starters
12:38:18Araqjikai: thanks. :-) we do support async IO and Nim's forum runs on it
12:38:44*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
12:41:44jikaiok, thanks for your resource. Maybe I should learn all language firstly thant I can deep these
12:43:46*bjz joined #nim
12:45:19*jikai quit (Quit: Leaving)
12:50:52*Ven joined #nim
12:53:20*Ven quit (Client Quit)
12:55:39*xet7 quit (Quit: Leaving)
13:05:00*strcmp1 quit (Remote host closed the connection)
13:25:32*FedeOmoto joined #nim
13:30:58*BitPuffin joined #nim
13:31:50*razaaa quit (Read error: Connection reset by peer)
13:35:35*razaaa joined #nim
13:41:51*enamex_ joined #nim
13:43:36*razaaa quit (Read error: Connection reset by peer)
13:44:14*Enamex quit (Ping timeout: 265 seconds)
13:46:49*darkf quit (Quit: Leaving)
13:48:21*razaaa joined #nim
13:50:05*enamex_ quit (Ping timeout: 246 seconds)
13:57:16*Enamex joined #nim
13:59:46*iamd3vil quit (Ping timeout: 240 seconds)
14:02:31*strcmp1 joined #nim
14:03:11*Ven joined #nim
14:04:28*Ven quit (Client Quit)
14:09:48*pregressive joined #nim
14:11:11*mal`` quit (Ping timeout: 252 seconds)
14:13:18*razaaa quit (Read error: Connection reset by peer)
14:15:18*mal`` joined #nim
14:15:54*razaaa joined #nim
14:20:40*Ven joined #nim
14:21:10*razaaa quit (Ping timeout: 240 seconds)
14:23:13*Ven quit (Client Quit)
14:25:57*irrequietus quit ()
14:31:55*xet7_ joined #nim
14:31:57*Ven joined #nim
14:34:11*Ven quit (Client Quit)
14:34:57*elrood joined #nim
14:49:46*jefus quit (Ping timeout: 246 seconds)
14:52:04coffeepotIs it not possible to create a thread suspended?
14:52:46coffeepotwith the current stdlib i mean
14:53:29*enamex_ joined #nim
14:53:43*razaaa joined #nim
14:54:35Araqcoffeepot: nah, we kept the API simple.
14:54:44AraqPRs are welcome
14:54:51*Enamex quit (Ping timeout: 244 seconds)
14:54:55coffeepotok, fair enough
14:55:37*Ven joined #nim
14:58:22*razaaa quit (Read error: Connection reset by peer)
14:58:46*razaaa joined #nim
14:58:48*Ven quit (Client Quit)
15:00:05*strcmp2 joined #nim
15:03:45*BitPuffin quit (Ping timeout: 256 seconds)
15:03:47*strcmp1 quit (Ping timeout: 264 seconds)
15:06:37*dtscode is now known as nchambers
15:21:40*razaaa quit (Read error: Connection reset by peer)
15:21:46*razaaa____ joined #nim
15:27:23*strcmp1 joined #nim
15:29:19*kashyap_ joined #nim
15:29:19*strcmp2 quit (Ping timeout: 246 seconds)
15:30:06*strcmp2 joined #nim
15:31:07kashyap_Hi ... I am running into compilation error - \stdlib_system.c:7061:41: error: '__ATOMIC_RELAXED' undeclared (first use in this function) when I try to compile a program with threads on windows
15:32:42kashyap_Is this a known issue ... I am using the latest dev build of nim
15:33:39*strcmp1 quit (Ping timeout: 240 seconds)
15:34:41reactormonkkashyap_, check the issues, otherwise not.
15:35:40kashyap_okay ... I am trying the example in threads doc ... I'll check with the issues ...
15:36:11*irrequietus joined #nim
15:36:49reactormonkkashyap_, https://github.com/nim-lang/Nim/issues/2620
15:37:05reactormonkkashyap_, upgrade your gcc
15:37:37kashyap_thanks reactormonk .... I should've checked the issues first
15:42:51*strcmp2 quit ()
15:47:05coffeepotso threads module has a function that gets the 'threadId', but this is the address of the thread, and though it stores the handle in Thread.sys, it seems you cannot access this?
15:48:00coffeepotdoesn't seem like it's possible to get the thread handle unless I write my own thread wrapper
15:48:21*enamex_ is now known as enamex
15:48:37*enamex is now known as Enamex
15:51:51Araqcoffeepot: just patch system/systhreads
15:53:59*pregressive quit (Remote host closed the connection)
15:54:19coffeepotI can see why it's like this - because only windows uses the handles, but yeah might make a PR to access Thread.sys at least
15:54:57*Ven joined #nim
15:57:16*Ven quit (Client Quit)
15:57:36*smodo joined #nim
16:06:18*pregressive joined #nim
16:12:13*Enamex quit (Disconnected by services)
16:12:52*Enamex joined #nim
16:17:56*Enamex quit (Ping timeout: 265 seconds)
16:18:05*Enamex joined #nim
16:18:55*Ven joined #nim
16:22:00*yglukhov quit (Ping timeout: 264 seconds)
16:22:39*Ven quit (Client Quit)
16:27:57*xet7_ quit (Ping timeout: 252 seconds)
16:48:56*enamex_ joined #nim
16:51:15*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:51:46*Enamex quit (Ping timeout: 272 seconds)
16:53:07*xet7_ joined #nim
16:53:22*pregressive quit (Remote host closed the connection)
16:57:10*Guest20403isaway is now known as Guest20403
17:00:00*BitPuffin joined #nim
17:01:35*irrequietus quit (Ping timeout: 240 seconds)
17:01:42*thotypous quit (Quit: WeeChat 1.3)
17:08:58*thotypous joined #nim
17:16:19*pregressive joined #nim
17:17:55*UberLambda joined #nim
17:25:42*razaaa____ quit (Read error: Connection reset by peer)
17:37:39*muktabh joined #nim
17:42:21*Matthias247 joined #nim
17:43:21*razaaa joined #nim
17:48:06*muktabh quit (Ping timeout: 246 seconds)
17:51:01*smodo quit (Remote host closed the connection)
17:51:06*indiagreen joined #nim
17:58:26indiagreenis there a way to make asynchttpserver use several threads? Or maybe there's some another httpserver library that is multithreaded? (Also, while I'm at it: does this bug seem familiar to anyone or should I report it? http://lpaste.net/141483)
18:01:31*jaco60 joined #nim
18:01:46*vendethiel joined #nim
18:09:03*BitPuffin quit (Ping timeout: 256 seconds)
18:15:22*Jesin quit (Quit: Leaving)
18:15:49Araqindiagreen: check out Göran's blog, it outlines a basic multi-threaded server that uses nim's spawn
18:16:38Araqmulti-threaded asynchttpserver is in the works but afaict the people who can do it have lots of other things to do
18:17:05Araqso help if you're intestered or live with multi *processing* ;-)
18:17:57*Jesin joined #nim
18:25:42*razaaa quit (Read error: Connection reset by peer)
18:26:59*vendethiel quit (Ping timeout: 240 seconds)
18:38:36*vendethiel joined #nim
18:43:51*monikers joined #nim
18:45:32*razaaa joined #nim
18:49:17*gokr quit (Ping timeout: 256 seconds)
18:56:45*razaaa quit (Ping timeout: 268 seconds)
19:04:50*strcmp1 joined #nim
19:05:43*enamex_ quit (Read error: Connection reset by peer)
19:14:21*razaaa joined #nim
19:15:30*gokr joined #nim
19:18:55*yglukhov joined #nim
19:20:40monikersdoes this lang compile to executable binary natively on OS X / Win / Linux?
19:21:05monikersis it a good lang to begin with for a complete noob to programming itself?
19:21:16*razaaa quit (Read error: Connection reset by peer)
19:23:07*yglukhov quit (Ping timeout: 250 seconds)
19:24:23Araqhi monikers yes and I truely hope so
19:25:29monikersWhat do you hope so?
19:25:43monikersWhat do you think about it in comparison with C (C11) ??
19:25:47monikersfor a complete beginner?
19:25:59monikersgiven the material available for both?
19:26:13Araqthere is no comparison to C11, Nim is hands down easier to use
19:27:31Araqthe existing material is sufficient for beginners
19:31:27AraqNim is a power tool but in my humble opinion it's still accessible enough for progamming beginners.
19:37:06*BitPuffin|osx joined #nim
19:44:28*razaaa joined #nim
19:49:53*BitPuffin|osx quit (Remote host closed the connection)
19:50:09*BitPuffin|osx joined #nim
19:59:40*yglukhov joined #nim
19:59:56monikersAraq, Which book do you suggest?
20:00:15monikersbut there is not even a package in Debian?
20:05:41*jakesyl joined #nim
20:07:51softinio@monikers there is no book on nim yet. If you want to learn it this is a good starting point: http://nim-lang.org/learn.html
20:08:32softinio@monikers Instructions for installing nim is here: http://nim-lang.org/download.html
20:08:59softinioand off course get help here or http://nim-lang.org/community.html
20:09:03NimBotnim-lang/Nim devel 925e7b0 Peter Mora [+1 ±1 -0]: fixing TypelessParam warning in x=>x+1, added test
20:09:03NimBotnim-lang/Nim devel 5e390dc Andreas Rumpf [+1 ±1 -0]: Merge pull request #3361 from petermora/fixTypelessWarningInFuture... 2 more lines
20:09:51*razaaa quit (Read error: Connection reset by peer)
20:10:18*tmm1 joined #nim
20:11:59monikerssoftinio, so how is it better than C?
20:12:06monikerssince it is trying to be to be better?
20:13:08monikersI mean it says "It is almost C like but better than others"
20:13:15monikersWhat exactly is better?
20:13:23softinio@monikers C & Nim are different programming languages. Its more the case of your preference or taste on which one you currently prefer to use
20:14:01monikersWhat do you recommend to a complete newbie to programming?
20:14:06softinioI learnt to program in C in 1989, one thing I can tell you from my many years experience is that the learning curve for nim is shorter than C
20:14:07monikersI think nim looks fine too
20:14:34softinioAlso the time it takes for me to code is definitely longer in C than nim
20:14:45softiniobut I would not say one is better than the other
20:14:52softiniofor sure C has been around longer
20:15:48*razaaa joined #nim
20:16:02softiniowhat programming language you want to use is a very personal taste. why don't you set yourself a small project and write them in the different languages you are considering and then decide which one you enjoyed more
20:17:09reactormonksoftinio, nim offers more features than C, and a usable type system, which is something that can help you a lot. But there's more software around for C, which emulates nims type system to a certain degree.
20:17:21monikersI really want to learn code to develop small cli / gui programs that works out of the box
20:17:29monikersand compiles natively
20:17:39softinio@reactormonk I agree with you
20:18:06monikersI think C could be good as well but it is more complex and I don't know what to do anymore
20:18:11reactormonkmonikers, I'd say nim is the better language, but you'll find much more resources with C. On the other hand, you can learn how to translate C code to nim.
20:18:39monikersI wish we had an official book on NIM
20:18:57reactormonkmonikers, just gotta kick dom96 for a draft
20:19:19monikerswe need a official book for beginners
20:19:38monikersbecause Docs can only be followed by people who know stuff
20:19:40monikersnot by all
20:19:44elroodto be honest, that's not necessarily a great idea for a fairly recent and rapidly evolving language
20:20:36monikersomg
20:20:41monikersso it is not even stable yet right?
20:20:50monikersit has been in the game for 7 yrs now??
20:20:51monikers:)
20:21:03*kashyap_ quit (Ping timeout: 246 seconds)
20:21:54softinioLike @reactormonk said C certainly more complex even with lots of books on the topic
20:22:03reactormonkmonikers, yeah, but not been developed by a great many people.
20:22:07reactormonkmonikers, I started with ruby.
20:22:27elrood7 years is next to nothing for a new language. eg, the books that had been written for D (about when it was at the same age, give or take) were by and large hopelessly out of date just a few months after their release. it's pretty much just an abuse of dead trees
20:22:29softinio@monikers maybe you should consider starting with ruby or python
20:23:30reactormonkmonikers, although I like a good type system, so I'm not sure I'd recommend ruby or python...
20:23:57reactormonkmonikers, http://learnyouahaskell.com/chapters
20:24:20indiagreenehhh, I wouldn't recommend Haskell, despite it being my main language
20:24:38reactormonkindiagreen, ^^
20:24:46reactormonkindiagreen, you working with haskell professionally?
20:25:40indiagreensemi-professionally (been hobbying around for 6 years, found a job a year ago)
20:26:19reactormonkneat.
20:28:11indiagreen#nimsuccessstories: had to write a small script to analyse several GBs of data, spent 2d optimising the Haskell version, had to resort to unboxed values and my own vector type at the end, then stumbled upon Nim and was able to rewrite it in a day. The resulting version was 5× faster.
20:28:14*Demon_Fox joined #nim
20:29:42monikerswow
20:29:43monikers:)
20:30:15monikersguys the real reason I am not using a Interpreted lang is because I would only like to use a compiled lang
20:30:18monikersthe question is why?
20:30:29indiagreenyeah, why?
20:30:36softinioI looked at Haskell didn't enjoy it
20:30:49softinionim is excellent
20:31:57monikersIt is easiest and fastest way to share an executable with friends and fam.. for example if we had to develop a small pass gen from a bash script so that it works out of the box without any lib required .. I learned it is possible if we use statically linked binaries .. it should just work then
20:32:24monikersI would say if you use a compiled lang you can deploy your own applications in like 2 days
20:32:33monikersit would be working on your friend's system tomorrow
20:32:41monikersI am a hobbyist
20:33:00monikersand now all of sudden I want to develop programs :)
20:33:09monikersI am learning Bash as well
20:33:19indiagreenmonikers: http://www.py2exe.org/index.cgi/FAQ
20:33:23monikersmy other reason for joining this channel is = Binary size
20:34:04monikersI know about py2exe but .. but it is not like it works out of the box .. Python itself don't claim to be a compiled lang
20:34:09monikerswhich just sucks
20:34:39monikersi did a lot of research
20:34:49monikershaskell / rust / nim / c
20:34:54monikerswere the last options
20:35:15monikersRust's syntax is scary
20:35:28dom96indiagreen: nice!
20:35:32monikersif there was that Haskellbook ready I won't be there right now
20:35:43monikersso only options left out are C and nim
20:36:04monikerssyntax is good ..
20:36:12indiagreenI can relate to liking compiled langs and small binaries, but after several years of coding the feeling pretty much disappeared (on the other hand, it's not like learning a 2nd language will be that hard, so maybe you should go for a compiled lang after all if it's what will make you happy at the moment)
20:37:34elroodthere is a reason we are here, most of us would recommend to give nim a try, it's a nice, modern language with a performant implementation. but if you need something which is readily provided by your package-manager, with a large community, books and ready-to-use libraries for all imaginable needs it might not be the perfect fit
20:39:02NimBotnim-lang/Nim devel 31bb431 Aman Gupta [+0 ±4 -0]: s/Github/GitHub/g
20:39:02NimBotnim-lang/Nim devel 514edf3 Dominik Picheta [+0 ±4 -0]: Merge pull request #3362 from tmm1/github-capitalization... 2 more lines
20:39:17reactormonkeh.
20:39:51dom96yeah, I merged it as you commented heh
20:39:52*razaaa quit (Read error: Connection reset by peer)
20:40:28tmm1i looked for a reference and didn't see one
20:41:04tmm1https://github.com/nim-lang/Nim/blob/devel/tools/website.tmpl#L141-145 should continue to work
20:43:21monikersI just gulped like three bananas out of starvation :)
20:43:27*Baktun joined #nim
20:43:33monikersAnyways I am download nim
20:43:43softinio@monikers I prefer nim. If you want something with more books and docs have a look at golang
20:43:57monikersgolang's syntax is pretty scary to me
20:43:59dom96tmm1: yep. Looks good.
20:44:37dom96monikers: Will Nim be your first programming language?
20:44:45monikersyep
20:44:52monikersI am doing some bash now
20:44:53monikers:)
20:45:23*razaaa joined #nim
20:45:25monikersdom96, C or Nim - I am a hobbyist
20:45:38monikersI would develop small cli / gui apps only for friends and family and my own use
20:45:54monikerslike small programs that calculates taxes etc
20:45:59dom96it seems like you already have at least some knowledge of programming languages
20:46:03dom96so you're not a complete beginner
20:46:11monikersI am a complete beginner
20:46:21monikersbut my problem is dig so deep that I see it all clear
20:46:29monikersI use Debian witn Main repo only
20:46:39monikersI use Free/Libre Software only strictly
20:46:49monikersI switched from Windows like 9 months ago
20:46:55monikersmy story in nutshell ^
20:47:29monikersI did 2000 lines of cpp (mixed style) program badly written in high school like 7 yrs ago
20:47:33monikersit was unit converter
20:47:43monikershad colors in it ; also local fonts
20:48:32elroodbesides, why restrict yourself to just one language. if you really want to learn you should have a look at several and preferrably try and compare them in parallel. haskell, rust, c and nim are all interesting in their own right
20:48:35monikersthereafter no coding for 7 yrs that was only to impress my cute high school teacher :) I loved her lol :)
20:49:12monikerselrood, I am learning cli / bash and then I would stop probably but I want to keep the zeal alive in it
20:49:24monikersto code and write something that works out of the box :)
20:50:39monikerselrood, I am not going to be writing code for people ; just for myself I am not sure Iwould choose many langs to write the code in future
20:50:51monikersso basically I just spammed this chan :/
20:50:54monikerssorry
20:51:54*UberLambda quit (Quit: GTG)
20:52:41reactormonkmonikers, it's not like you're outscrolling someone else
20:53:35elroodi somewhat hope that others here will disagree, but since you sound like you mostly want something that just works, with a gui designer tool and without rough edges and the occasional frustrations that are unavoidable in a young language, Nim might not be perfect. if you're open to experiments, just try it
20:56:50*onionhammer quit (Read error: Connection reset by peer)
20:57:05monikersok
20:57:21monikersI am trying C -- the crucial lang first but with C11 improvements
20:57:35monikershope it works for me, if it don't i would return to bug you people :)
20:57:38*onionhammer joined #nim
20:57:44monikersyou would be like "damn! he is back"
20:59:58*monikers left #nim ("Leaving")
21:03:22*razaaa quit (Read error: Connection reset by peer)
21:05:11indiagreenyeah, “damn, people want to use Nim! what do we do now...”
21:07:59*jakesyl quit (Ping timeout: 264 seconds)
21:18:41elrooddamn, a tang of a bad conscience rears its head. if you'd prefer more enthusiastic and less conservative evangelism for Nim, please just say so, Araq
21:19:54dom96I would say that when comparing Nim to C, you should consider the fact that while some of Nim's more advanced features may still have some rough edges, Nim is still a better C even without those features. So you're better off using it anyway.
21:22:32*yglukhov quit (Remote host closed the connection)
21:30:15tmm1is there a changelog for nim apart from the git history?
21:31:48dom96tmm1: https://github.com/nim-lang/Nim/blob/devel/web/news.txt
21:33:11tmm1perfect, thanks
21:34:03Araqso nobody felt like telling the guy C cannot even do array bounds checking?!
21:34:19Araqit's a desaster for beginners.
21:34:42Araqthere is no other common programming language around that is as unsafe as C.
21:34:44softinio@Araq tell you the truth I don't think he new what he wanted\
21:35:15Araqbut you do know that he doesn't want to spend his lifetime hunting cryptic segfaults!
21:36:00AraqI can understand that beginners choose Python over Nim for exploring the programming landscape, but fucking C?
21:36:58*yglukhov joined #nim
21:38:44elroodwhile i didn't see anybody especially recommending C, tbh he sounded like he was bound for desaster no matter what was going to be recommended. he needs to make up his mind and be disappointed first to discover Nim
21:38:44*Baktun quit (Read error: Connection reset by peer)
21:39:08indiagreenwell, once you eliminate all interpreted languages, all JVM/CLR/etc languages, and all sufficiently obscure languages... I guess C enters the picture, yeah
21:39:17indiagreentho I was tempted to mention Pascal for some reason
21:39:55*indiagreen remembers vaguely that Pascal has bound checking too
21:40:10ryu0C... I learned it as my first language. I would not recommend it any beginners now.
21:40:16ryu0it to
21:40:58ryu0it requires too much effort to do things correctly.
21:44:29Araqsorry for the cursing, but I think you guys could have done a better job at helping a newbie out
21:44:38ryu0Araq: i wasn't even here. :|
21:45:04Araqyou don't have to tell everybody in #nim to use only Nim and nothing else
21:45:20Araq(though it helps ... :P)
21:45:30Araqbut if the choice is only between C and Nim ...
21:46:02ryu0at this point I'd only use C for binding to well-tested libraries...
21:47:12*Guest20403 is now known as Guest20403isaway
21:47:57tmm1lol
21:48:15tmm1he'll be back soon, he's not going to get very far with C
21:48:56*gokr quit (Quit: Leaving.)
21:49:01NhanHthat guy is weird, Rust/Haskell/Nim/C is not a particularly normal set of language choices for beginners
21:49:09NhanHwhere did he even get the list from ..
21:49:37AraqNhanH: it's a fair list when you're after "produces native binaries"
21:50:08Araqof course it's not complete at all
21:50:14elroodfrankly, what would you recommend to someone who needs something newbie-friendly, that's well documented, preferrably had some books written about, and makes GUI building easy, and compiles to native code? there's nowhere you can go with those preconditions
21:50:48NhanHAraq: it was the language short list he mentioned ,and seeing those, Go would have popped to my mind as a better choice to start with, simple boring language, good tooling
21:51:00NhanHI meant, Haskell and Rust are borderline nuts for beginners
21:51:29Araqyeah I guess you're right. though some people claim you're better off starting right away with FP
21:54:02*pregressive quit (Remote host closed the connection)
21:54:07NhanHanyway, I'm looking for some good nim code to read to get myself started (mostly to see what has changed in the past year), do you have any suggestion?
21:54:14NhanHPreferably something doesn't involve the compiler itself
21:55:11ryu0which reminds me. is this place the only real resource for learning about all the syntax constructs of nim? http://nim-lang.org/docs/manual.html
21:56:05ryu0the standard library is meaningless to me if i don't yet know the syntax.
21:56:34Araqryu0: well the tutorials are not *that* bad at explaining the syntax
21:56:43ryu0Araq: where are they then?
21:56:51ryu0oh. the learn section.
21:56:59ryu0i'm used to going for the manuals, not tutorials.
22:00:49tmm1i ended up reading the entire manual before i found the tutorials too
22:01:20*FedeOmoto quit (Quit: Leaving)
22:01:53Araqwell I'm thinking about redesigning the website
22:02:23dom96how did you guys find the manual first instead of the tutorials?
22:02:41elroodhow is the general attitude towards http://nim-by-example.github.io here?
22:02:43ryu0maybe i glossed over that because i was looking for the technical documentation.
22:02:44dom96NhanH: Nimble's code base might be good.
22:03:09dom96elrood: It's good although I wish it gave some stdlib examples too
22:04:06dom96The tutorials are the first links on the learn page: http://nim-lang.org/learn.html
22:04:27AraqNhanH: when I want to learn some Nim, I usually look at fowl's code ;-)
22:04:54Araqthough I don't know if it is "good code".
22:05:04*jakesyl joined #nim
22:05:14dom96NhanH: depends what you're interested in I suppose?
22:06:53ryu0._.
22:07:02ryu0that's funny.
22:07:02dom96Araq: why do you want to redesign it?
22:07:26Araqdom96: there is too much text on the frontpage
22:07:46ryu0"The character conventionally used by the operating system to separate search patch components (as in PATH), such as ':' for POSIX or ';' for Windows."
22:07:51dom96Araq: Ahh, so not really "redesign".
22:07:53ryu0search PATCH? LOL
22:08:00*vendethiel quit (Ping timeout: 240 seconds)
22:08:03dom96Araq: Just "adjust front page slightly"? :P
22:08:14*Learath2 quit (Ping timeout: 252 seconds)
22:08:19ryu0http://nim-lang.org/docs/os.html <-- from here
22:08:22ryu0XD
22:08:33Araqalso we don't have any good document like "show me what only Nim can do"
22:09:00dom96Araq: That sounds like a blog post
22:09:02ryu0I don't know, is there such a thing?
22:09:26dom96I thought it might be nice to give the news posts their own pages so that we can have comments and stuff.
22:09:29Araqryu0: it's called a "typo". thanks for reporting it though.
22:09:32ryu0you'd think a good programmer could make any software in any language
22:09:48ryu0Araq: okay, well, i just find these humorous when i find them.
22:10:07NhanHdom96: Mostly just to go through what idiomatic code looks like and have the feel for the language (I went through the whole manual last year, but encounter some bugs and stopped)
22:10:31ryu0although i will admit some languages are better suited than others to certain software tasks
22:10:37NhanHAlso, I'm one of those who found the docs before "learn", just because it's a habit to find docs first
22:10:45NhanHI skim through the word learn and didn't mentally parse it
22:10:53*Learath2 joined #nim
22:11:10dom96NhanH: nim-by-example might be good for you then
22:11:11ryu0NhanH: like a RE ignoring anything it isn't looking for? =p
22:11:27NhanHryu0: yeah, it was either "getting started", "tutorial" or "documentation"
22:11:39NhanHI didn't expect "learn" in my RE :P
22:11:45dom96Perhaps the manual should be called "spec" not "manual"?
22:12:00dom96That said, it works pretty well as a manual anyway.
22:12:03ryu0free pascal calls their document the language reference
22:12:16*SirCmpwn quit (Ping timeout: 252 seconds)
22:12:36dom96Also I am pretty used to typing "manual" into my address bar now...
22:14:09ryu0I wonder if someone could create a Nim bot using nim and tiny c compiler. :)
22:14:11ryu0haha.
22:14:15Araqdom96: well it's evolving into a spec
22:14:32ryu0an IRC bot to evaluate nim code.
22:14:39*ryu0 shrugs.
22:15:04dom96If somebody could finish this: https://github.com/ekarlso/nim-playpen
22:15:06ryu0Araq: may I ask what C dialect nim outputs?
22:15:07dom96That would be awesome
22:15:15ryu0C89, C99, C11, ...?
22:15:37dom96C89 IIRC
22:15:38indiagreenryu0: #haskell has a bot to evaluate Haskell code and it's pretty useful for demonstrations
22:15:48AraqC code with gnu extensions when generating code for gcc
22:15:49*SirCmpwn joined #nim
22:15:57Araqsame for visual c++ and clang
22:15:58*xet7_ quit (Read error: Connection reset by peer)
22:16:06dom96I want NimBot to support nim code eval
22:16:06Araqbut based on C89
22:16:18*clone1018 quit (Ping timeout: 252 seconds)
22:16:18*xet7_ joined #nim
22:16:21tmm1how come 0.11.4 isn't on the website?
22:16:43tmm1news.txt says it was released "2015-09-14"
22:17:02Araqno, news.txt has a big *comment* about what is to come
22:17:20ryu0in other words, it's still not released?
22:17:23*clone1018 joined #nim
22:17:36Araqaye, we're only working on the regressions though
22:17:50Araqapart from these it's ready to go
22:18:00Araqalso it will be version 0.12.0
22:18:03tmm1ah its a comment
22:18:56tmm1noticed a minor typo reading through https://gist.github.com/tmm1/1d64969262482b13aeca
22:20:50ryu0Araq: how thorough is c2nim?
22:21:26ryu0Araq: i recall that automation tools for converting C headers to another language's native version tend to only do a partial job.
22:21:59ryu0for example, macro 'constants' tend to be left out. :/
22:22:17Araqryu0: c2nim is better than most other tools
22:22:26Araqin particular it translates #define foo 12
22:22:36ryu0even ones that are expression?
22:22:37*joelmo joined #nim
22:22:38ryu0(1 << 1)
22:22:41ryu0?
22:22:45dom96tmm1: You going to create a PR or should I just fix it now? :)
22:22:46ryu0but can be folded into a constant values?
22:22:55ryu0s/values/value/
22:23:02Araqryu0: no but Nim later does it
22:23:08ryu0ah, k.
22:23:09Araqconst foo = 1 shl 1
22:23:15tmm1dom96: just fix it, doesn't seem worth a PR
22:24:02Araqryu0: c2nim has been used to translate at least ~300_000 lines of C and C++ code by now
22:24:25Araqmore likely a million, it's hard to estimate
22:24:52ryu0Araq: i was asking because i've seen this type before for Free pascal and D, and they both sucked. =p
22:25:06Araqthat doesn't mean it's perfect, but latest versions allow you to only modify the C code and to not touch the resulting Nim code
22:25:24Araqso you can keep the diffs required for the C headers around
22:25:50Araqand quickly regenerate a wrapper should a new version of your favourite header files come along
22:25:51NimBotnim-lang/Nim devel 9908127 Dominik Picheta [+0 ±1 -0]: Fixes typo in news.txt (thanks @tmm1)
22:25:55ryu0how does Nim access sockets and such? the C stdlib or by making system calls directly?
22:26:13Araqthere is no difference when it comes to sockets
22:26:20ryu0ah, okay.
22:26:28AraqC's stdlib has no socket support.
22:26:33ryu0i meant POSIX.
22:26:34ryu0sorry.
22:26:46ryu0it includes sockets.
22:27:02Araqusually we have OS specific implementations for everything
22:27:03dom96POSIX/WinAPI
22:27:14ryu0technically you can bypass libc if you don't mind writing OS specific ASM.
22:27:27ryu0for some anyway.
22:27:42Araqah ok, we don't do that. would be cool though.
22:28:06ryu0Linux and FreeBSD document their system calls. i've written amd64 pure ASM programs for fun.
22:28:09ryu0nothing fancy though.
22:29:20Araqryu0: I can assure you c2nim is year ahead of FPC's header file tool.
22:29:25Araq*years
22:29:29ryu0yea, i imagine it is.
22:30:00AraqI used FPC's tool quite a bit. and learned from its mistakes.
22:30:10tmm1what if c2nim automatically treated non-parsable #define as #def ?
22:30:32Araqtmm1: yup, great idea, planned feature
22:30:52tmm1i'm curious how cgo works, it manages to automatically import all types and functions into the C namespace
22:31:01Araqthere are also other heuristics you can use to determine the #def vs #define question
22:31:46ryu0Araq: will distributed source archives ever require the nim compiler? i've used some C code generators before (re2c/lemon), and i could ship the generated files instead of requiring the end user to have anything more than make and a c compiler.
22:32:05*Trustable quit (Quit: Leaving)
22:32:51ryu0i'm just curious if i choose to use nim, what burdens will i be shifting onto people building my software?
22:32:55Araqryu0: niminst supports pure C based installations out of the box
22:33:06ryu0interesting.
22:33:22ryu0that might make for a good compelling reason to use nim over other languages.
22:33:29*jakesyl quit (Ping timeout: 265 seconds)
22:33:34ryu0it just uses the existing C runtime.
22:34:09ryu0a lot of other languages require their fat runtimes to already be installed. C is usually already present.
22:38:45tmm1Araq: i might take a stab at that def/define feature, is there any discussion i can reference about it?
22:39:24Araqtmm1: no but
22:39:54Araqa) I bet it's not easy otherwise I would have done it by now ;-)
22:40:22Araqb) check out how the backtracking is done in the parser
22:41:09AraqI would backtrack on a parsing error and treat the #define as a #def
22:42:19Araqbut iirc the support for backtracking in the parser is not available for the preprocessor, so you need to do some refactorings
22:46:43Araqyou can also do it completely differently: do a prepass over the source, count how often the #define is actually used. if no of occurences >= 3, it's a #def, not a #define.
22:49:40tmm1why 3?
22:51:49Araqbecause my nose tells me it's 3. but 2 or 4 should be equally good.
22:54:09*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:01:26*Kingsquee joined #nim
23:02:00*Matthias247 quit (Read error: Connection reset by peer)
23:05:32NimBotnim-lang/Nim devel 371470e Dominik Picheta [+0 ±2 -2]: Fixes #2889. Merges *tostring tests in tests/system.
23:09:01*Demos joined #nim
23:09:37*Rollo joined #nim
23:09:57*bjz joined #nim
23:19:08*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:23:08*Rollo quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
23:26:16*AndroUser joined #nim
23:26:44ekarlsodom96: ---
23:26:56ekarlsou there dom96 +
23:27:36Araqekarlso: take it as a compliment. we really want your work to continue :-)
23:27:59ekarlsoAraq: https://glot.io/new/nim
23:28:48Araqekarlso: sweet but compiletimes are horrible
23:29:03ekarlso:p
23:29:22Araqconfigure it to use TinyC perhaps?
23:29:25ekarlsowell if someone fixes the concurrent compiles stuff
23:29:36*keyle joined #nim
23:29:37ekarlsoI'll gladly put it up on a freely hosted env :)
23:29:48Araqoh you got to be kidding me
23:30:01Araqstill no CGI support?
23:30:07*yglukhov quit (Remote host closed the connection)
23:30:50ekarlsonope :P
23:30:57Araqrumors are CGI predates the invention of wheels
23:31:33strcmp1lol
23:31:36ekarlsoAraq: why not just fix the async thing ?
23:31:38ekarlso ..
23:31:46ekarlsowould probably take out ̃~2 hours
23:31:49federico3hipsters
23:31:59ekarlsofederico3: you go fix :p
23:32:11ekarlsoi'll gladly add more features to it once that's done
23:32:23Araqasync doesn't help you, I told you before
23:32:33ekarlsoAraq: and rly why not ?
23:32:44ekarlsonim can't handle multiple commands asyncly ?
23:32:44Araqbecause you need to run an external program either way
23:32:54ekarlsoaaand ?
23:33:04Araqaand that's what CGI does.
23:33:14ekarlsothe program can be made to do stuff like snippet storage / share as well
23:33:36Araqalso we "fixed" async, depending on what you mean by "fixed".
23:33:58ekarlsoAraq: the asyncproc module that I used blows up..
23:34:07ekarlsodunno if it works better after ^
23:34:42Araqdunno either, but will you accept a patch to make it use CGI?
23:35:24ekarlsoAraq: depends on what features u want with it long term..
23:35:59Araqhow about that it short term allows for more than a single user to run a Nim program?
23:36:59dom96ekarlso: hello
23:37:21ekarlsodom96: are you in dublin somewhere ?
23:37:53dom96ekarlso: i'm in Belfast why?
23:38:03ekarlsodom96: awe :p
23:38:12ekarlsodom96: in dublin atm with federico3 close by :p
23:38:16dom96ekarlso: is glot.io your Nim implementation?
23:38:35ekarlsodom96: no but I know who the guy is that wrote it
23:38:38strcmp1where do they come up with the names for these cities
23:40:06federico3Hey strcmp1
23:40:08dom96strcmp1: you still in Dublin?
23:40:13strcmp1yep
23:40:18strcmp1hey federico3
23:41:31dom96hmm, maybe it's time to have that meetup?
23:43:36ekarlsodom96: ell I'm only here until tmrw :(
23:43:47ekarlsodom96: ehm, 12 thursdah
23:44:48dom96pity
23:45:36dom96We could set something up for tomorrow or thursday
23:45:47ekarlsodom96: if you can do tmrw it would be awesome :P
23:48:00dom962.5 hour train ... gah
23:48:08dom96not sure I have the time to be honest.
23:48:20dom96Got to be working
23:50:28strcmp1the guinness is better in dublin
23:50:39*keyle quit (Quit: http://twitter.com/keyle/)
23:52:45ekarlsodom96: oh well, next time then haha
23:53:04dom96ekarlso: are you in Dublin often?
23:53:26ekarlsodom96: uhm, over a year since the last time :P
23:53:48dom96ekarlso: oh :\
23:53:56dom96maybe you can come to Belfast next time :P
23:54:11ekarlsodom96: wtf go to belfast ?
23:54:19ekarlsodom96: it's the shire :P
23:54:46federico3The Shire? I wish
23:55:14dom96heh
23:55:24dom96Araq: I think glot.io is just slow, even Go takes forever: https://glot.io/new/go
23:55:58dom96Everything takes forever in fact.
23:56:06ekarlsodom96: federico3 http://bloodandporridge.co.uk/wp/wp-content/uploads/2014/04/Americans-Europe.jpg
23:57:31federico3odd
23:59:25dom96Well, I should head to sleep
23:59:26dom96good night
23:59:50*pregressive joined #nim