00:00:10 | * | vendethiel quit (Ping timeout: 250 seconds) |
00:14:48 | * | jck quit (Read error: Connection reset by peer) |
00:15:01 | * | aziz quit (Remote host closed the connection) |
00:15:02 | * | Varriount_ is now known as Varriount |
00:15:07 | * | jck joined #nim |
00:16:18 | Varriount | Xe: <3 Templates |
00:16:35 | Xe | Varriount: it's kind of deceptively powerful |
00:16:39 | Varriount | I was wondering how hard it would be to make a bash-like DSL in Nim. |
00:16:49 | Xe | nturtle? |
00:17:03 | Xe | actually |
00:17:17 | Xe | does nim have a method_missing ==? |
00:17:30 | Varriount | Xe: Say again? |
00:17:53 | Xe | ruby has method_missing that is called when you put in function names it doesn't know about |
00:18:11 | Varriount | There's the `.` proc/method/template that does that. |
00:18:28 | Xe | yeah but this applies to random things too |
00:18:42 | Xe | like literally typing in arbitrary shit |
00:18:57 | Varriount | Hm... Not really. |
00:19:15 | Xe | well then it's a bit harder but doable |
00:19:17 | Xe | :P |
00:19:27 | Xe | ... |
00:19:35 | Xe | template `/` |
00:19:45 | Xe | /usr/bin/systemctl restart caddy |
00:25:10 | Xe | Varriount: ^ |
00:25:35 | Varriount | Ah. |
00:26:14 | * | jaco60 quit (Ping timeout: 252 seconds) |
00:27:54 | Xe | would that work? |
00:28:01 | Xe | sort of use `/` as a combinator |
00:30:27 | Varriount | Xe: Sorta, but I was thinking about something a bit more sophisticated. |
00:30:38 | Xe | yeah ofc |
00:30:41 | Varriount | Probably using a macro and the block format |
00:34:10 | Varriount | Xe: https://gist.github.com/Varriount/7421b1733656eac32612 |
00:34:30 | Xe | nash |
00:34:31 | Xe | I like it |
00:34:45 | Varriount | Xe: Basically some unholy mixture of Bash, Nim, and Powershell |
00:35:27 | * | Varriount keeps meaning to learn more powershell |
00:44:23 | * | vendethiel joined #nim |
00:45:50 | * | derka joined #nim |
00:46:06 | * | pregressive joined #nim |
00:50:10 | * | apotheon quit (Ping timeout: 240 seconds) |
00:51:13 | * | apotheon joined #nim |
00:51:46 | * | derka quit (Quit: derka) |
00:52:21 | * | Trustable quit (Remote host closed the connection) |
00:57:45 | * | desophos quit (Read error: Connection reset by peer) |
00:59:05 | * | gokr quit (Quit: Leaving.) |
01:05:40 | * | vendethiel quit (Ping timeout: 248 seconds) |
01:07:00 | * | Egon_ quit (Ping timeout: 252 seconds) |
01:27:43 | * | vendethiel joined #nim |
01:31:20 | * | Varriount quit (Disconnected by services) |
01:31:20 | * | Varriount_ joined #nim |
01:50:56 | * | vendethiel quit (Ping timeout: 276 seconds) |
01:52:34 | * | Varriount joined #nim |
01:56:08 | * | Varriount_ quit (Ping timeout: 276 seconds) |
01:57:58 | * | Varriount_ joined #nim |
01:57:58 | * | Varriount quit (Disconnected by services) |
02:04:47 | * | Varriount joined #nim |
02:07:50 | * | Varriount_ quit (Ping timeout: 276 seconds) |
02:18:48 | * | ephja quit (Ping timeout: 252 seconds) |
02:22:13 | * | fab2000 joined #nim |
02:23:11 | fab2000 | Hi, new to nim , when it comes to OOP what are the options in nim when it comes to polymorphism since it doesn't have interfaces ? thanks. |
02:25:27 | * | pregressive quit (Remote host closed the connection) |
02:32:38 | Varriount | fab2000: There are methods, generics, and concepts, all of which can be used as a replacement for classes. |
02:33:41 | Varriount | Methods are polymorphic procedures, meaning they will work based on a given references true type. |
02:35:41 | fab2000 | hmm, ok , can you give a quick exemple if you have the time ? |
02:37:25 | fab2000 | Like given a language X that has interface , I would write something like interface Walker { void walk() } |
02:37:39 | fab2000 | then a class or a function would accept a walker |
02:37:48 | fab2000 | How would you write that in nim ? |
02:38:39 | fab2000 | class AcceptWalker { void accept(Walker walker){ /* body */ } } |
02:39:52 | Varriount | fab2000: I can, however keep in mind that the kind of limited OO programming Java enforces isn't really what Nim was designed for. |
02:40:18 | Varriount | Or rather, there are two different approaches from each language. |
02:43:25 | fab2000 | sure |
02:45:58 | * | brson quit (Quit: leaving) |
02:48:38 | Varriount | fab2000: https://gist.github.com/Varriount/713947183f525a6745b5 |
02:48:45 | Varriount | That's an example of methods |
02:48:47 | Xe | flyx: you there? |
02:49:47 | Varriount | fab2000: There are also concepts, which are a kind of enhanced generic, however those are compile-time mechanisms. |
02:50:09 | Varriount | fab2000: I assume you mean something equivalent to a run-time interface? |
02:51:31 | fab2000 | yes, runtime interfaces, without using inheritance for instance |
02:52:10 | Varriount | fab2000: Well, there are also types composed of procedure references (function pointers). Those don't require any kind of special mechanism though. |
02:52:47 | Varriount | fab2000: http://nim-lang.org/docs/streams.html#StreamObj |
02:53:14 | Varriount | Those are all that interfaces are really, in both Java and C++ |
02:55:30 | Varriount | fab2000: Oddly enough, there really often that much need for the kinds of inheritance heirarchies that seem required in Java. Generics, and Runtime/Static dispatch handle quite a bit. |
02:56:06 | Varriount | *really isn't |
02:56:18 | * | krux02 quit (Quit: Verlassend) |
02:57:16 | fab2000 | Yes, Nim has many interesting ideas, that's why it's a bit hard to begin with it, since one has to figure out which one has to be used in order to fulfill a specific task. |
02:57:35 | Varriount | fab2000: You have to remember that in Nim, methods and procedures for any given type can be defined anywhere, not just in the module that defines the type. |
02:59:20 | Varriount | When I first encountered Nim, it nearly broke my poor addled brain with that concept. "Methods, defined outside their classes? Impossible!" |
02:59:30 | fab2000 | Yes, it's an handy feature indeed. |
03:01:59 | fab2000 | ok thanks for your help ! |
03:02:12 | Varriount | You're welcome. |
03:05:05 | * | vendethiel joined #nim |
03:09:12 | * | bungoman_ quit (Quit: Leaving) |
03:22:50 | * | kashyap_ joined #nim |
03:23:57 | kashyap_ | Hi there ... I need some help with debugging an sdl2 program .... https://github.com/ckkashyap/LiveCoding .... while the program runs fine on Linux, I get a crash on Mac - After attaching gdb all I get is nimFrame() on top |
03:24:11 | Varriount | kashyap_: Have you tried it on Windows? |
03:24:21 | kashyap_ | It crashes on windows too |
03:24:44 | Varriount | Well, I can help with that then. (No iMac for Varriount) |
03:25:02 | kashyap_ | :) |
03:25:05 | * | fab2000 quit (Quit: Page closed) |
03:25:13 | kashyap_ | I suspect a lurking race condition |
03:26:52 | * | vendethiel quit (Ping timeout: 250 seconds) |
03:29:54 | kashyap_ | Varriount - a side question, how can I debug on windows - after building with gcc? the gdb I have in there seems to not recognize the exe |
03:33:41 | Varriount | kashyap_: Try the --debugger:native switch when compiling Nim |
03:33:51 | kashyap_ | ok |
03:34:14 | Varriount | kashyap_: You can set it to be on by default by modifying the config files. |
03:34:23 | kashyap_ | cool |
03:34:38 | kashyap_ | hope you could see the crash on windows |
03:41:01 | kashyap_ | Varriount_ --debugger:native did not seem to help with gdb |
03:41:05 | * | desophos joined #nim |
03:49:05 | Varriount | kashyap_: Odd |
03:49:13 | kashyap_ | you bet :) |
03:49:27 | kashyap_ | oh you mean about the --debug:native |
03:49:46 | Varriount | Maybe? I don't generally use the switch often. |
03:51:06 | kashyap_ | Varriount_ you are able to see the crash on windows right? |
03:51:22 | Varriount | kashyap_: Still trying to get things working. I don't have the sdl package. |
03:51:36 | kashyap_ | nimble? |
03:51:38 | Varriount | And the nimble install script is failing for me |
03:51:43 | kashyap_ | oh! |
03:54:54 | * | xtagon joined #nim |
03:55:25 | kashyap_ | Varriount_ I've gotta scoot now ... I'll sign back in later ... |
03:59:15 | * | lompik quit (Ping timeout: 240 seconds) |
03:59:18 | kashyap_ | btw the call stack on mac is as follows - #0 0x00000001000382d1 in nimFrame (s=0x70000021c670) at /Users/kashyap/Documents/dev/NIM-LANG/Nim/lib/system/excpt.nim:304 #1 0x0000000100037fe6 in Audiocallback_169204 (userdata=0x0, stream=0x10380ec00 "", bytecount=4096) at /Users/kashyap/Documents/dev/junk/LiveCoding/LiveCode.nim:27 |
04:18:02 | Varriount | kashyap_: It's not crashing for me. |
04:18:24 | * | kashyap_ quit (Ping timeout: 252 seconds) |
04:27:28 | * | nchambers is now known as ncampers |
04:38:52 | * | vendethiel joined #nim |
04:48:13 | * | ncampers is now known as nchambers |
04:48:22 | * | nchambers is now known as dtscode |
04:52:34 | * | vendethiel quit (Ping timeout: 240 seconds) |
04:54:09 | * | vendethiel joined #nim |
05:00:56 | * | vendethiel quit (Ping timeout: 240 seconds) |
05:02:31 | * | dtscode quit (Changing host) |
05:02:31 | * | dtscode joined #nim |
05:03:02 | * | dtscode quit (Changing host) |
05:03:02 | * | dtscode joined #nim |
05:08:04 | * | kashyap_ joined #nim |
05:43:09 | * | dtscode is now known as mniip |
05:43:09 | * | mniip is now known as 64MAAYGZ0 |
05:44:25 | * | 64MAAYGZ0 is now known as mniip |
05:45:58 | * | mniip is now known as Guest62425 |
05:45:58 | * | Guest62425 quit (Killed (kornbluth.freenode.net (Nickname regained by services))) |
05:46:41 | * | nchambers joined #nim |
05:57:22 | kashyap_ | Hey Varriount_ any luck? |
05:58:59 | * | nchambers is now known as I |
05:58:59 | * | I is now known as Guest72381 |
05:59:55 | * | Guest72381 is now known as nchambers |
06:43:40 | * | gokr joined #nim |
06:44:27 | * | gokr1 joined #nim |
06:47:56 | * | gokr quit (Ping timeout: 250 seconds) |
06:55:04 | flyx | Xe: now I'm here |
06:57:47 | * | vendethiel joined #nim |
06:59:00 | * | kashyap_ quit (Ping timeout: 252 seconds) |
07:20:46 | * | vendethiel quit (Ping timeout: 240 seconds) |
07:25:12 | * | vendethiel joined #nim |
07:39:52 | * | qazwsx_ joined #nim |
07:46:34 | * | endragor joined #nim |
07:46:56 | * | vendethiel quit (Ping timeout: 240 seconds) |
07:47:12 | * | s4 joined #nim |
07:53:13 | * | vendethiel joined #nim |
07:56:34 | * | Demon_Fox quit (Quit: Leaving) |
08:03:21 | * | xtagon quit (Quit: Connection closed for inactivity) |
08:08:16 | * | gour joined #nim |
08:10:10 | * | Ven joined #nim |
08:20:16 | * | lg_ quit (Read error: Connection reset by peer) |
08:20:19 | * | derka joined #nim |
08:21:35 | * | Varriount_ joined #nim |
08:21:35 | * | Varriount quit (Disconnected by services) |
08:22:17 | * | ephja joined #nim |
08:37:12 | * | vendethiel quit (Ping timeout: 252 seconds) |
08:53:08 | * | Trustable joined #nim |
08:59:41 | * | ephja quit (Quit: WeeChat 1.3) |
09:00:04 | * | lg_ joined #nim |
09:05:55 | * | ephja joined #nim |
09:12:49 | * | yglukhov joined #nim |
09:21:26 | * | coffepot joined #nim |
09:24:24 | ephja | ranges not including 0 have to be initialized? |
09:24:59 | ephja | what if it's in a base class and not exported? |
09:27:21 | * | desophos quit (Read error: Connection reset by peer) |
09:42:51 | * | jaco60 joined #nim |
09:45:02 | ephja | reported |
09:57:49 | * | qazwsx_ quit (Quit: qazwsx_) |
10:00:37 | * | darkf joined #nim |
10:09:34 | * | vendethiel joined #nim |
10:15:20 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:15:32 | federico3 | it would be nice to have a RSS feed of new packages |
10:30:17 | * | vendethiel quit (Ping timeout: 276 seconds) |
10:31:15 | wuehlmaus | Araq_: a friend of mine asked if you would like to go to Froscon to introduce nim? |
10:31:29 | Araq_ | sure |
10:31:38 | wuehlmaus | i think it would be wonderful! |
10:31:51 | wuehlmaus | froscon.de |
10:32:14 | wuehlmaus | nim is so worth it, the more i understand about it the more i love it :) |
10:32:19 | * | qazwsx_ joined #nim |
10:37:39 | * | vendethiel joined #nim |
10:51:01 | * | junw joined #nim |
11:08:01 | * | qazwsx_ quit (Quit: qazwsx_) |
11:11:52 | * | jaco60 quit (Quit: Leaving) |
11:13:08 | * | Ven joined #nim |
11:20:44 | * | vendethiel quit (Ping timeout: 272 seconds) |
11:26:17 | * | vendethiel joined #nim |
11:29:39 | * | filwit joined #nim |
11:30:35 | * | qazwsx_ joined #nim |
11:45:43 | * | warkid_ joined #nim |
11:46:06 | * | warkid quit (Ping timeout: 252 seconds) |
11:47:56 | * | vendethiel quit (Ping timeout: 240 seconds) |
12:09:43 | Araq_ | ah it's some German thing that has <b> on the website |
12:19:44 | * | BitPuffin joined #nim |
12:25:37 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
12:25:44 | * | vendethiel joined #nim |
12:34:03 | * | sarlalian quit (Ping timeout: 240 seconds) |
12:34:03 | * | vqrs quit (Ping timeout: 240 seconds) |
12:34:03 | * | SirCmpwn quit (Ping timeout: 240 seconds) |
12:34:15 | * | SirCmpwn joined #nim |
12:34:47 | * | qazwsx_ quit (Quit: qazwsx_) |
12:34:59 | * | vqrs joined #nim |
12:35:06 | * | Pisuke quit (Quit: WeeChat 1.4-dev) |
12:36:25 | * | sarlalian joined #nim |
12:38:24 | * | qazwsx_ joined #nim |
12:38:56 | * | Ven joined #nim |
12:41:59 | * | qazwsx_ quit (Client Quit) |
12:44:57 | * | warkid_ quit (Ping timeout: 252 seconds) |
12:46:14 | * | vendethiel quit (Ping timeout: 256 seconds) |
12:50:42 | * | vendethiel joined #nim |
12:58:41 | * | vqrs quit (Ping timeout: 245 seconds) |
13:00:54 | * | vqrs joined #nim |
13:09:31 | * | derka_ joined #nim |
13:11:26 | * | derka quit (Ping timeout: 250 seconds) |
13:11:26 | * | derka_ is now known as derka |
13:15:55 | * | vendethiel quit (Ping timeout: 240 seconds) |
13:20:50 | * | ephja quit (Read error: Connection reset by peer) |
13:23:25 | * | arnetheduck joined #nim |
13:30:42 | * | lompik joined #nim |
13:44:46 | * | s4 quit (Quit: Konversation terminated!) |
13:52:32 | * | ephja joined #nim |
13:54:37 | * | vendethiel joined #nim |
13:57:08 | ephja | "LOC9 = &&sinegenerator->Sup;" a method invocation generates this |
13:58:10 | ephja | apparently it's because the first argument is a var |
14:11:23 | ephja | "The compiler should not allow this. There is no subtype relation from 'var ref MyQObject' to 'var ref QObject'. There is rarely a reason for 'var ref' and certainly none for your use case." this is a comment for another issue. maybe I should close it then |
14:17:47 | * | vendethiel quit (Ping timeout: 276 seconds) |
14:21:45 | * | lompik quit (Ping timeout: 245 seconds) |
14:23:31 | * | vendethiel joined #nim |
14:36:05 | * | vqrs quit (Quit: ZNC 1.6.1 - http://znc.in) |
14:40:44 | * | vqrs joined #nim |
14:44:58 | * | arnetheduck quit (Ping timeout: 240 seconds) |
14:45:56 | * | vendethiel quit (Ping timeout: 272 seconds) |
14:54:35 | * | Dildosan joined #nim |
14:56:19 | * | Dildosan quit (Client Quit) |
15:12:38 | * | vendethiel joined #nim |
15:19:13 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
15:23:49 | * | Ven joined #nim |
15:25:38 | * | Ven quit (Client Quit) |
15:29:25 | * | Ven joined #nim |
15:30:43 | * | yglukhov_ joined #nim |
15:33:08 | * | yglukhov quit (Ping timeout: 250 seconds) |
15:34:11 | * | vendethiel quit (Ping timeout: 250 seconds) |
15:35:00 | * | yglukhov_ quit (Ping timeout: 248 seconds) |
15:35:10 | * | pregressive joined #nim |
15:41:36 | * | matkuki joined #nim |
15:43:13 | * | gokr1 quit (Quit: Leaving.) |
15:48:00 | * | qazwsx_ joined #nim |
15:52:57 | * | vendethiel joined #nim |
15:56:06 | * | Ven quit (Ping timeout: 252 seconds) |
15:57:02 | * | Sornaensis quit (Quit: No.) |
15:59:13 | wuehlmaus | could some kind soul edit the rosettacode regular expression examples now that re is deprecated? |
16:00:24 | Araq_ | we want to de-deprecate re.nim ... |
16:00:34 | * | Araq_ loves re.nim too much. |
16:01:18 | Araq_ | every remaining bug in re.nim only affects people who cannot program in the first place *cough* |
16:03:23 | wuehlmaus | yes, i know, that's why i asked how the same worked in nre. |
16:03:52 | wuehlmaus | http://rosettacode.org/wiki/ |
16:03:52 | wuehlmaus | Regular_expressions |
16:03:59 | wuehlmaus | http://rosettacode.org/wiki/Regular_expressions |
16:14:56 | * | vendethiel quit (Ping timeout: 240 seconds) |
16:16:04 | * | vendethiel joined #nim |
16:26:03 | * | pregressive quit (Read error: Connection reset by peer) |
16:26:48 | * | pregressive joined #nim |
16:31:12 | * | yglukhov joined #nim |
16:31:47 | * | qazwsx_ quit (Quit: qazwsx_) |
16:34:49 | * | aziz joined #nim |
16:35:29 | Varriount_ | Araq_: How does the GC behave when dealing with unloaded Nim dlls? |
16:35:40 | * | yglukhov quit (Ping timeout: 260 seconds) |
16:37:24 | * | vendethiel quit (Ping timeout: 248 seconds) |
16:39:54 | * | vendethiel joined #nim |
16:40:55 | Araq_ | dunno. it crashes? |
16:45:59 | * | Varriount_ quit (Ping timeout: 276 seconds) |
16:49:05 | * | Varriount joined #nim |
16:49:33 | Varriount | Araq_: I'm trying to help kashyap with his live procedure reloading. |
16:50:49 | Araq_ | great but is there still no PR for the codegen to support that in a better fashion? would be the first thing I would do |
16:50:52 | * | matkuki quit (Read error: Connection reset by peer) |
16:51:20 | * | matkuki joined #nim |
17:01:54 | * | yglukhov joined #nim |
17:02:53 | * | vendethiel quit (Ping timeout: 276 seconds) |
17:06:48 | * | vendethiel joined #nim |
17:15:51 | * | coffepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
17:21:12 | * | qazwsx_ joined #nim |
17:23:30 | * | yglukhov quit (Remote host closed the connection) |
17:27:46 | * | vendethiel quit (Ping timeout: 240 seconds) |
17:31:03 | * | endragor quit (Remote host closed the connection) |
17:34:55 | * | yglukhov joined #nim |
17:39:02 | * | vendethiel joined #nim |
17:52:29 | * | ics joined #nim |
17:56:42 | * | Sornaensis joined #nim |
18:00:39 | * | vendethiel quit (Ping timeout: 250 seconds) |
18:03:37 | * | vendethiel joined #nim |
18:37:42 | * | qazwsx_ quit (Quit: qazwsx_) |
18:40:12 | * | shodan45 joined #nim |
18:41:53 | Varriount | dom96: Currently reading Nim in Action, looks good so far. |
18:46:34 | * | derka quit (Quit: derka) |
18:48:19 | * | vendethiel quit (Ping timeout: 250 seconds) |
18:49:17 | * | brson joined #nim |
18:52:55 | * | derka joined #nim |
18:53:29 | * | vendethiel joined #nim |
19:01:44 | * | qazwsx_ joined #nim |
19:01:45 | * | shodan45 quit (Ping timeout: 245 seconds) |
19:07:35 | Varriount | dom96: Do you mind if I send you a critique/editor comments? |
19:14:28 | * | BitPuffin quit (Ping timeout: 272 seconds) |
19:15:11 | * | vendethiel quit (Ping timeout: 250 seconds) |
19:20:54 | * | qazwsx_ quit (Quit: qazwsx_) |
19:22:31 | * | vendethiel joined #nim |
19:22:35 | * | Matthias247 joined #nim |
19:36:41 | dom96 | Varriount: not at all. I encourage it :) |
19:40:28 | * | qazwsx_ joined #nim |
19:43:01 | * | qazwsx_ quit (Client Quit) |
19:49:17 | * | shodan45 joined #nim |
20:04:07 | * | jaco60 joined #nim |
20:07:14 | matkuki | Can somebody take a look at this and tell me how to get correct value at line 38? https://bpaste.net/show/91442a08a419 |
20:09:57 | flyx | matkuki: you cast a pointer to a ref object and then use [0] on it… that looks a bit suspicious. |
20:10:13 | flyx | erm, ptr object, not ref object |
20:11:27 | flyx | so it's basically a c-style array? |
20:11:55 | matkuki | flyx: yes, i think so. |
20:12:02 | * | derka_ joined #nim |
20:12:44 | * | derka quit (Ping timeout: 272 seconds) |
20:12:44 | * | derka_ is now known as derka |
20:12:52 | matkuki | Why is it when 'seg' goes out of scope, the value gets messed up? |
20:14:39 | flyx | hum. it shouldn't, since it's a ptr and therefore not garbage-collected |
20:16:25 | flyx | I'd first check whether the pointer in data gets messed up or the memory the pointer points to |
20:16:58 | * | derka quit (Quit: derka) |
20:17:00 | Araq_ | dunno but your code sucks. |
20:17:11 | ldlework | ouch |
20:18:34 | matkuki | Araq_: I wish it were mine. It's the old nimrod-chipmunk wrapper example planets.nim. |
20:20:02 | Araq_ | well seems to me it doesn't have to work outside the scope |
20:20:18 | Araq_ | data[1] = seg is only done in the case branch |
20:21:33 | matkuki | Araq_: A line below of the 'echo garbage' line is a proc call 'shape.setUserData(data)', which also receives garbage! |
20:22:28 | Araq_ | then it's perhaps a stack corruption |
20:22:38 | Araq_ | are you sure it's cdecl and not stdcall? |
20:24:41 | matkuki | tried stdcall, same thing |
20:32:10 | * | bjz joined #nim |
20:32:16 | * | bjz quit (Client Quit) |
20:32:42 | * | bjz joined #nim |
20:45:08 | matkuki | Araq_: It works if I add every newVertexArray to a global sequence instead of 'var seg = ...'. |
20:45:10 | matkuki | before: var seg = newVertexArray(...) |
20:45:11 | matkuki | after: gLineArray.add(newVertexArray(...)) |
20:45:13 | matkuki | Why? |
20:45:36 | * | brson quit (Ping timeout: 250 seconds) |
20:45:53 | matkuki | line 26 in the example |
20:45:57 | Araq_ | wrong question. if you have a memory corruption everything can make it go away. |
20:46:11 | Araq_ | well "go away" in quotes. |
20:46:26 | matkuki | What should be done? |
20:46:36 | Araq_ | the question is if 'newVertexArray' allocates GC'ed memory that you then pass to chipmunk |
20:47:01 | Araq_ | and then you forget about it and the GC doesn't trace into chipmunk |
20:47:27 | Araq_ | then you need to keep it alive in your Nim code, like by adding it to a global seq |
20:47:43 | Araq_ | but that's usually a very bad solution |
20:48:06 | Araq_ | better is to call GC_ref GC_unref at strategic places |
20:48:38 | matkuki | The function is in the CSFML library. The function is this: https://bpaste.net/show/2c02630e7cc3 |
20:49:43 | matkuki | newVertexArray(Nim) == sfVertexArray_create(C++) |
20:51:03 | Araq_ | you should get rid of |
20:51:06 | Araq_ | var data = cast[ShapeDataPtr](alloc0(sizeof(ShapeData))) |
20:51:06 | Araq_ | data[0] = userData |
20:51:18 | Araq_ | somehow. it's ugly and might be wrong |
20:52:14 | * | brson joined #nim |
20:58:49 | * | derka joined #nim |
20:59:20 | * | derka quit (Client Quit) |
21:04:20 | * | yglukhov quit (Ping timeout: 256 seconds) |
21:04:55 | * | yglukhov joined #nim |
21:07:01 | * | yglukhov quit (Read error: Connection reset by peer) |
21:07:17 | * | yglukhov joined #nim |
21:10:26 | * | yglukhov quit (Read error: Connection reset by peer) |
21:10:42 | * | yglukhov joined #nim |
21:15:55 | flyx | dom96: if I have comments on your book, what is your preferred way to receive them? |
21:16:32 | dom96 | flyx: http://forum.nim-lang.org/t/1978 |
21:16:40 | dom96 | Just reply with your feedback there |
21:16:42 | dom96 | :) |
21:23:00 | flyx | okay, so I will finally create an account for the forum :) |
21:28:47 | * | derka joined #nim |
21:33:03 | * | derka quit (Client Quit) |
21:34:16 | * | derka joined #nim |
21:36:07 | * | BitPuffin joined #nim |
21:41:33 | * | FreezerburnV joined #nim |
21:41:55 | matkuki | Araq_: How do I find out if it's a stack corruption? |
21:42:06 | * | junw quit (Ping timeout: 240 seconds) |
21:42:40 | Araq_ | good programmers recognize it by their aching toes |
21:43:10 | matkuki | :) |
21:43:29 | * | BitPuffin quit (Read error: Connection reset by peer) |
21:46:02 | matkuki | Araq_: Does it tell you anything that every 'new' function from the CSFML library does this? newVertexArray, newCircleShape, newConvexShape, ... |
21:49:38 | * | yglukhov_ joined #nim |
21:49:38 | * | yglukhov quit (Read error: Connection reset by peer) |
21:52:10 | * | yglukhov joined #nim |
21:52:10 | * | yglukhov_ quit (Read error: Connection reset by peer) |
21:54:20 | * | yglukhov quit (Read error: Connection reset by peer) |
21:54:31 | * | yglukhov joined #nim |
21:56:41 | * | yglukhov quit (Read error: Connection reset by peer) |
21:56:45 | derka | Hi guys |
21:57:02 | * | yglukhov joined #nim |
21:57:10 | Araq_ | hey derka |
21:57:27 | derka | Guys I might need to recruit a dev or two |
21:57:38 | derka | to do python and Nim |
21:57:55 | ldlework | remote? $100k+? |
21:58:01 | ldlework | Okay, sold. |
21:58:04 | derka | :) |
21:58:27 | derka | if dollar go back to its previous rate why not |
21:58:30 | derka | but at current rate.... |
21:58:31 | derka | :) |
21:58:32 | * | junw joined #nim |
22:00:37 | derka | so who are the top developpers apart from you Araq |
22:01:01 | * | gokr joined #nim |
22:01:06 | ldlework | If the dollar went back to its previous rate, it would be harder to afford 100k, not less. |
22:01:27 | ldlework | Unless the value of the dollar has been rising as of late, and I'm just ignorant. |
22:02:01 | pigmej | ldlework: it all depends on context. dolar is stronger compared to some currencies |
22:02:13 | pigmej | for example to PLN it's like +30% |
22:02:30 | derka | idlework in the past one euro was 1.5 $ |
22:02:30 | ldlework | then, gold. |
22:02:34 | derka | now it is almost 1$ i think |
22:02:35 | ldlework | :) |
22:03:04 | derka | idlework looks like you are not good at math not a good news :) |
22:03:50 | * | vendethiel quit (Ping timeout: 245 seconds) |
22:05:44 | * | vendethiel joined #nim |
22:05:47 | ldlework | I can't parse that sentence, but I'll assume its an insult. |
22:06:43 | * | gour quit (Quit: WeeChat 1.3) |
22:06:47 | matkuki | Araq_: This one works https://bpaste.net/show/aa72c1ac3f60 and this one corrupts: https://bpaste.net/show/f56a26f96706. Is this a Nim bug? |
22:07:33 | pigmej | derka: why do you need python AND nim ? |
22:08:02 | derka | pgmej because we use python internally and C, and i intend to move some parts to Nim |
22:08:14 | derka | idlework i dont mean to insult at all |
22:08:17 | derka | just a bad joke |
22:08:53 | * | mat4 joined #nim |
22:08:55 | mat4 | hello |
22:09:15 | pigmej | derka: ah ok |
22:09:41 | derka | idlework how long have you been in silicon valley |
22:09:42 | ldlework | hi mat4 |
22:09:50 | mat4 | hi ldlework |
22:09:52 | ldlework | couple years |
22:10:30 | Varriount | derka: I can work too! |
22:10:42 | Araq_ | matkuki: my bet is they both don't work but for one you're lucky |
22:11:51 | Varriount | derka: I know Python quite well, although I am a college student at present. |
22:11:57 | * | junw_ joined #nim |
22:12:32 | pigmej | I could help with python if so |
22:12:52 | derka | idlework might travel to silicon valley in the coming months |
22:13:13 | derka | Varriount where are you located |
22:13:36 | Varriount | derka: VA |
22:14:09 | derka | are you far from D.c |
22:14:14 | matkuki | Araq_: Thanks for trying! Will try BlaXpirit when he's available, he made the CSFML wrapper. Hopefully he knows. |
22:14:51 | Varriount | derka: I'm about 30-40 minutes away. |
22:14:56 | * | junw quit (Ping timeout: 245 seconds) |
22:15:03 | Varriount | Depends on the traffic. |
22:15:28 | derka | ok |
22:16:03 | derka | so not far from Vienna virginia |
22:16:19 | mat4 | constant dissolving in ranges doesn't seem to work: Either in case of range [511..constDefination - 1] as of range [511..(constDefination - 1)] for example |
22:16:31 | FreezerburnV | o/ |
22:16:37 | Varriount | derka: Not far, no. |
22:17:06 | derka | I will tell you when i go there so we can meet i need to go see one of our partners there |
22:17:23 | derka | how old are you can you drive yet :) |
22:17:29 | Sornaensis | ok |
22:17:30 | Varriount | Yes, I can drive. |
22:17:35 | matkuki | BlaXpirit: ping? |
22:17:42 | BlaXpirit | pony |
22:17:44 | Sornaensis | can anyone point me in the direction of a nim syntax highlighter/checker? |
22:17:48 | Sornaensis | for vim** |
22:17:58 | matkuki | BlaXpirit: Close enough :) |
22:18:14 | matkuki | Got time for a CSFML problem? |
22:18:55 | ldlework | matkuki: CSFML is abandoned |
22:19:03 | ldlework | I think it says that on the github page. |
22:19:16 | BlaXpirit | huh |
22:19:16 | * | brson quit (Ping timeout: 252 seconds) |
22:19:29 | mat4 | such definations compile, however the arithmetic expression is ignored ( |
22:19:35 | BlaXpirit | CSFML isn't abandoned |
22:19:37 | ldlework | ... |
22:19:49 | ldlework | I thought you said you implemented the whole thing wrongly and that you abandoned |
22:19:50 | BlaXpirit | and nim-csfml isn't really abandoned either |
22:19:55 | ldlework | and that you don't even know if it works correctly |
22:19:57 | BlaXpirit | nah it's not wrong, nim is wrong |
22:20:00 | matkuki | Idlework: you mean SFML |
22:20:13 | ldlework | I didn't mean /CSFML/ is abandoned |
22:20:17 | ldlework | as in /actual/ CSFML |
22:20:21 | ldlework | I meant nim-csfml heh |
22:20:33 | Sornaensis | hello does anyone here edit nim in vim and if so what do you use for syntax highlighting |
22:20:43 | ldlework | You basically used heavy language to suade me from using nim-csfml when I asked not 6 weeks ago |
22:20:56 | BlaXpirit | really |
22:21:14 | * | darkf quit (Quit: Leaving) |
22:21:17 | ldlework | you made a big stink about destructors and that you had no intention of working on it |
22:21:19 | matkuki | Idlework: sfml-nimrod is abandoned |
22:21:43 | ldlework | matkuki: I'm not referring to that |
22:21:48 | ldlework | I'm referring to nim-csfml specifically. |
22:21:56 | ldlework | I mean, I'm glad to hear its not the case. |
22:22:27 | BlaXpirit | i'm not going to actively work on it and i'm not gonna reimplement it to use wrappers which hugely negatively impacts it in every aspect |
22:22:45 | BlaXpirit | but if someone show a concrete bug then i'm gonna fix it |
22:23:02 | ldlework | 2015-10-30 12:23:03 BlaXpirit Arrrrr, i gave up on nim and on nim-csfml |
22:23:04 | ldlework | 2015-10-30 12:23:25 BlaXpirit the lib is kinda broken :/ |
22:23:06 | ldlework | 2015-10-30 12:23:43 BlaXpirit maybe there were advancements with finalizers, who knows, but i doubt it |
22:24:19 | * | shodan45 quit (Quit: Konversation terminated!) |
22:24:55 | ldlework | 2016-01-08 01:07:31BlaXpiritldlework, my projects are never really abandoned, but this one is one of the closest to being abandoned |
22:24:56 | BlaXpirit | ldlework, 2016-01-08.log:[11:07:31] <BlaXpirit> ldlework, my projects are never really abandoned, but this one is one of the closest to being abandoned |
22:25:00 | BlaXpirit | xD |
22:26:55 | FreezerburnV | BlaXpirit, You gave up on nim? |
22:27:02 | BlaXpirit | yes |
22:27:14 | FreezerburnV | Why so? |
22:27:19 | BlaXpirit | wouldn't have time for it anyway even if i didn't give up |
22:27:35 | FreezerburnV | Beyond time reasons, of course :) I know that hardship |
22:27:55 | dom96 | Sornaensis: I don't personally use vim, but curious why you're asking? |
22:28:18 | Sornaensis | so I can have syntax highlighting? |
22:28:40 | def- | Sornaensis: https://github.com/nim-lang/Nim/wiki/editor-support |
22:28:46 | mat4 | Sornaensis: Take a look at the homepage, syntax-highlighting is listed |
22:29:28 | Sornaensis | yea that plugin is not working for some reason |
22:29:32 | * | Sornaensis shakes head |
22:29:35 | Sornaensis | thx |
22:30:02 | def- | Sornaensis: works fine for me, did you follow the instructions? |
22:30:18 | mat4 | do you need a terminal-based text editor ? |
22:30:36 | Sornaensis | yes I followed the instructions lol |
22:30:52 | BlaXpirit | FreezerburnV, i don't want to be negative (anymore, anyway xD) |
22:32:04 | FreezerburnV | FreezerburnV, Not asking for negativity. Just curious about the reasons, since I was planning on investing more time into nim, but if there are reasons to just stick to something like Kotlin or learn Go, might as well learn that up front. If you want to PM me due to not wanting to be negative in #nim chat, I'd understand |
22:32:06 | * | vendethiel quit (Ping timeout: 252 seconds) |
22:32:51 | FreezerburnV | Why did I type my own name isntead of yours BlaXpirit? I'm apparently way too tired to think... |
22:34:14 | mat4 | Sornaensis: Because of probably the same problem as you, I ended up using Joe, modificating the Python highlighting scheme (which was an easy task) |
22:35:17 | * | Demon_Fox joined #nim |
22:37:56 | * | Jesin quit (Quit: Leaving) |
22:40:29 | * | Jesin joined #nim |
22:40:55 | mat4 | Araq_: Is the ignored arithmetic evaluation in constant expressions defining range types a bug or a feature ? |
22:41:41 | Araq_ | I don't understand you. |
22:43:28 | ephja | I think he has issues defining ranges with const values |
22:44:30 | ephja | "range[511..(constDefination - 1)]" |
22:44:34 | ephja | definition* |
22:45:30 | Araq_ | "doesn't seem to work". what's the error message? |
22:45:46 | Araq_ | range[511..(constDefination - 1)] surely should just work |
22:47:06 | ephja | indeed it does |
22:48:08 | mat4 | I've found the reason: The constant definations were not preprocessed correctly, sorry |
22:48:32 | mat4 | the error has nothing to do with Nim |
22:50:53 | * | yglukhov quit (Remote host closed the connection) |
22:52:24 | Araq_ | good. these are my favorite bugs |
22:54:03 | ldlework | lol |
22:57:04 | * | mat4 this statement reminds me of the dinner scene in Indiana Jones and the temple of doom... |
22:59:50 | Araq_ | lol |
23:00:29 | * | skyfex joined #nim |
23:04:28 | * | brson joined #nim |
23:14:46 | * | matkuki quit (Quit: ChatZilla 0.9.92 [Firefox 44.0/20160123151951]) |
23:17:37 | * | vendethiel joined #nim |
23:18:07 | Varriount | Araq_: I take it you like bugs like this: https://blogs.msdn.microsoft.com/oldnewthing/20140703-00/?p=583 |
23:30:17 | * | derka quit (Quit: derka) |
23:30:33 | * | derka joined #nim |
23:37:28 | * | mat4 quit (Quit: Verlassend) |
23:39:22 | * | vendethiel quit (Ping timeout: 250 seconds) |
23:44:28 | * | lompik joined #nim |
23:47:18 | * | vendethiel joined #nim |
23:53:25 | * | desophos joined #nim |
23:54:45 | * | derka quit (Quit: derka) |