| 00:00:52 | hvze | Araq: is this correct? |
| 00:00:53 | hvze | https://sr.ht/0Inc.png |
| 00:02:36 | Araq | hvze: you're better off using nimrtl.dll/lib.so/dynlib/whatever |
| 00:02:38 | robNewb | anyways the link i have posted shows the implemetatation of the Array of structs, and no problems about calling the function but only the marashaling i guess , as it does not present the content of the string-type member |
| 00:03:01 | Araq | robNewb: thank you. :-) |
| 00:05:29 | Araq | robNewb: filwit showed you to use seq and string, but these are not interoperable with your C code |
| 00:05:49 | robNewb | ur welcome (and really earned it) |
| 00:05:55 | Araq | for example, char* buffer becomes buffer: cstring |
| 00:07:09 | robNewb | so i should replace the string to char* as i do with c /c++ ? |
| 00:07:28 | Araq | well I'm not sure what you're trying to do |
| 00:08:55 | Araq | why do you use CoTaskMemAlloc? is that some Win API stuff I don't know? |
| 00:10:18 | robNewb | i am simply trying a data structure as a test instead of a class object i use a struct as it's faster to create a struct than a class in C# , so i create the array of structs in nim which doea it around 8-10 times faster than c# and then i try to plot it to the console |
| 00:12:29 | robNewb | by calling another function that prints the contents c# shows the outcome of a nim functions thate iterates on the collection of structs, it even prints the correct unicode of my language, so the implementation on the side of nim is perfect |
| 00:14:13 | Araq | cool. fyi questions usually end with a question mark. |
| 00:14:32 | robNewb | i just couldn't findout how to convert the buffer to the c# string , i tried with a Intptr than convert it via marshal, and i tried with char* |
| 00:14:36 | Xe | Is there protocol buffer bindings for nim yet? |
| 00:14:41 | * | zepolen_ quit (Remote host closed the connection) |
| 00:16:18 | * | Trustable quit (Remote host closed the connection) |
| 00:16:36 | * | Demon_Fox joined #nim |
| 00:17:59 | Araq | easiest is to export a Nim proc like |
| 00:18:17 | ephja | Xe: I found this https://github.com/huodon/protobuf |
| 00:18:20 | Araq | proc toCString(s: string; len: var int): cstring = |
| 00:18:29 | Araq | result = cstring(s) |
| 00:18:34 | Araq | len = s.len |
| 00:18:57 | Araq | and then import the 'var int' as 'ref int32' in C# |
| 00:19:31 | Araq | and do something like String.FromBytes(toCString(...)) |
| 00:19:43 | * | Araq doesn't remember C#'s strings API |
| 00:20:17 | Araq | you can also add 2 * sizeof(pointer) to the address of the string to get to the actual data |
| 00:24:42 | robNewb | i am sorry i don't speak chinese, i hardly know how to work with pointers, just recently started with marashaling then some c++ , i can remember two things on pointers, they have a * and a & and sometimes you can put ** so its pointer to pointer . but i dont understand any of what you said as to 2 * sizeof(pointer) and there... you have the data easy (: |
| 00:30:11 | robNewb | the two options i could try to contain the return is via char* and then translate -> string rtvalue= new string(buffer) or via IntPtr member , IntPtr rtvaluePtr = buffer, string rtvalueStr = Marshal.PtrToStringAnsi(rtvaluePtr) |
| 00:30:49 | Araq | well my last remark was an alternative solution. |
| 00:31:22 | Araq | my proc toCString snippet was the solution you should try |
| 00:33:32 | robNewb | aha you suggest that when i want to use the value call nim too ... i didn't think about it |
| 00:34:41 | * | Varriount-Laptop joined #nim |
| 00:36:47 | Varriount-Laptop | Araq: Why not Use a proper protocol then? Use an integer to represent lengths and such. |
| 00:37:37 | Varriount-Laptop | Creating a new connection for each command, when such commands could be run each time a user types in something, is quite inefficient. |
| 00:39:31 | nchambers | wheres the irc lib located again? |
| 00:39:47 | Varriount-Laptop | Also, as far as I know, nimsuggest answers are still line-based, so you know you're done reading data as you detect a raw newline combination. |
| 00:39:54 | * | xificurC quit (Ping timeout: 260 seconds) |
| 00:40:15 | Varriount-Laptop | nchambers, I believe it's a nimble package now. |
| 00:40:28 | nchambers | well I was hoping to go over the source |
| 00:40:48 | Varriount-Laptop | https://github.com/nim-lang/irc |
| 00:41:22 | Araq | Varriount-Laptop: be my guest, nimsuggest is separate from the compiler so that the compiler is not bloated with all these different protocols |
| 00:41:42 | Araq | we have a specific protocol for emacs, for example |
| 00:42:52 | nchambers | thanks |
| 00:44:09 | Araq | Varriount-Laptop: I haven't found the connections to be a problem for performance though. |
| 00:45:24 | Araq | performance is a problem when it fails to type check and so goes into the fallback solution which is to dump the whole symbol table |
| 00:46:05 | Araq | I think we should trim the results based on the number of usages |
| 00:46:34 | Araq | nimsuggest now supports module.| even if 'module' has not been imported yet |
| 00:48:44 | * | desophos quit (Remote host closed the connection) |
| 00:49:24 | * | hvze quit (Ping timeout: 246 seconds) |
| 00:49:43 | * | strcmp1 quit (Read error: Connection reset by peer) |
| 00:49:51 | * | strcmp1 joined #nim |
| 00:52:13 | * | vyaghra joined #nim |
| 00:53:34 | * | nande joined #nim |
| 00:57:20 | * | zepolen joined #nim |
| 01:01:51 | * | zepolen quit (Ping timeout: 252 seconds) |
| 01:08:25 | * | vqrs quit (Max SendQ exceeded) |
| 01:08:42 | * | vqrs joined #nim |
| 01:14:33 | * | hvze joined #nim |
| 01:26:51 | * | ephja quit (Ping timeout: 246 seconds) |
| 01:36:24 | * | vyaghra quit (Ping timeout: 246 seconds) |
| 01:36:53 | * | ephja joined #nim |
| 01:41:54 | robNewb | i will go to sleep and think better fresh tommorow, i'm starting to think of moving my code entirely to nim though i will miss is sql server.. |
| 01:42:26 | robNewb | thanks Araq |
| 01:51:02 | hvze | robNewb: i think nim has sql things so you should be good |
| 01:55:18 | * | jaco60 quit (Ping timeout: 240 seconds) |
| 01:58:03 | robNewb | i hope my instincts is as good as they always are, nim is one of about 5 top alternatives among c++ fortran D Rust Go i feel nim will rise even though it has no big brother like google microsoft or mozilla |
| 01:58:43 | robNewb | it has very good-spirit comunity that wins |
| 02:06:50 | * | strcmp2 joined #nim |
| 02:08:13 | * | strcmp1 quit (Ping timeout: 252 seconds) |
| 02:09:44 | Varriount-Laptop | Araq: What happened to the rdstdin module's documentation?? |
| 02:17:01 | * | brson quit (Quit: leaving) |
| 02:24:57 | * | Varriount-Laptop quit (Ping timeout: 246 seconds) |
| 02:45:18 | hvze | ^ that and is there like a robot class or do I have to wrap c things for that |
| 02:52:40 | * | desophos joined #nim |
| 02:56:45 | * | desophos quit (Ping timeout: 240 seconds) |
| 03:03:51 | * | JStoker quit (Ping timeout: 268 seconds) |
| 03:06:05 | * | JStoker joined #nim |
| 03:07:46 | * | darkf joined #nim |
| 03:07:58 | * | JStoker quit (Excess Flood) |
| 03:09:35 | * | JStoker joined #nim |
| 03:18:21 | * | vendethiel joined #nim |
| 03:21:33 | * | linkedinyou quit (Quit: linkedinyou) |
| 03:28:05 | * | ephja quit (Ping timeout: 240 seconds) |
| 03:31:17 | * | nande quit (Read error: Connection reset by peer) |
| 03:41:18 | * | vendethiel quit (Ping timeout: 240 seconds) |
| 03:42:01 | * | Varriount-Laptop joined #nim |
| 03:43:15 | * | pregressive joined #nim |
| 03:43:36 | Varriount-Laptop | reactormonk: Any reason the epc mode for nimsuggest uses some odd form of testing for an open port, rather than just using port 0? |
| 04:07:36 | * | darkf_ joined #nim |
| 04:09:05 | * | NhanH_ joined #nim |
| 04:09:19 | * | Heartmen- joined #nim |
| 04:10:08 | * | desophos joined #nim |
| 04:10:45 | * | AckZ_ joined #nim |
| 04:11:27 | * | nchambers quit (Ping timeout: 240 seconds) |
| 04:11:28 | * | AckZ quit (Ping timeout: 240 seconds) |
| 04:11:29 | * | NhanH quit (Ping timeout: 240 seconds) |
| 04:11:30 | * | darkf quit (Ping timeout: 240 seconds) |
| 04:11:31 | * | Heartmender quit (Ping timeout: 240 seconds) |
| 04:12:20 | * | AckZ_ is now known as AckZ |
| 04:13:53 | * | NhanH_ is now known as NhanH |
| 04:15:35 | * | nchambers joined #nim |
| 04:19:42 | * | Heartmen- is now known as Heartmender |
| 04:19:45 | * | Heartmender quit (Changing host) |
| 04:19:45 | * | Heartmender joined #nim |
| 04:19:45 | * | Heartmender quit (Changing host) |
| 04:19:45 | * | Heartmender joined #nim |
| 04:30:41 | * | zepolen joined #nim |
| 04:30:49 | * | pregressive quit (Remote host closed the connection) |
| 04:31:39 | * | hvze quit (Ping timeout: 246 seconds) |
| 04:35:29 | * | zepolen quit (Ping timeout: 265 seconds) |
| 04:58:12 | * | Varriount-Laptop quit (Ping timeout: 265 seconds) |
| 05:42:52 | * | desophos quit (Read error: Connection reset by peer) |
| 05:45:51 | * | darkf_ is now known as darkf |
| 06:14:48 | * | bjz joined #nim |
| 06:19:59 | * | bjz quit (Ping timeout: 264 seconds) |
| 06:22:15 | * | bjz joined #nim |
| 06:30:23 | * | Kingsquee quit (Ping timeout: 252 seconds) |
| 06:46:13 | * | bjz quit (Quit: Textual IRC Client: www.textualapp.com) |
| 06:48:21 | * | vqrs quit (Max SendQ exceeded) |
| 06:48:40 | * | Varriount-Laptop joined #nim |
| 06:48:50 | * | vqrs joined #nim |
| 06:48:50 | * | Kingsquee joined #nim |
| 06:56:52 | * | hvze joined #nim |
| 07:07:14 | * | cyraxjoe quit (Ping timeout: 260 seconds) |
| 07:17:20 | * | Xe quit (Ping timeout: 240 seconds) |
| 07:19:36 | * | Xe joined #nim |
| 07:27:24 | * | mal`` quit (*.net *.split) |
| 07:27:24 | * | k1i quit (*.net *.split) |
| 07:30:22 | * | mal`` joined #nim |
| 07:40:34 | * | vendethiel joined #nim |
| 07:49:03 | * | Varriount-Laptop quit (Ping timeout: 246 seconds) |
| 08:00:44 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
| 08:02:21 | * | bjz joined #nim |
| 08:12:21 | * | yglukhov joined #nim |
| 08:41:39 | * | Demon_Fox quit (Ping timeout: 255 seconds) |
| 08:42:28 | * | strcmp2 quit (Quit: bbs) |
| 08:49:18 | * | Trustable joined #nim |
| 08:57:12 | * | vendethiel quit (Ping timeout: 268 seconds) |
| 08:57:59 | * | hvze quit (Ping timeout: 240 seconds) |
| 09:00:24 | robNewb | hvze thanks for your suggestions, i am trying to get some more info about this i have posted the whole process on stack overflow |
| 09:01:09 | robNewb | so it will be easy to undersatand the problem i have |
| 09:01:26 | robNewb | http://stackoverflow.com/questions/33515570/interop-with-nim-return-struct-array-containing-a-string-char-member |
| 09:17:53 | * | xiongmao86 joined #nim |
| 09:18:04 | * | xiongmao86 left #nim (#nim) |
| 09:19:50 | * | Soak joined #nim |
| 09:26:45 | * | coffeepot joined #nim |
| 09:42:38 | * | jaco60 joined #nim |
| 09:43:44 | reactormonk | How do I access tuple elements? (string, Port) seems to be unnamed for me. |
| 09:44:52 | reactormonk | ah, unpacking. |
| 09:44:57 | * | darkf_ joined #nim |
| 09:46:48 | robNewb | hi again, sorry to interrupt , if there's anyone that's experienced with c and c# i could use some help on this http://stackoverflow.com/questions/33515570/interop-with-nim-return-struct-array-containing-a-string-char-member |
| 09:47:31 | * | darkf quit (Ping timeout: 250 seconds) |
| 09:50:50 | reactormonk | C#? |
| 09:51:07 | reactormonk | O.o neat. |
| 09:52:43 | robNewb | @reactomonk , translate last comment (: |
| 09:53:25 | reactormonk | what does the generated C code for the nim code look like? I'd run -d:release, less debug statements. |
| 09:53:43 | robNewb | i did |
| 09:54:27 | robNewb | you know it's not so easey to read as it is autogenerated all is autonamed |
| 09:58:08 | robNewb | i have exported another proc to test the current one, so in the new proc i am calling the one that i want to read the array from , and insted of calling the original one that returns the array, in the added proc i am looping on the array within the nim code and echo each element , then i call that new proc which just prints (a void proc) |
| 09:58:35 | robNewb | and the result on the console in c# does perform correctly |
| 09:58:52 | * | zepolen joined #nim |
| 10:05:25 | reactormonk | Could you paste it? |
| 10:11:58 | * | makoLine quit (Ping timeout: 240 seconds) |
| 10:23:42 | * | elrood joined #nim |
| 10:25:38 | * | bjz_ joined #nim |
| 10:26:31 | * | bjz quit (Ping timeout: 252 seconds) |
| 10:40:27 | * | darkf_ is now known as darkf |
| 10:55:20 | * | zepolen quit (Remote host closed the connection) |
| 10:57:35 | * | linkedinyou joined #nim |
| 11:01:32 | * | zepolen joined #nim |
| 11:05:58 | * | zepolen quit (Ping timeout: 240 seconds) |
| 11:09:26 | * | ephja joined #nim |
| 11:27:42 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
| 11:35:37 | avsej | how I would declare multi-line string literal in nim? |
| 11:36:05 | Araq | """not |
| 11:36:06 | Araq | unlike |
| 11:36:09 | Araq | Python""" |
| 11:36:36 | avsej | but if I have some binary string, and do not want whitespaces in it? |
| 11:36:53 | ephja | are you still planning to make 'add' behave like 'safeAdd'? |
| 11:36:59 | avsej | like `var foo = "xxxx" \n "yyyy"` |
| 11:37:57 | Araq | var foo = "xxxx" & "\n" & "yyy" |
| 11:38:07 | Araq | ephja: I'm torn. |
| 11:38:30 | avsej | var header = "\x80\x00\x00\x05" & |
| 11:38:30 | avsej | "\x00\x00\x00\x00" |
| 11:38:34 | avsej | this does not work |
| 11:38:45 | ephja | do you have any alternatives in mind? such as defaulting to "" unless annotated with noInit |
| 11:39:12 | avsej | is there string continuation like \ in C macros |
| 11:39:27 | avsej | ? |
| 11:39:42 | ephja | was it only discussed here before? |
| 11:40:33 | Araq | avsej: why wouldn't it? |
| 11:41:22 | avsej | oh, it works, failing for other reason |
| 11:41:24 | avsej | thanks |
| 11:41:53 | Araq | ephja: well there are lots of things we can do instead, for example make the 'not nil' checker useful enough |
| 11:42:17 | avsej | does it concatenate string literals on compile time? or runtime? |
| 11:42:45 | Araq | I'm not happy with len(nil) returning 0, it lead to rather strange choices in the stdlib |
| 11:43:05 | Araq | so I am not keen on making add(nil) work |
| 11:43:14 | Araq | avsej: compile time |
| 11:44:02 | ephja | that will forever be the case I assume |
| 11:44:49 | Araq | avsej: but you should use 'const' rather than 'var' for it |
| 11:44:57 | Araq | for other reasons |
| 11:45:12 | Araq | (readability, string passing efficiency) |
| 11:45:12 | avsej | great |
| 11:48:46 | * | elrood quit (Ping timeout: 244 seconds) |
| 11:54:16 | * | elrood joined #nim |
| 12:04:42 | * | xet7 quit (Quit: Leaving) |
| 12:07:30 | yglukhov | can i use nimscript fs routines in regular nimvm context? |
| 12:08:27 | * | pregressive joined #nim |
| 12:09:35 | Araq | hrm, not sure. might work. |
| 12:10:05 | * | pregressive quit (Remote host closed the connection) |
| 12:11:58 | yglukhov | import nimscript: Error: cannot open 'nimscript |
| 12:12:18 | yglukhov | listFiles: Error: undeclared identifier: 'listFiles' |
| 12:18:10 | Araq | oh yeah, you cannot because system.nim is picky |
| 12:18:36 | Araq | do you really want to run listFiles at compiletime? |
| 12:27:07 | yglukhov | yep |
| 12:28:27 | yglukhov | anyway, i can fallback to staticExec, not a huge problem. but still would be nice =) |
| 12:31:31 | Araq | well make it happen, it's not hard (TM) |
| 12:31:47 | Araq | (don't you love it when I say that) |
| 12:33:34 | yglukhov | you mean make it happen in nim or in my project? :P |
| 12:33:42 | Araq | patch the compiler |
| 12:35:33 | Araq | gotta go, bbl |
| 12:35:44 | yglukhov | what do you think of allowing existing os.* fs routines to perfrom in compile time? and the nimscript would just wrap them? compiling for JS target would make them {.compileTime.} only |
| 12:36:05 | bbl | Araq: I'm starting to hate my nick |
| 12:40:03 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
| 12:46:12 | * | bjz joined #nim |
| 12:46:31 | * | vqrs quit (Max SendQ exceeded) |
| 12:46:49 | * | vqrs joined #nim |
| 12:54:01 | * | bjz quit (Ping timeout: 268 seconds) |
| 12:54:30 | * | bjz joined #nim |
| 12:55:13 | robNewb | is there anyone that knows c# good enough to post an answer to this ? -> http://stackoverflow.com/questions/33515570/interop-with-nim-return-struct-array-containing-a-string-char-member |
| 13:00:23 | * | mal`` quit (K-Lined) |
| 13:04:20 | * | dom96 quit (Changing host) |
| 13:04:20 | * | dom96 joined #nim |
| 13:10:30 | * | coffeepot joined #nim |
| 13:14:24 | * | BitPuffin joined #nim |
| 13:18:37 | robNewb | hey what does it mean that if i am printing something like this |
| 13:18:40 | robNewb | var dummy = char(146) & char(147 |
| 13:19:16 | robNewb | then letters in my languages shows correctly but not like |
| 13:19:26 | robNewb | var dummy = "אבגדה" |
| 13:26:20 | Araq | robNewb: it means you need to construct your c# string from UTF-8 |
| 13:26:33 | Araq | C# has an API for that, but I dunno its name |
| 13:30:14 | Araq | yglukhov: well it's not like full os.nim support in the VM is easy to implement |
| 13:30:37 | Araq | the required marshalling gets quite complex |
| 13:33:25 | * | zepolen joined #nim |
| 13:38:24 | robNewb | for now the problem on my interop is not the encoding issue its the marshalling i think , as i try to pass any kind of string... later i might need to deal with the encoding too |
| 13:38:25 | * | zepolen quit (Ping timeout: 268 seconds) |
| 13:39:45 | * | pregressive joined #nim |
| 13:43:17 | * | pregressive quit (Remote host closed the connection) |
| 13:46:02 | robNewb | i think i need to start step by step : |
| 13:46:11 | robNewb | produce a c char* from nim |
| 13:46:15 | robNewb | var buffer: seq[Cchar] |
| 13:59:57 | * | zepolen joined #nim |
| 14:03:11 | Araq | no, just cstring(theNimString) |
| 14:03:38 | Araq | seq[Cchar] produces the very same problem, namely that you have some header that you treat as chars |
| 14:03:59 | Araq | I told you yesterday how to do it, but you wouldn't listen :P |
| 14:09:24 | * | strcmp1 joined #nim |
| 14:09:34 | robNewb | i am trying to figure if there is a way that i'll do as you instructed me, but within the same proc to produce the return value from a cstring(theNimstring) |
| 14:09:41 | robNewb | a struct member.buffer = cstring(someString) would it hen work ? |
| 14:10:00 | * | strcmp1 quit (Client Quit) |
| 14:10:23 | * | pregressive joined #nim |
| 14:10:59 | robNewb | type |
| 14:11:18 | robNewb | package |
| 14:12:04 | Araq | my solution doesn't require you to use 'cstring' everywhere. |
| 14:12:09 | robNewb | var buffer: char array of type returned by cstring() |
| 14:12:48 | robNewb | i have saved your snippet |
| 14:13:08 | robNewb | only thing i wonder about it : |
| 14:13:32 | Araq | I don't know why you cannot just follow my instructions and see where it leads you. What you're trying is worse than my solution for lots of reasons |
| 14:15:25 | robNewb | i wanted to avoid an extra call form c# to nim when i want to access the string value. am i wrong that i think you ment that the proc you gave me is for every access of an element when in c# ? |
| 14:16:53 | Araq | no, you're right, but it's an extra call that should be really cheap |
| 14:17:02 | robNewb | or you mean as internal proc not to be exported but as a helper |
| 14:17:47 | Araq | well in your C# code you should have a method that wraps these 2 calls for you |
| 14:18:21 | robNewb | ok i could see i tested the call to nim is cheap |
| 14:18:53 | robNewb | i am going to paste the : |
| 14:18:59 | robNewb | proc toCString(s: string; len: var int): cstring = result = cstring(s) len = s.len |
| 14:19:19 | robNewb | as export too. then see how it goes |
| 14:25:26 | * | darkf quit (Read error: Connection reset by peer) |
| 14:25:51 | * | darkf joined #nim |
| 14:31:57 | * | xet7 joined #nim |
| 14:36:59 | * | pregressive quit (Remote host closed the connection) |
| 14:37:18 | * | pregressive joined #nim |
| 14:37:30 | * | pregressive quit (Remote host closed the connection) |
| 14:40:00 | * | pregressive joined #nim |
| 14:44:50 | * | pregressive quit (Ping timeout: 272 seconds) |
| 14:46:12 | * | pregressive joined #nim |
| 14:46:16 | * | pregressive quit (Remote host closed the connection) |
| 14:46:44 | * | desophos joined #nim |
| 14:52:37 | * | xet7 quit (Quit: Leaving) |
| 14:54:15 | * | BitPuffin quit (Ping timeout: 255 seconds) |
| 14:58:01 | * | pregressive joined #nim |
| 14:58:54 | * | pregressive quit (Remote host closed the connection) |
| 15:22:18 | robNewb | Araq as a start : i have 2 working options for a member type in my c# struct (there's a third that's using a normal string and its totally another approach) so : |
| 15:22:57 | robNewb | thats regarding up untill now when calling c/c++ |
| 15:23:13 | robNewb | StrVal: char* |
| 15:23:22 | robNewb | using StrVal: IntPtr |
| 15:24:18 | robNewb | thoes two work with c++ as the later is 15% faster then char* |
| 15:24:42 | robNewb | ok now when i tried first with nim |
| 15:24:59 | robNewb | *(*CurrentPack).StrVal Cannot dereference 'CurrentPack->StrVal'. The pointer is not valid. |
| 15:28:29 | robNewb | and when i try the second than it's seem to bee ok as i am debuging with breakpoint on each element in a for loop : |
| 15:29:40 | robNewb | CurrentPack->StrVal = 36094320 |
| 15:30:06 | robNewb | CurrentPack->StrVal = 36094368 |
| 15:30:18 | * | Demon_Fox joined #nim |
| 15:30:29 | robNewb | CurrentPack->StrVal = 36094416 .. |
| 15:30:52 | robNewb | it looks like healthy pointers |
| 15:31:07 | * | Demos joined #nim |
| 15:31:47 | * | mal`` joined #nim |
| 15:31:47 | * | k1i joined #nim |
| 15:31:52 | * | mal`` quit (Max SendQ exceeded) |
| 15:33:18 | robNewb | but. converting the pointer to string in c# is the problem ... so what's the point calling the "Extra proc" with a value like |
| 15:33:34 | robNewb | "3/4 " - (first element) |
| 15:33:52 | robNewb | "\t" (all the rest) |
| 15:34:01 | * | mal`` joined #nim |
| 15:34:52 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
| 15:38:03 | * | Demos quit (Ping timeout: 246 seconds) |
| 15:42:35 | Araq | robNewb: can you add to an IntPtr in C#? |
| 15:45:25 | * | yglukhov quit (Ping timeout: 240 seconds) |
| 15:47:45 | * | zepolen quit (Remote host closed the connection) |
| 15:48:49 | * | pregressive joined #nim |
| 15:57:39 | * | yglukhov joined #nim |
| 16:01:12 | robNewb | never tried but shoot, i don't have a clue so let's give it a try |
| 16:02:38 | * | ephja quit (Ping timeout: 240 seconds) |
| 16:05:04 | Araq | add 8 to the pointer |
| 16:05:29 | robNewb | there is a good post here , the last post answer is updated (.net 4 ) http://stackoverflow.com/questions/1866236/add-offset-to-intptr |
| 16:06:21 | Araq | anybody got a clue how to fix this: could not load: libSDL2_ttf.dylib |
| 16:06:26 | robNewb | ok , ill try the way the last answer in that link |
| 16:17:40 | * | zepolen joined #nim |
| 16:22:10 | robNewb | ok, i checked and made sure that arithmetic opporation did take effect, and i could see it does but with no change |
| 16:23:28 | robNewb | meaning value of pointer accepted +8 but value of marshall is still "" |
| 16:24:36 | robNewb | sorry not that bad, value is "\t" (: |
| 16:27:12 | robNewb | and i have tried all kinds of marshall on that pointer .PtrToStringAnsi .PtrToStringAuto PtrToStringBSTR .... just incase |
| 16:28:52 | Araq | well you need to gist what you tried |
| 16:34:35 | robNewb | i googled gist, is it to do with github? |
| 16:36:26 | robNewb | sorry i have limited knowlage, it's funny i guess i don't know most of those keywords you know of |
| 16:38:43 | robNewb | i think there's other ways, anyhow i am stubrn so i will take it as a project when i will be done with this i'll make sure to inform you |
| 16:45:34 | * | antoniomo joined #nim |
| 16:47:06 | * | antoniomo quit (Client Quit) |
| 16:47:22 | * | antoniomo joined #nim |
| 16:51:52 | robNewb | Araq ! |
| 16:54:40 | * | shodan45 joined #nim |
| 16:55:28 | robNewb | i just changed the string to cstring and it's 1% close to be perfect as it's now prints !! i don't belive it i will later try to see the differences with nims built-in string but for now its ok only thing is to find how to concat the trailing digit instead of last char as it's constant now |
| 17:07:07 | * | yglukhov quit (Ping timeout: 244 seconds) |
| 17:11:56 | * | desophos quit (Read error: Connection reset by peer) |
| 17:31:21 | * | desophos joined #nim |
| 17:43:21 | * | brson joined #nim |
| 17:44:59 | reactormonk | robNewb, https://gist.github.com/ |
| 17:52:00 | robNewb | oh (:P this is goot |
| 17:56:38 | elrood | have we come to the point where gist the github service is more widely used than gist the original verb? ;) |
| 17:58:09 | reactormonk | elrood, pretty much. |
| 17:59:04 | * | juanfra quit (Quit: juanfra) |
| 18:00:33 | * | vqrs quit (Max SendQ exceeded) |
| 18:02:22 | * | vqrs joined #nim |
| 18:04:52 | robNewb | thank's alot reactormonk this is the result so far |
| 18:04:54 | robNewb | https://gist.github.com/anonymous/29677718de88aca8de29 |
| 18:06:11 | * | mat4 joined #nim |
| 18:06:14 | mat4 | hello |
| 18:23:14 | * | Guest16367isaway is now known as Guest16367 |
| 18:28:13 | * | juanfra joined #nim |
| 18:32:01 | robNewb | and i think this is extra step i can get rid of: cstring (dummy & $i) as it costing over 25 % speed los , then c++ wins and i can't let it happen (; |
| 18:32:37 | mat4 | reads like a microbenchmark |
| 18:42:02 | * | makoLine joined #nim |
| 18:42:22 | * | mat4 quit (Quit: leaving) |
| 18:42:39 | * | darkf quit (Quit: Leaving) |
| 18:54:06 | * | Matthias247 joined #nim |
| 19:02:40 | * | vendethiel joined #nim |
| 19:09:31 | * | desophos quit (Remote host closed the connection) |
| 19:10:51 | * | desophos joined #nim |
| 19:13:03 | * | kata_ quit (Ping timeout: 246 seconds) |
| 19:15:20 | robNewb | mat4: might be microbenchmark .. but i would like to learn how to properly use nim and for now it's also interop nim from c# |
| 19:16:51 | robNewb | so it's important for me to understand for example https://gist.github.com/anonymous/29677718de88aca8de29 <- here, how to do the same with cchar as i have done with nim built-in char |
| 19:47:18 | * | desophos quit (Remote host closed the connection) |
| 19:52:52 | * | desophos joined #nim |
| 19:52:56 | * | desophos quit (Remote host closed the connection) |
| 19:53:12 | * | desophos joined #nim |
| 20:04:17 | * | xificurC joined #nim |
| 20:25:26 | * | ldlework quit (Remote host closed the connection) |
| 20:32:07 | * | ldlework joined #nim |
| 20:49:39 | * | antoniomo quit (Quit: WeeChat 1.3) |
| 20:56:41 | * | ephja joined #nim |
| 21:25:20 | * | yglukhov joined #nim |
| 21:49:39 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
| 21:58:09 | * | desophos quit (Remote host closed the connection) |
| 21:58:51 | * | Ven joined #nim |
| 22:00:47 | * | desophos joined #nim |
| 22:02:49 | * | Ven quit (Read error: Connection reset by peer) |
| 22:05:01 | * | desophos quit (Ping timeout: 252 seconds) |
| 22:14:29 | * | Trustable quit (Remote host closed the connection) |
| 22:18:38 | * | Ven joined #nim |
| 22:20:47 | * | cyraxjoe joined #nim |
| 22:29:58 | * | Sembei joined #nim |
| 22:42:27 | * | Guest16367 is now known as Guest16367isaway |
| 22:49:59 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 22:54:14 | * | shodan45 quit (Quit: Konversation terminated!) |
| 22:55:57 | * | desophos joined #nim |
| 22:58:31 | * | ozra joined #nim |
| 23:10:15 | * | pregressive quit () |
| 23:14:25 | * | vendethiel quit (Ping timeout: 240 seconds) |
| 23:41:50 | * | nchambers is now known as telnet |
| 23:42:03 | * | telnet is now known as nchambers |
| 23:53:36 | * | yglukhov quit (Read error: Connection reset by peer) |
| 23:54:12 | * | yglukhov joined #nim |
| 23:57:37 | * | xet7 joined #nim |