<< 26-11-2016 >>

00:07:09*themagician quit ()
00:08:24*chemist69 quit (Ping timeout: 250 seconds)
00:28:21*chemist69 joined #nim
00:32:25*bjz joined #nim
00:37:43*yglukhov quit (Remote host closed the connection)
00:46:25*brechtm_ quit (Remote host closed the connection)
00:48:36*brechtm joined #nim
00:52:55*brechtm quit (Ping timeout: 256 seconds)
01:06:21*BitPuffin|osx quit (Read error: Connection reset by peer)
01:06:27*chemist69 quit (Ping timeout: 246 seconds)
01:26:49*chemist69 joined #nim
01:38:13*yglukhov joined #nim
01:39:09*Matthias247 quit (Read error: Connection reset by peer)
01:44:36*yglukhov quit (Ping timeout: 250 seconds)
01:56:19*kulelu88 quit (Quit: Leaving)
02:02:44*arnetheduck joined #nim
02:15:03*chemist69 quit (Ping timeout: 246 seconds)
02:28:43*chemist69 joined #nim
02:38:33*bjz_ joined #nim
02:40:53*bjz quit (Ping timeout: 260 seconds)
02:55:59*desophos joined #nim
02:56:00*chemist69 quit (Ping timeout: 246 seconds)
03:09:17*space-wizard joined #nim
03:18:21*chemist69 joined #nim
03:37:17*chemist69 quit (Ping timeout: 240 seconds)
03:42:09*yglukhov joined #nim
03:47:02*yglukhov quit (Ping timeout: 265 seconds)
03:57:55*chemist69 joined #nim
04:24:12*vendethiel quit (Ping timeout: 252 seconds)
04:41:57*chemist69 quit (Ping timeout: 240 seconds)
04:48:37*brechtm joined #nim
04:53:15*brechtm quit (Ping timeout: 246 seconds)
04:54:16*couven92 quit (Read error: Connection reset by peer)
05:00:31*chemist69 joined #nim
05:33:06*Rarglepuff joined #nim
05:36:02*xet7 joined #nim
05:39:32*space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
05:44:02*yglukhov joined #nim
05:48:42*yglukhov quit (Ping timeout: 268 seconds)
05:54:49*chemist69 quit (Ping timeout: 260 seconds)
06:01:30*Rarglepuff left #nim ("Leaving")
06:08:33*chemist69 joined #nim
06:37:13*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
07:12:45*chemist69 quit (Ping timeout: 260 seconds)
07:33:12*chemist69 joined #nim
07:45:04*yglukhov joined #nim
07:49:32*yglukhov quit (Ping timeout: 252 seconds)
08:08:00*bjz joined #nim
08:12:17*chemist69 quit (Ping timeout: 240 seconds)
08:30:46*chemist69 joined #nim
08:31:11*byte512 joined #nim
08:39:43*bjz_ joined #nim
08:40:24*bjz quit (Ping timeout: 246 seconds)
08:45:53*nsf joined #nim
08:52:19*chemist69 quit (Ping timeout: 256 seconds)
09:10:21*chemist69 joined #nim
09:13:03*Matthias247 joined #nim
09:34:42*yglukhov joined #nim
09:49:09*vendethiel joined #nim
10:04:34*yglukhov quit (Remote host closed the connection)
10:07:39*yglukhov joined #nim
10:24:21*chemist69 quit (Ping timeout: 246 seconds)
10:39:43*desophos quit (Read error: Connection reset by peer)
10:42:59*chemist69 joined #nim
10:48:23*bjz_ quit (Ping timeout: 258 seconds)
10:51:00*bjz joined #nim
10:55:58*elrood joined #nim
10:57:38*yglukhov quit (Remote host closed the connection)
11:07:58*chemist69 quit (Ping timeout: 245 seconds)
11:15:07*Matthias247 quit (Read error: Connection reset by peer)
11:28:31*chemist69 joined #nim
11:45:04*dddddd joined #nim
11:55:03*arnetheduck quit (Ping timeout: 245 seconds)
11:55:30*arnetheduck joined #nim
12:03:19*couven92 joined #nim
12:04:03*brechtm joined #nim
12:24:44*bjz_ joined #nim
12:24:56*Sembei joined #nim
12:25:30*bjz quit (Ping timeout: 250 seconds)
12:41:11*enthus1ast joined #nim
12:43:34*enthus1ast quit (Remote host closed the connection)
12:46:56*enthus1ast joined #nim
12:48:51enthus1astcan i somehow automatically create an definition file for a shared library that i can import in lets say free pascal?
12:50:40*chemist69 quit (Ping timeout: 258 seconds)
12:56:05Araqenthus1ast: you can indeed via macros and compiletime writeFile()
13:08:23Varriount|Phoneenthus1ast: You would wrote some sort of macro (like `pascalExport`) that would take a procedure or type body, scan the syntax structures, then use writeFile to write out the header/stub files.
13:08:59enthus1astty Araq Varriount|Phone this is what i nearly thought
13:11:46enthus1astmhh would something like this not a nice feature for the common c target?
13:14:32*chemist69 joined #nim
13:25:14*yglukhov joined #nim
13:37:22Araqwe had --header to generate a C header but the codegen wasn't designed for it
13:37:29Araqso it's about to become deprecated.
13:38:46*yglukhov quit (Remote host closed the connection)
13:40:37*dmi0 joined #nim
13:50:21*dmi0 quit (Ping timeout: 260 seconds)
13:51:34*dmi0 joined #nim
13:53:25*dmi0 quit (Client Quit)
14:00:34*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
14:01:16*kier quit (Ping timeout: 260 seconds)
14:02:01*chemist69 quit (Ping timeout: 260 seconds)
14:05:44Varriount|PhoneAraq: It's too bad there's no standard for embedding type and function information in a DLL
14:19:43vktecIs there a substr-like proc for Ropes?
14:20:17*chemist69 joined #nim
14:23:58Araqropes suck
14:24:09Araqgenerate semantic trees instead
14:25:06vktecAraq: Oh? Could you explain further why I shouldn't use ropes?
14:25:39Araqfoo(a, b, c)
14:25:47Araqas AST: 4 nodes
14:26:00Araqas rope: 8 nodes
14:26:38vktecI'm representing text, not syntax
14:26:51Araqthen use strings.
14:27:08Araqstrings represented as trees is wasteful
14:27:26vktecStrings are rather a lot slower than ropes for concatenation, deletion, etc. though, surely?
14:28:29Araqif you say so. in my benchmarks ropes always lose.
14:29:20vktecI see
14:29:34vktecMaybe I'm overcomplicating then :)
14:42:21*Sembei quit (Max SendQ exceeded)
14:43:43Varriount|Phonevktec: I'd use strings first, then see if the performance you get is acceptable.
14:43:48vktecOkay
14:44:26*Sembei joined #nim
14:44:32Varriount|Phonevktec: Just keep in mind that strings are copy-on-assignment by default.
14:44:35vktecWhat would be the best way to remove a character from the beginning of a string?
14:45:19Varriount|PhoneYou can use shallow() to make them copy like references, as long as you don't try modifying them.
14:47:27Varriount|Phonevktech: I think the efficient way would be `s = s[1..high(s)]`
14:48:45*chemist69 quit (Ping timeout: 256 seconds)
14:53:17Varriount|PhoneAlthough, I'm surprised delete() and del() don't work on strings
14:54:00vktecYeah, pop isn't implemented for them either.
14:54:25vktecI basically just copied and pasted the pop code for seqs and it worked, however
14:55:09Varriount|PhoneWell, pop generally removes an element from the end, not the front
14:56:21Varriount|PhoneThe problem with removing an element from the front is that the remaining string content must be shifted
14:57:09*xet7 quit (Ping timeout: 248 seconds)
14:58:26Araqpop() is for seqs used as stacks
14:58:36vktecVarriount|Phone: Yeah, I need pop as well as what's aptly named `shift` in other languages
14:58:37Araqstrings are not used as stacks hence no pop()
14:59:04vktecAraq: There are other uses for pop than stacks though
14:59:15Araqno.
14:59:24Araqpop is a stack operation.
14:59:37AraqremoveFirst, removeLast etc have other uses
15:01:04Varriount|Phonevktec: If you want, a string and a seq[char] are pretty much the same, structurally speaking
15:01:31vktecVarriount|Phone: Yeah, I may switch to seqs of chars. Probably more efficient
15:02:07Varriount|Phonevktec: Well, sequences are also copy-on-assignment too.
15:02:21vktecWell yes, that's true
15:03:18Varriount|PhoneAlthough, if you need to efficiently modify and move a string, you can always wrap it in a ref
15:04:34vktecOh? Would that be more efficient for adding and removing characters from the beginning and/or end?
15:04:46*PMunch joined #nim
15:05:41*dmi0 joined #nim
15:05:50*Guest37876 joined #nim
15:07:47*Guest37876 quit (Client Quit)
15:13:10*dmi0 quit (Quit: ~)
15:15:08*chemist69 joined #nim
15:23:35elroodnim doesn't have any support for intrinsics or anything similar yet, does it? besides directly using assembler statements, of course
15:28:50*Matthias247 joined #nim
15:30:10Varriount|Phoneelrood: Not really
15:30:46Varriount|Phoneelrood: For one thing, intrinsic vary with the underlying C compiler and/or architecture.
15:32:21elroodas does inline assembler. see your point, though, i'm not sure how useful they'd be in what is effectively a transpiler environment myself (sorry, hate me, Araq ;)
15:32:52elroodwas just wondering if anybody had done any work in that direction already
15:34:26*couven92 quit (Ping timeout: 250 seconds)
15:43:06*couven92 joined #nim
15:45:15*dmi0 joined #nim
15:51:33*dmi0 quit (Ping timeout: 248 seconds)
15:52:33*dmi0 joined #nim
15:52:58*BitPuffin|osx joined #nim
16:02:09*kier joined #nim
16:05:46Varriount|Phoneelrood: it would be nice if Nim could automatically support some standard asm Darcy
16:05:53Varriount|Phone*dialect
16:06:04Varriount|PhoneMight be a good idea for a project
16:06:46cheatfateVarriount|Phone, you mean some kind of inline assembly inside of nim's code?
16:07:22Varriount|Phonecheatfate: Well, Nim already has that afaik
16:07:31cheatfateVarriount|Phone, but how to support it with visual studio x64 (which don't have inline assembler)
16:08:11Varriount|PhoneHowever I believe Nim just translates it to the compiler's inline assembly directive
16:08:38Varriount|PhoneAnd it's still dependant on the asm syntax that compiler accepts
16:10:01cheatfateVarriount|Phone, you are right
16:10:09*chemist69 quit (Ping timeout: 246 seconds)
16:10:29cheatfatefor some reason gcc optimizer wants to optimize inline assembly code too
16:10:40Varriount|Phonecheatfate: https://msdn.microsoft.com/en-us/library/5f7adz6y.aspx
16:11:14cheatfateVarriount|Phone, as you can see your link shows 32bit assembler code
16:12:00cheatfateVarriount|Phone, https://msdn.microsoft.com/en-us/library/4ks26t93.aspx
16:12:13cheatfate`Inline assembly is not supported on the ARM and x64 processors. The following topics explain how to use the Visual C/C++ inline assembler with x86 processors`
16:12:36Varriount|PhoneAh, I missed that
16:13:08Varriount|PhoneI took x86 to mean the general family, not the 32-bit instruction set
16:17:46*couven92 quit (Ping timeout: 250 seconds)
16:18:29*couven92 joined #nim
16:19:24*arnetheduck quit (Ping timeout: 260 seconds)
16:23:10elroodis my memory playing games with me or has there been talk about nim using fasm some way back?
16:27:11*Trustable joined #nim
16:27:44*Sembei quit (Ping timeout: 250 seconds)
16:35:01*chemist69 joined #nim
17:01:06*Syneh_ joined #nim
17:13:32dom96Reposting this because I think it would be nice to have: Anybody have time to help with our Exercism track? https://github.com/exercism/xnim/issues/13
17:18:52*libman joined #nim
17:23:30*PMunch quit (Quit: leaving)
17:37:29*Demos joined #nim
18:03:54*space-wizard joined #nim
18:08:06*space-wizard quit (Ping timeout: 246 seconds)
18:26:55*nsf quit (Quit: WeeChat 1.6)
18:28:00*chemist69 quit (Ping timeout: 258 seconds)
18:38:14*Trustable quit (Remote host closed the connection)
18:40:47*enthus1ast quit (Ping timeout: 250 seconds)
18:48:21*chemist69 joined #nim
18:54:10*enthus1ast joined #nim
18:59:03*Sembei joined #nim
19:01:08*couven92 quit (Ping timeout: 250 seconds)
19:03:30*shashlick joined #nim
19:32:19*vlad1777d joined #nim
19:32:55*themagician joined #nim
20:08:21*byte512 quit (Ping timeout: 260 seconds)
20:19:13*nsf joined #nim
20:32:50*rynsin joined #nim
20:56:08*chemist69 quit (Ping timeout: 260 seconds)
21:11:37*yglukhov joined #nim
21:14:45*shashlick quit (Quit: Connection closed for inactivity)
21:15:21*brechtm quit (Ping timeout: 246 seconds)
21:15:21*chemist69 joined #nim
21:17:04*brechtm joined #nim
21:19:31*Kingsquee joined #nim
21:21:52*rynsin quit (Quit: rynsin)
21:22:38*rynsin joined #nim
21:26:51*rynsin quit (Client Quit)
21:28:22*rynsin joined #nim
21:28:27*rynsin quit (Client Quit)
21:29:09*rynsin joined #nim
21:29:15*rynsin quit (Client Quit)
21:30:45*rynsin joined #nim
21:30:51*rynsin quit (Client Quit)
21:31:35*rynsin joined #nim
21:31:39*rynsin quit (Client Quit)
21:33:09*rynsin joined #nim
21:33:15*rynsin quit (Client Quit)
21:38:44*desophos joined #nim
21:56:46*libman quit (Remote host closed the connection)
22:08:45*Varriount|Phone quit (Ping timeout: 260 seconds)
22:24:01*vktec quit (Quit: So long and thanks for all the fish)
22:24:30*vktec joined #nim
22:25:13*yglukhov quit (Remote host closed the connection)
22:30:08*vktec quit (Quit: Double check your options first!)
22:30:52*Varriount|Mobile joined #nim
22:30:52*vktec joined #nim
22:57:01*bjz joined #nim
22:57:19*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
23:00:15*elrood quit (Quit: Leaving)
23:04:46*Demos quit (Ping timeout: 258 seconds)
23:10:48*Demos joined #nim
23:10:50*couven92 joined #nim
23:17:02*Demos quit (Ping timeout: 258 seconds)
23:20:27*chemist69 quit (Ping timeout: 256 seconds)
23:21:30*nsf quit (Quit: WeeChat 1.6)
23:23:00*dmi0 quit (Quit: ~)
23:23:43*Ven joined #nim
23:25:42*yglukhov joined #nim
23:28:34*[ui] joined #nim
23:29:58*yglukhov quit (Ping timeout: 250 seconds)
23:30:26*dmi0 joined #nim
23:32:22*xet7 joined #nim
23:38:57*chemist69 joined #nim
23:57:50*themagician quit ()