<< 05-11-2015 >>

00:08:17*zepolen quit (Remote host closed the connection)
00:09:25*Matthias247 quit (Read error: Connection reset by peer)
00:14:51*yglukhov quit (Remote host closed the connection)
00:16:39*gokr quit (Quit: Leaving.)
00:19:02*elrood quit (Quit: Leaving)
00:29:34*pregressive joined #nim
00:30:52*zepolen joined #nim
00:31:31*pregressive quit (Remote host closed the connection)
00:39:34*desophos quit (Remote host closed the connection)
00:41:48*pregressive joined #nim
00:43:52*desophos joined #nim
00:48:09*desophos quit (Ping timeout: 244 seconds)
00:52:57*Kingsquee joined #nim
00:59:34*pregressive quit (Remote host closed the connection)
01:00:39*desophos joined #nim
01:02:21*ozra quit (Ping timeout: 246 seconds)
01:13:13*jaco60 quit (Quit: Leaving)
01:15:06*Varriount-Laptop joined #nim
01:22:03Varriount-Laptopreactormonk: You still on?
01:28:14*brson quit (Quit: leaving)
01:31:26Varriount-LaptoprobNewb: You there? I'm trying to figure out what you're trying to do in that snippet you posted.
01:42:34*pregressive joined #nim
01:54:24*Varriount-Laptop quit (Ping timeout: 255 seconds)
02:00:00*pregressive quit (Remote host closed the connection)
02:50:02*Varriount-Laptop joined #nim
02:50:03*Demon_Fox quit (Remote host closed the connection)
03:04:57*Varriount-Laptop quit (Ping timeout: 265 seconds)
03:15:50*Demon_Fox joined #nim
03:37:22*zepolen quit (Remote host closed the connection)
03:39:02*ephja quit (Ping timeout: 250 seconds)
04:04:49*Demon_Fox quit (Quit: Leaving)
04:23:54robNewbyes i'm back thanks varriount-Laptop
04:33:02*darkf joined #nim
05:06:16*ulyssesdwolfe joined #nim
05:16:50*makoLine quit (Ping timeout: 244 seconds)
05:19:58*vendethiel joined #nim
05:30:40*makoLine joined #nim
05:43:58*vendethiel quit (Ping timeout: 265 seconds)
05:47:51robNewbgood morning i have a question if anyone is able to answer it ... it would help a lot
05:49:16*zepolen joined #nim
05:51:34*desophos_ joined #nim
05:51:58*desophos quit (Read error: Connection reset by peer)
05:54:00*zepolen quit (Ping timeout: 268 seconds)
05:55:16robNewbin c i could do in a for loop: char c = '0' + i % (126 - '0')
05:55:37robNewbnim=> var c: char = char(i + int8'0')
05:55:50*desophos_ quit (Ping timeout: 240 seconds)
05:56:58robNewbnow if i am using c char in nim how can i do it : var c: cchar = ?
06:55:03*gokr joined #nim
06:55:08*gokr quit (Client Quit)
07:01:38*ulyssesdwolfe quit (Quit: ChatZilla 0.9.92 [Firefox 41.0.2/20151014143721])
07:02:02*bjz joined #nim
07:06:46*bjz quit (Ping timeout: 268 seconds)
07:19:47*vendethiel joined #nim
07:47:28*vendethiel quit (Ping timeout: 272 seconds)
07:49:40robNewbi have conclouded the issue of strings atleast to a point i understand that using string there's problem to marashall cstring need to be allocated i need to learn the nim commands /methods as to allocating cstring
07:50:50robNewbunless i will find a way to smugle the string over the border to c# correctly
07:53:32*jck quit (Remote host closed the connection)
07:54:20*jck joined #nim
08:06:06*yglukhov joined #nim
08:17:14*Trustable joined #nim
08:24:48*gokr joined #nim
08:25:01*linkedinyou quit (Read error: Connection reset by peer)
08:29:10*ulyssesdwolfe joined #nim
08:41:38*antoniomo joined #nim
08:48:54*darkf_ joined #nim
08:52:19*darkf quit (Ping timeout: 240 seconds)
10:30:26*makoLine quit (Ping timeout: 272 seconds)
10:45:49*ulyssesdwolfe quit (Quit: ChatZilla 0.9.92 [Firefox 41.0.2/20151014143721])
11:11:46*ephja joined #nim
11:16:31*zepolen joined #nim
11:21:03*zepolen quit (Ping timeout: 246 seconds)
11:36:03*gour joined #nim
11:37:28*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
11:39:04*elrood joined #nim
11:41:50*gour_ joined #nim
11:44:21*gour quit (Ping timeout: 255 seconds)
11:50:46*gour_ is now known as gour
12:05:34*darkf_ is now known as darkf
12:21:13*zepolen joined #nim
13:16:00*gokr quit (Quit: Leaving.)
14:00:13*strcmp1 joined #nim
14:00:41*strcmp1 quit (Client Quit)
14:32:14gourdocgen link at http://nim-lang.org/docs/tools.html is a dead one
14:34:31*gokr joined #nim
14:43:02*THE_LORD quit (Max SendQ exceeded)
14:43:06*RushPL quit (Ping timeout: 240 seconds)
14:43:06*reactormonk quit (Ping timeout: 240 seconds)
14:43:07*johnsoft quit (Read error: Connection reset by peer)
14:43:29*johnsoft joined #nim
14:43:48*robNewb quit (Ping timeout: 246 seconds)
14:44:19*cncl quit (Ping timeout: 250 seconds)
14:44:22*antoniomo quit (Quit: WeeChat 1.3)
14:44:26*rinukkusu quit (Ping timeout: 240 seconds)
14:45:11*low-prof1 quit (Ping timeout: 250 seconds)
14:47:15*RushPL joined #nim
14:47:25*reactormonk joined #nim
14:47:35*rinukkusu joined #nim
14:47:47*titanomachy quit (Ping timeout: 250 seconds)
14:49:02*Sornaensis joined #nim
14:49:41*titanomachy joined #nim
14:50:55*RobNewb joined #nim
14:59:45*RobNewb quit (Quit: Page closed)
15:01:34*RobNewb joined #nim
15:04:58RobNewbhi everyone, i have a new polished version of my little project, if any of you guys can take a look...
15:05:32RobNewbhttps://gist.github.com/anonymous/59dc1587b49e9c368f74
15:08:22RobNewbthe only problem i have left there is that the string value stays the same, as if it not creates new object for each element within the for loop
15:10:55*desophos joined #nim
15:12:46*yurdgh joined #nim
15:14:08RobNewbit's little quiet today..
15:14:26*yurdgh quit (Client Quit)
15:14:59gouram i correct that nim-dev list is synced with the nim forum?
15:23:40Araqgour: correct
15:24:08gourAraq: great. i certainly prefer list over forum :-)
15:24:21AraqRobNewb: well I dunno how to help you anymore.
15:24:41AraqI told you not to use 'cstring' in the DataPack, you used 'cstring'
15:25:41Araqthe way you do it the GC is free to collect the string at any time, reusing the memory as it pleases
15:27:36gourAraq: is wxNim jsut 'proof of concept' or it's going to be developed further? i also wonder if aporia will stay gtk2 or there is plan to move to gtk3 and combine with nim-gtk3 project?
15:29:57Araqproof of concept unless somebody takes over
15:30:23Araqit's quite complete and stable afaict. also it's 100% automated
15:30:37Araqdiff the headers and then rerun c2nim
15:30:59Araqwell ok, could still be better of course, but it's really good already
15:31:17goursounds good. congrats for all your nim-related work and being patient with 1.0 ;)
15:34:50desophosNim has no random number generation in the stdlib, correct?
15:34:58desophosi didn't see it in the list, only https://github.com/BlaXpirit/nim-random
15:36:16Araqthere is randomize() and random() in math.nim but people argued it kills little dogs
15:36:22Araqand eats babies
15:36:52Araqbecause it's just a wrapper around Ansi C's facilities
15:37:24Araqand we all know Ansi C produces stable OS kernels but cannot be trusted otherwise
15:37:30desophosi see
15:42:55*zepolen quit (Read error: Connection reset by peer)
15:43:39*zepolen joined #nim
15:48:25*pregressive joined #nim
15:49:52gourdunno what has happened with haskell's cabal, but it seems that nimble did surpass it
15:55:12ephjayeah, it's much easier to follow discussions through email
15:57:16ephjaor through the feed
15:58:42ephjaI suddenly got the urge to get a new kitchen
15:59:07Araqdo we have a PR that filters this spam now finally?
15:59:13AraqOnO: ?
15:59:43Araqbut it pisses me off enough so that I will fix it tonight. I hope.
16:04:07desophoscan i make anonymous procedures closures?
16:04:16desophos(using =>)
16:05:01ephjawasn't it possible to include multiple statements using any of these shortcuts?
16:05:16ephjait might have been with 'do' only. was it going away?
16:05:41desophosso instead of `proc(a: A): bool = return a.intersects(b)` just `a => a.intersects(b)`. gcc fails on this
16:06:06desophos(where b is defined outside the scope of that proc)
16:09:42*jaco60 joined #nim
16:11:23desophosephja, how would multiple statements help?
16:13:08Araqdesophos: that's just a long standing bug in Nim I think
16:13:17ephjait wasn't related to your question. I was just reminded of something
16:13:45desophosoh
16:37:37*desophos quit (Read error: Connection reset by peer)
16:40:23*cncl joined #nim
16:42:04*low-prof1 joined #nim
16:45:09*pregressive quit (Remote host closed the connection)
16:46:13*pregressive joined #nim
16:50:56RobNewbAraq: 1) https://gist.github.com/zah/fe8f5956684abee6bec9
16:51:04RobNewb2) http://stackoverflow.com/questions/33515570/interop-with-nim-return-struct-array-containing-a-string-char-member/33527840#33527840
16:51:26*zepolen_ joined #nim
16:51:27RobNewbis this a progress towards your approach ?
16:52:54*onionhammer1 joined #nim
16:53:54*JStoker quit (Killed (holmes.freenode.net (Nickname regained by services)))
16:54:16*JStoker joined #nim
16:54:32*delian66_ joined #nim
16:55:48*mrkishi_ joined #nim
16:57:27*Lea2 joined #nim
16:58:03*heinrich5991_ joined #nim
16:58:24*darkf_ joined #nim
16:59:18*SirCmpwn_ joined #nim
16:59:21*OmlkRoNiXz joined #nim
16:59:24*Guest16367isaway is now known as Guest16367
17:01:39*darkf quit (Ping timeout: 240 seconds)
17:04:42*pmbauer_ joined #nim
17:04:51*zepolen quit (*.net *.split)
17:04:54*mrkishi quit (*.net *.split)
17:04:54*pmbauer quit (*.net *.split)
17:04:57*onionhammer quit (*.net *.split)
17:04:58*delian66 quit (*.net *.split)
17:04:58*heinrich5991 quit (*.net *.split)
17:04:59*nim-buildbot quit (*.net *.split)
17:04:59*SirCmpwn quit (*.net *.split)
17:04:59*OmIkRoNiXz quit (*.net *.split)
17:05:00*Learath2 quit (*.net *.split)
17:05:01*heinrich5991_ is now known as heinrich5991
17:05:35*themagician_d quit (Ping timeout: 264 seconds)
17:06:45*pmbauer_ is now known as pmbauer
17:08:18*desophos joined #nim
17:08:52*desophos quit (Read error: Connection reset by peer)
17:09:08*desophos joined #nim
17:10:47*themagician joined #nim
17:15:44*gokr_ joined #nim
17:33:12*gokr_ quit (Read error: Connection reset by peer)
17:43:13*vqrs quit (Max SendQ exceeded)
17:45:33*vqrs joined #nim
17:47:10*yglukhov quit (Ping timeout: 240 seconds)
17:47:32*TylerE_ quit (Quit: Connection closed for inactivity)
17:48:56*brson joined #nim
17:54:31desophosi would love a Nim plugin for Atom
17:57:40*desophos quit (Remote host closed the connection)
18:00:07*desophos joined #nim
18:04:05*desophos quit (Ping timeout: 240 seconds)
18:07:03nchambersisn't there already one?
18:08:48RobNewbi'm using and testing Atom with nim...
18:10:06*darkf_ quit (Quit: Leaving)
18:10:18RobNewbthere's actually 2 first is tha nim-lang (see package manager)
18:11:28*SirCmpwn_ is now known as SirCmpwn
18:12:31RobNewband the second i had problems cofiguring it was looking for nims installation so i didn't have the time for this... it seems it offers more over the basic nim-lang
18:31:28*yglukhov joined #nim
18:34:59*boydgreenfield joined #nim
18:35:50*yglukhov quit (Ping timeout: 260 seconds)
18:37:22boydgreenfieldMigrating some code from 0.11.2 to 0.12.0 and have a quick question – I have a subtype of Logger (from lib/pure/logging.nim) where I override the ConsoleLogger to write to stderr vs. stdout. However, I get a compile-time warning `Warning: use {.base.} for base methods; baseless methods are deprecated [UseBase]`. Is this (a) a bug; (b) because I’m subtyping ConsoleLogger vs. Logger, and ConsoleLogger.log d/n have the
18:37:22boydgreenfield{.base.} annotation (and is that a bug or not?); or (c) related to what the logging module exports?
18:37:44boydgreenfieldI can add {.base.} to the method, which causes the warning to go away… but seems like it’s incorrect.
18:38:10boydgreenfield(And nevermind on (b), I’m subtyping Logger directly)
18:42:04Araqlet's see
18:43:04Araqthe base method 'log' in the logging.nim has the .base annotation
18:43:20Araqso if your override doesn't match, it would produce this warning
18:44:02boydgreenfieldah
18:44:04boydgreenfieldlet me check that
18:45:05*yglukhov joined #nim
18:45:53boydgreenfieldthat would do it. fantastic, thanks.
18:46:19Araqgood. we introduced the .base pragma to catch bugs like these.
18:47:09boydgreenfieldNo that’s great. It just wasn’t immediately obvious to me, but will be easy to spot in the future.
18:57:01*Matthias247 joined #nim
19:00:41*desophos joined #nim
19:01:29*desophos quit (Remote host closed the connection)
19:01:45*desophos joined #nim
19:01:56*desophos quit (Remote host closed the connection)
19:13:24*desophos joined #nim
19:13:39*Demon_Fox joined #nim
19:14:16desophosi'd like to try Atom but there's no Nim plugin :(
19:14:19*vqrs quit (Max SendQ exceeded)
19:14:45desophosand before you say "write one" i looked at the python plugin and it looks pretty difficult
19:15:03*vqrs joined #nim
19:15:43desophosi don't know Nim well enough to write an Atom plugin for it :p
19:21:14Araqthere is a whole thread on the forum about Nim's Atom plugin iirc
19:37:24*desophos quit (Remote host closed the connection)
19:41:11*gokr_ joined #nim
19:51:58*ephja quit (Ping timeout: 240 seconds)
19:53:05*johnsoft quit (Quit: Leaving)
19:53:32RobNewbhey mr Araq i think i am implementing exactly as you said !!
19:54:08RobNewbi'll let you know as soon as i get to test it
19:56:02Araqhrm? if you use alloc and dealloc you're doing it wrong
19:56:55Araqin your data structure you should use 'string' and then have some *accessor* that gives you a cstring
19:57:07Araqfrom this cstring you can construct your .NET string
19:57:33Araqno manual memory management necessary.
20:10:07*pregressive quit (Remote host closed the connection)
20:21:24*pregressive joined #nim
20:28:50*cyraxjoe quit (Ping timeout: 240 seconds)
20:31:31*cyraxjoe joined #nim
20:35:41*cyraxjoe_ joined #nim
20:35:44*cyraxjoe quit (Read error: Connection reset by peer)
20:35:46gouram i right that sublime's support for nim is better than the atom's one?
20:36:55nchamberspretty sure atom has good support for nim
20:41:35gournchambers: afaict, ST uses "Completion suggestions though the compiler2 which is not present in atom, true?
20:44:48*makoLine joined #nim
20:46:14RobNewbi know i'm past the stage of create + copyMem, i think i will not need them , i hope so, i will see in few minutes when i finish in a turtle speed as usual it depends how it will go on the .net side
20:52:54*cyraxjoe_ quit (Ping timeout: 255 seconds)
20:53:22*cyraxjoe joined #nim
21:02:31*boydgreenfield quit (Quit: boydgreenfield)
21:04:24*gokr_ quit (Read error: Connection reset by peer)
21:08:51*strcmp1 joined #nim
21:11:45*root joined #nim
21:11:56roothi all
21:12:03*root is now known as Guest69029
21:12:51Araqhi Guest69029
21:13:13*Guest69029 is now known as mat4
21:13:42Araqah it's mat4
21:13:56mat4yes, new installation
21:17:24*boydgreenfield joined #nim
21:18:22*Demon_Fox quit (Quit: Leaving)
21:28:23mat4have someone here tried Plan 9 before ?
21:29:41AraqI read it's more unixy than unix and stopped looking at it. ;-)
21:41:37mat4the design is related albeit more consequentive (everything is a file, one interface to rule them all...). However, the GUI resembles uncommon concepts for Un*x systems
21:42:54mat4there is a port for Raspberri Pi so I will take a look at it
21:48:47mat4and probably Nim can be built for this .. OS
21:49:09*desophos joined #nim
21:51:09*ephja joined #nim
21:51:44*gour quit (Quit: WeeChat 1.3)
21:53:39*desophos quit (Ping timeout: 255 seconds)
21:54:19*mat4 need a reboot
21:54:23*mat4 quit (Quit: Verlassend)
22:01:11*mat4 joined #nim
22:03:06RobNewbAraq i wish i could go back in time, only that i could have go to the meetings where all the decisions were made about strings. they all should be arrested !
22:03:38*Soak quit (Read error: Connection reset by peer)
22:03:44*DillyDally joined #nim
22:03:56Araqwhy?
22:05:50yglukhovgour: atom has a nim package that uses nimsuggest and linter. so it's pretty functional.
22:06:12RobNewbthere should be one STRING all of languages suppose to use it , it should suffice to hold any combination of character. that way ... the world is much better place to program in
22:07:09mat4Araq: ?
22:07:57*desophos joined #nim
22:08:59*Xe quit (Ping timeout: 240 seconds)
22:09:01*desophos quit (Remote host closed the connection)
22:09:15*desophos joined #nim
22:09:19*Lea2 quit (Ping timeout: 240 seconds)
22:09:19*jck quit (Ping timeout: 240 seconds)
22:09:45Araqmat4: nim hasn't been ported to plan 9, but feel free
22:10:30*jck joined #nim
22:12:49RobNewbi thought that utf-8 is the best encoding , i have read that in some cases or most cases utf-16 uses less space to hold Unicode chars so that is why they use it in microsoft
22:12:55*BlaXpirit joined #nim
22:13:02BlaXpirituh guys maybe u wanna fix this http://nim-lang.org/docs/nre.html
22:14:44*Learath2 joined #nim
22:14:53*hvze joined #nim
22:15:08hvzeAraq: Whats with the opengl port not being able to find glut32.dll?
22:15:12*polde quit (Ping timeout: 246 seconds)
22:15:43AraqRobNewb: no, they use it in windows because of legacy
22:16:08Araqhvze: does opengl require glut? o.O
22:16:16hvzedude idek
22:16:28hvzei tried compiling the opengl module port example and it said glut was missing
22:16:31hvzenooo idea
22:17:23*Xe joined #nim
22:17:30*strcmp1 quit (Ping timeout: 260 seconds)
22:20:21hvzeayy lmao
22:20:40hvzepretty sure the opengl package from nimble has an example
22:20:47hvzewhen you try to run that glut cant be found but it compiles
22:21:19*polde joined #nim
22:22:05*BlaXpirit left #nim ("Konversation")
22:25:21*DecoPerson quit (Ping timeout: 246 seconds)
22:26:17*elrood quit (Quit: Leaving)
22:26:24*DecoPerson joined #nim
22:27:38mat4RobNewb: that's true dependent of the character set frequented
22:30:31ephjahvze: maybe if you add any of the dll's here to the directory where you're trying to run from http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MSVC.zip
22:30:45hvzeI've installed freeglut
22:30:48hvzewith mingw
22:30:48RobNewbyes, they said that they came up with a solution back then and the utf-8 was presented a short while after, and that in any case what they are using is the best there is still
22:30:49ephjajust rename it first. it should be compatible
22:30:55hvzeoh shit really
22:31:00hvzedidnt know i could just rename the dll
22:31:14hvzeI mean i put it in syswow32 maybe if i install the 32bit ver as glut32 and put it in sys32 itll work
22:32:12ephjawell, I think only the filename is of any relevance so it should work
22:32:25mat4RobNewb: that's because ASCII was the main encoding back then (and seem still to be)
22:36:17*Guest16367 is now known as Guest16367isaway
22:36:50RobNewbany case, I'm working on code that works with ptr char , i revert my current code that give an exception "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." this is what i have tried for two days that's why i am trying some other types than string , like ptr char, as soon as i will do that i will try to see how i can go from using char ptr within a struct works with marshaling and str
22:39:39mat4after reading, it seems you want to handle different character encodings within a single routine, right ?
22:41:34RobNewbmat4 if you have the time i am going to post s gist of my current progress of interoping nim from c# i will mark the approach that does work in c# and in nim and then it will be easier to check how to change it the way Araq say it should be
22:44:16hvzeephja: that didnt work. freeglut didnt work, and i had a dll called "glu32.dll" so i renamed that and it came up with this https://sr.ht/wiz1.png
22:44:28*DillyDally is now known as Soak
22:45:39Araqhvze: well if you import 'glut', you get the dependency to the DLL, big surprise
22:45:51*Trustable quit (Remote host closed the connection)
22:46:09hvze:o
22:46:20ephjahvze: why didn't it?
22:46:25hvzeidk
22:46:27ephjaand glu is something else
22:46:32hvzeyeah i figure
22:46:41hvzei dropped freeglut64 in sys32 and it worked
22:46:51hvzebut it gave me a segfault so that doesnt work either
22:47:12*desophos quit (Remote host closed the connection)
22:47:19Araqthat's just because you didn't call loadExtensions :P
22:47:54ephjathe example should do that
22:48:24ephjaanyway, there's also SDL, allegro and glfw
22:48:40hvzeshouldent the example do that?
22:49:25ephjayes. do other opengl applications work?
22:53:12*desophos joined #nim
22:53:35*mat4 quit (Ping timeout: 264 seconds)
22:53:45*boydgreenfield quit (Quit: boydgreenfield)
22:53:53*mat4 joined #nim
22:57:56*mrkishi_ quit (Quit: bye)
22:58:09*mrkishi joined #nim
22:59:18*desophos quit (Remote host closed the connection)
23:00:27*mat4 quit (Quit: leaving)
23:03:11*pregressive quit (Remote host closed the connection)
23:03:42*Demos joined #nim
23:04:05*desophos joined #nim
23:05:22*pregressive joined #nim
23:08:22*desophos quit (Ping timeout: 260 seconds)
23:15:29*pregressive quit (Remote host closed the connection)
23:15:33*hvze quit (Quit: Page closed)
23:19:03*Kingsquee joined #nim
23:26:41*storm_surge joined #nim
23:26:47storm_surgeany idea how to install sfml with nim
23:26:48*boydgreenfield joined #nim
23:31:05storm_surgenot installing but more of linking
23:31:27Heartmenderwhat is SFML?
23:33:44boydgreenfieldIs anyone else on OS X able to get the pcre module working? I get errors in Nim v0.12 (was fine in 0.11.2) but have only tested on one machine so far. (Any compiles importing it fail with “could not import: pcre_free_study”)
23:34:38storm_surgenim uses CSFML
23:36:33ephjathe lib should do that for you
23:37:19Araqboydgreenfield: update pcre via brew? the tests were all green for mac when we released it and the tester itself uses regular expressions
23:38:25AraqI think we updated the wrapper for 0.12.0, so yeah it can use newer features
23:39:20Araqalternatively you can also use the pcre.nim from 0.11.2 for 0.12.0 and see if it makes a difference
23:39:43Araq(and diff the files)
23:46:23boydgreenfieldAraq: pcre update fixes. I guess I didn’t expect the wrapper to have changed. Thx.
23:48:01ephjastorm_surge: most bindings tie dll paths and dll symbols to the procs. does it not work?
23:49:26ephjanim-csfml does that unsurprisingly, so it should work as long as csfml is installed
23:51:15*Jesin quit (Quit: Leaving)