00:01:28 | * | gokr2 quit (Quit: Leaving.) |
00:03:19 | dom96 | I don't think there is any other way to do it |
00:09:05 | gmpreussner | ok |
00:11:30 | * | miko__ quit (Ping timeout: 250 seconds) |
00:17:38 | * | Kingsquee joined #nim |
00:22:32 | ldlework | why does unittest module report 0/0 tests passed? https://gist.github.com/dustinlacewell/7178807ec12e020b34bf |
00:22:53 | ldlework | oh I see nm |
00:23:01 | awsteele | what was the issue? |
00:25:51 | ldlework | awsteele: I was still running einheit's test runner |
00:25:59 | ldlework | the unittest module doesn't report how many suceeded and such |
00:26:07 | awsteele | ah ok |
00:26:28 | * | BitPuffin joined #nim |
00:32:39 | ldlework | oh dang, the unittest module's `check` has the same problems as einheits -.- |
00:33:52 | ldlework | oh well |
00:48:55 | * | dorei joined #nim |
00:51:34 | ldlework | ... the unittest module runs tests automatically -.- |
00:52:01 | ldlework | lol god damn it |
00:55:25 | * | lxdong joined #nim |
01:03:28 | * | derka quit (Quit: derka) |
01:09:24 | ldlework | The difference between these two files causes a segfault while compiling: https://gist.github.com/dustinlacewell/74047a67b446e181095e |
01:10:26 | ldlework | If remove the use of the RNG concept |
01:10:34 | ldlework | and use a MersenneTwister directly, it compilers |
01:10:37 | ldlework | compiles |
01:11:06 | ldlework | I wonder how much of Nim itself is unit tested |
01:16:06 | * | derka joined #nim |
01:17:14 | * | derka quit (Client Quit) |
01:19:33 | * | wh1t3r0s3 quit (Ping timeout: 240 seconds) |
01:25:33 | * | toaoMgeorge quit (Ping timeout: 240 seconds) |
01:27:06 | lxdong | anyone here? |
01:27:12 | def- | lxdong: sure, what's up? |
01:28:59 | * | jaco60 quit (Ping timeout: 240 seconds) |
01:35:13 | lxdong | I'm from China and I guess it is late in your time zone.I saw GSoC list and want to talk about one thing,is it possible to rewrite javascript in Nim? |
01:35:43 | Xe | of course, nim is turing complete and so is a parser-evaluator |
01:36:02 | def- | lxdong: what do you mean by "rewrite javascript in Nim"? We can compile Nim to Javascript target already |
01:36:22 | ldlework | maybe implement a javascript runtime with Nim |
01:36:43 | awsteele | i've been using duktape.org as a VM for executing JS scripts from nim |
01:37:00 | awsteele | much easier integration than google's V8 or other huge projects |
01:38:13 | lxdong | javascript itself has some issues, like performance ,doesn't it? |
01:38:45 | def- | lxdong: i think modern js engines are very performant and asm.js will help as well |
01:39:26 | def- | lxdong: and i guess that would be the way forward if you want to use Nim as a JS replacement, to get Nim to compile to asm.js directly |
01:39:56 | lxdong | you mean even it is possible ,it isn't necessary? |
01:40:58 | lxdong | you mean even it is possible ,it isn't necessary? |
01:41:20 | def- | the main problem with client-side languages for the web is that browsers only support JS, so no chance to get a new language into all browsers |
01:43:52 | lxdong | Mozilla claims they are developing next generation browser in Rust, it is a huge work, do you think it worth a try? |
01:44:32 | def- | lxdong: sure, it's an interesting experiment and rust is a great language for that: highest performance and memory safety in one |
01:45:58 | lxdong | I found Nim is greater and simpler |
01:48:31 | def- | but Nim uses garbage collection and you have the choice between "unsafe and fast" and "safe and slower" |
01:50:18 | def- | Don't get me wrong, I'm a huge Nim fan, but if you need safety, bare-metal performance and don't want a GC that could slow you down, I'd try Rust as well |
01:51:29 | ldlework | traitor |
01:51:39 | lxdong | :) |
01:51:51 | ldlework | hehe |
01:52:50 | def- | I'm just realistic, I think most programs don't have these requirements |
01:55:46 | lxdong | do you all go to bed late? |
01:57:24 | lxdong | it is time to go to sleep |
01:58:49 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
01:59:00 | * | Kingsquee joined #nim |
02:00:14 | lxdong | go to bed early and get up early keep you fit |
02:03:49 | lxdong | There is a proverb in China, That which is long divided must unify; that which is long unified must divide. I think the control of underlying hardware,system programming,web,app are going to unify,probably in Nim. |
02:09:59 | * | lokien_ quit (Quit: Connection closed for inactivity) |
02:11:16 | * | dorei quit () |
02:14:31 | lxdong | I created a topic #nim-in-China ,looking forward to making contributions to spread Nim nation wide with you. |
02:22:55 | lxdong | I lived in Xi'an City where Mark Elliot Zuckerberg made a visit to Terracotta Army last month. You are welcomed to join us. |
02:23:03 | * | BitPuffin quit (Ping timeout: 240 seconds) |
02:37:58 | * | pregressive joined #nim |
02:55:09 | * | PMunch quit (Quit: leaving) |
03:04:24 | * | darkf quit (Ping timeout: 250 seconds) |
03:05:00 | * | zepolen quit (Remote host closed the connection) |
03:05:45 | * | darkf joined #nim |
03:14:29 | * | darkf quit (Ping timeout: 240 seconds) |
03:15:25 | * | darkf joined #nim |
03:15:26 | * | lxdong quit (Quit: Page closed) |
03:18:42 | * | askatasuna quit (Ping timeout: 250 seconds) |
03:24:29 | * | darkf quit (Ping timeout: 240 seconds) |
03:25:49 | * | darkf joined #nim |
03:25:50 | * | darkf quit (Remote host closed the connection) |
03:26:59 | * | CcxCZ quit (Ping timeout: 240 seconds) |
03:29:58 | * | lompik quit (Ping timeout: 250 seconds) |
04:13:37 | * | BitPuffin|osx quit (Ping timeout: 255 seconds) |
04:15:21 | * | rektide quit (Remote host closed the connection) |
04:20:25 | * | pilne quit (Quit: Quitting!) |
04:40:27 | * | darkf joined #nim |
04:58:40 | * | awsteele quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
05:14:21 | * | pregressive quit (Remote host closed the connection) |
05:33:41 | * | nande quit (Read error: Connection reset by peer) |
05:54:30 | * | cyraxjoe quit (Remote host closed the connection) |
05:55:21 | * | pregressive joined #nim |
05:56:04 | * | cyraxjoe joined #nim |
05:56:43 | * | cyraxjoe quit (Remote host closed the connection) |
05:58:45 | * | cyraxjoe joined #nim |
05:59:09 | * | cyraxjoe quit (Remote host closed the connection) |
06:04:20 | * | lxdong joined #nim |
06:04:29 | lxdong | hello there |
06:04:51 | lxdong | in dream? |
06:05:45 | * | cyraxjoe joined #nim |
06:06:12 | lxdong | what is the time in your time zone? |
06:15:26 | * | gokr joined #nim |
06:34:37 | * | hcorion joined #nim |
06:39:15 | hcorion | Hi all, I'm having troubles with writing to a file in Nim 0.13.1. Currently I've declared a string 'var config: string = "blah blah blah"' and then I've got 'writeFile(variable & "config", string)' and when I run the executable (it compiles fine) I get SIGSEGV: Illegal storage access. (Attempt to read from nil?) And when I look that up on the 'net I get results about string initialization, is there a special way to initialize my string? |
06:43:33 | hcorion | I am using three quotation marks for my string, I dunno if that matters, ex. var config: string = """ blah """ & var1 & """ |
06:47:19 | * | gokr quit (Quit: Leaving.) |
06:52:20 | lxdong | I tried with success. |
06:53:38 | lxdong | writeFile("/tmp/hello",config) is ok |
06:55:01 | hcorion | Weird, my config variable is multi-line I wonder if that is the problem |
06:56:37 | lxdong | also ok,what exactly did you pass into writeFile() |
06:57:20 | lxdong | the first param |
06:58:15 | lxdong | try mine |
06:58:39 | hcorion | (I'm on windows) I got the working directory by doing var directory: string = getCurrentDir() and then I go writeFile(directory & "config.yml", config) |
07:02:17 | lxdong | Araq suggested me using add for string concatenation, and you better check the result directory & "config.yml" |
07:03:02 | lxdong | that is directory.add("config.yml") |
07:06:46 | * | hcorion quit (Remote host closed the connection) |
07:10:57 | * | awsteele joined #nim |
07:16:37 | * | awsteele quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
07:37:02 | lxdong | ZZZzzz… |
07:59:36 | * | pregressive quit (Remote host closed the connection) |
08:00:08 | * | pregressive joined #nim |
08:04:43 | * | pregressive quit (Ping timeout: 252 seconds) |
08:06:26 | * | gokr joined #nim |
08:07:07 | * | derka joined #nim |
08:07:08 | * | derka quit (Client Quit) |
08:37:29 | * | bamorim quit (Ping timeout: 240 seconds) |
08:42:50 | * | derka joined #nim |
08:44:50 | * | zepolen joined #nim |
08:45:20 | * | toaoMgeorge joined #nim |
08:51:41 | * | lokien_ joined #nim |
08:54:27 | * | Arrrr joined #nim |
08:57:46 | * | vendethiel- quit (Ping timeout: 244 seconds) |
08:57:55 | lxdong | morning |
09:00:21 | Araq | lxdong: hi |
09:02:06 | * | vendethiel joined #nim |
09:02:41 | * | lxdong_ joined #nim |
09:02:49 | lxdong_ | my lord... |
09:03:31 | lxdong_ | thanks for you suggestions |
09:03:41 | * | jaco60 joined #nim |
09:03:53 | * | awsteele joined #nim |
09:04:22 | * | lxdong quit (Ping timeout: 252 seconds) |
09:04:39 | lxdong_ | timeout... |
09:05:07 | * | awsteele quit (Client Quit) |
09:05:23 | lxdong_ | Do I have a chance to join GSoC? |
09:06:56 | * | gokr1 joined #nim |
09:09:36 | * | gokr quit (Ping timeout: 276 seconds) |
09:13:45 | * | coffeepot joined #nim |
09:15:30 | lxdong_ | Consider my capability,I want to apply for the Implement a Nim backend for the Ragel state machine compiler |
09:18:36 | Araq | lxdong_: sure but first we need to be accepted |
09:21:04 | lxdong_ | Shall I write a resume to the mentor? |
09:21:55 | * | dom96_ joined #nim |
09:23:34 | dom96_ | lxdong_: You need to wait until the 29th. If Nim is accepted as an organisation then you will be able to apply. See timeline here: https://developers.google.com/open-source/gsoc/timeline |
09:24:13 | lxdong_ | got |
09:24:20 | dom96_ | lxdong_: You can start writing your application now for the Nim org, but if we don't get accepted then you won't be able to submit it. |
09:25:12 | * | vendethiel quit (Ping timeout: 276 seconds) |
09:25:39 | lxdong_ | the features in the list are great, without GSoC, what about these features? |
09:26:13 | * | miko__ joined #nim |
09:29:39 | * | vendethiel joined #nim |
09:30:36 | Arrrr | Was the -o option modified recently? the output folder is not longer relative to the source |
09:32:29 | dom96_ | lxdong_: someone will hopefully implement them voluntarily :) |
09:34:02 | dom96_ | Arrrr: yeah, it was. See https://github.com/nim-lang/Nim/issues/3871 |
09:34:26 | * | lxdong_ quit (Ping timeout: 252 seconds) |
09:34:46 | Arrrr | Ah, ok ... |
09:36:10 | Arrrr | long time no nim |
09:41:59 | * | lxdong joined #nim |
09:42:16 | Arrrr | I'm not sure is a good change however. Doesn't it make more sense to be relative to the project? |
09:42:50 | lxdong | @dom96_ how is Nim in Action going on? |
09:45:35 | lxdong | I'm interested in translating it into Chinese |
09:49:55 | dom96_ | lxdong: it's going well. Would be really awesome if you could do that! |
09:51:16 | lxdong | I am a recommended translator in Turing Publication in China |
09:52:03 | * | Kingsquee quit (Ping timeout: 248 seconds) |
09:52:10 | dom96_ | lxdong: You should get in touch with my publisher (Manning) if you really want to do that. |
09:52:15 | dom96_ | It's up to them in the end |
09:53:00 | * | Kingsquee joined #nim |
09:53:07 | * | vendethiel quit (Ping timeout: 248 seconds) |
09:53:45 | lxdong | I've checked the procedure of importing a foreign work, know a little bit |
09:56:57 | * | dom96_ quit (Quit: Page closed) |
09:57:08 | * | vendethiel joined #nim |
09:59:18 | lxdong | Will you offer me a convenience to get in touch with them? |
10:05:28 | lxdong | Will their email, facebook, twitter work? |
10:05:36 | * | vegai left #nim (#nim) |
10:12:45 | r-ku | is there a way to have macro or something that i could use like u"some string".doSomething() where u converts string to other type? basically i want to avoid () in (u"some string").doSomething() |
10:15:45 | * | yglukhov joined #nim |
10:18:56 | * | aziz joined #nim |
10:23:39 | * | gokr1 quit (Quit: Leaving.) |
10:28:37 | * | lxdong quit (Quit: Page closed) |
10:29:10 | * | gokr joined #nim |
10:40:36 | * | vendethiel quit (Ping timeout: 276 seconds) |
10:41:55 | * | vendethiel joined #nim |
11:10:28 | * | [CBR]Unspoken joined #nim |
11:19:59 | * | lokien_ quit (Quit: Connection closed for inactivity) |
11:21:59 | * | matkuki joined #nim |
11:38:11 | * | [1]jsudlow joined #nim |
11:39:13 | * | NhanH quit (Ping timeout: 240 seconds) |
11:40:02 | * | mnemonikk quit (Ping timeout: 240 seconds) |
11:40:25 | * | CARAM__ quit (Ping timeout: 240 seconds) |
11:40:25 | * | someplace quit (Ping timeout: 240 seconds) |
11:40:25 | * | jsudlow quit (Ping timeout: 240 seconds) |
11:40:26 | * | [1]jsudlow is now known as jsudlow |
11:40:50 | * | EastByte_ quit (Ping timeout: 240 seconds) |
11:40:50 | * | Xe quit (Ping timeout: 240 seconds) |
11:40:50 | * | flyx quit (Ping timeout: 240 seconds) |
11:40:50 | * | Learath2 quit (Ping timeout: 240 seconds) |
11:41:13 | * | Guest43109 quit (Ping timeout: 240 seconds) |
11:42:24 | * | Heartmender joined #nim |
11:42:45 | * | Heartmender is now known as Guest79881 |
11:43:18 | * | CARAM__ joined #nim |
11:43:37 | * | NhanH joined #nim |
11:45:58 | * | Learath2 joined #nim |
11:45:59 | * | someplace joined #nim |
11:46:01 | * | flyx joined #nim |
11:46:07 | * | darkf quit (Quit: Leaving) |
11:46:48 | * | Xe joined #nim |
11:47:26 | * | PMunch joined #nim |
11:48:49 | * | arnetheduck joined #nim |
11:49:13 | * | mnemonikk joined #nim |
11:49:13 | * | mnemonikk quit (Changing host) |
11:49:13 | * | mnemonikk joined #nim |
11:53:28 | * | lxdong joined #nim |
11:53:58 | * | EastByte_ joined #nim |
11:55:31 | lxdong | Today is the Lantern Festival in China, Happy Lantern Festival! |
12:00:51 | Arrrr | What do people do in the lantern festival ? |
12:01:07 | * | aziz quit (Remote host closed the connection) |
12:07:55 | lxdong | eat rice dumpling or so-called Tang-yuan,set off fireworks and crackers, and people in the festival must guess the answer from a word , a poem or a phrase, guessing the lantern riddles are as hard as fighting with a tiger, so that lantern riddles have another name - 'lantern tigers'. |
12:08:21 | Arrrr | Do lanterns have any sexual connotation? |
12:08:24 | coffeepot | that sounds fun :) |
12:09:07 | * | vendethiel quit (Ping timeout: 248 seconds) |
12:09:30 | lxdong | it is a traditional chinese festival |
12:09:55 | * | vendethiel joined #nim |
12:12:05 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
12:14:33 | * | derka quit (Ping timeout: 240 seconds) |
12:17:59 | * | jaco60 quit (Ping timeout: 240 seconds) |
12:19:10 | * | derka joined #nim |
12:22:00 | * | BitPuffin joined #nim |
12:22:33 | lxdong | Everything about sex was oppressed in the two thousand year long feudal society until the western culture impacts in modern times |
12:28:15 | lxdong | fireworks and crackers make toxic haze |
12:29:21 | federico3 | lxdong: #nim-offtopic :) |
12:30:11 | lxdong | thanks for reminding |
12:30:57 | federico3 | oh you are not in that channel - happy Lantern Festival anyways |
12:31:29 | * | vendethiel quit (Ping timeout: 240 seconds) |
12:31:39 | * | vendethiel joined #nim |
12:32:45 | gokr | lxdong: Cool, my daughters are both from Guangdong, will ... check this out :) |
12:36:36 | lxdong | welcome to #nim-in-China |
12:37:10 | * | lxdong_ joined #nim |
12:37:14 | lxdong_ | join #nim-in-China |
12:39:14 | federico3 | lxdong_: is Nim that popular in China? |
12:39:56 | Arrrr | let's see |
12:40:13 | lxdong | not now |
12:40:21 | lxdong | I think it will |
12:52:37 | * | lompik joined #nim |
12:53:29 | * | vendethiel quit (Ping timeout: 240 seconds) |
12:59:28 | * | vendethiel joined #nim |
13:23:20 | Varriount | dom96: There's some spam on the forum at http://forum.nim-lang.org/t/2059 |
13:25:47 | Arrrr | How do i represent infinite in nim? |
13:26:12 | * | derka quit (Quit: derka) |
13:27:43 | Araq | system.Inf |
13:27:56 | Arrrr | Good grief! thanks |
13:28:39 | r-ku | is it possible to provide custom high() for my own type? defining one seems to break lots of stuff |
13:28:54 | Araq | no, high is not overloadable |
13:29:07 | Araq | the spec says that. we could support it though. |
13:29:29 | r-ku | alright, just wanted to make sure if dirty workaround is worthy it's life. thanks |
13:34:15 | Varriount | Araq: What do you do if you wan to define your own sequence type? |
13:34:33 | Varriount | I mean, in the context of writing a high() proc |
13:35:11 | Araq | well a "sequence like" type is something with 'len' |
13:35:17 | Araq | not with 'high' |
13:35:25 | Araq | generic algorithms should use 'len', not 'high' |
13:35:47 | Araq | high should only exist for enums I guess. |
13:36:09 | r-ku | how about containers that arent indexed from 0? |
13:36:35 | Araq | or we keep 'high' a builtin that rewrites to 'len-1' but is not overloadable |
13:37:43 | r-ku | still would break for anything indexed from 1 onwards. shouldnt it be low + len - 1? |
13:38:25 | Araq | indexing from 1 is simply not popular enough to even think about it, IMO. |
13:39:24 | r-ku | true, but would you really be willing to have indexing from 1 and high() that breaks with such indexing? |
13:40:27 | Araq | well high continues to work as it is, but would be expanded in one way or the other. I don't see any problems. |
13:41:24 | Varriount | Araq: r-ku is talking about how having `high` proc that defaults to len()-1 would break containers based on indexing from 1 |
13:43:46 | * | lxdong_ quit (Ping timeout: 252 seconds) |
13:44:06 | Araq | in other places (like for ^) we already give a static error when low(x) is not 0. |
13:44:28 | r-ku | btw Araq will we ever be able to make slices with negative indexes? i understand they cant be used with stuff in stdlib and ^ should be used but other code would benefit from it. now people like me are forced to make new slice operator just so i can have slices i want in my own code. i would rather just use default slice operator and write code to handle that as i want to. |
13:44:29 | lxdong | error? |
13:47:05 | Araq | r-ku: not sure what you mean. nor why -1 is so much more preferable than ^1. I like ^1 better. let i = stdin.readLine.parseInt; x[i] # does -1 really mean last element here? |
13:48:23 | r-ku | lets pretend i want to make a function that iterates on any range, backwards or forwards, be nice if i could do -1..10 or 10..-1 and such. negative indexes are not limited to slicing stuff |
13:48:40 | * | lxdong_ joined #nim |
13:49:22 | r-ku | i understand rationale behind ^ operator, but compiler error on 10..-1 telling to use ^ is just limiting |
13:49:39 | Araq | ah! |
13:49:56 | Araq | now I understand. there is some legacy error message left in the compiler |
13:50:08 | Araq | create a PR to remove it. |
13:50:59 | * | gokr quit (Quit: Leaving.) |
13:50:59 | * | toaoMgeorge quit (Ping timeout: 240 seconds) |
13:51:47 | r-ku | Araq great. just to make sure its error "use '^' instead of '-'; negative indexing is obsolete". You added it for forcing old code to migrate. Sure its ok to remove it? Just double-checking if we are talking about same thing heh |
13:51:49 | * | toaoMgeorge joined #nim |
13:52:04 | Araq | yup, go ahead. |
13:52:29 | * | r-ku hears crows around the world joyfully cheering |
13:52:35 | r-ku | crowds* omg.. |
13:53:16 | r-ku | Araq may i also slip in ..- operator in same PR so we can write 1..-1 instead of 1.. -1? |
13:53:47 | Araq | ok |
13:54:44 | coffeepot | I take it `..` doesn't work with counting down? We need to use countdown, right? |
13:55:19 | reactormonk | coffeepot, you could try overloading on static. But don't expect it to. |
13:55:41 | coffeepot | I don't mind using countdown, just curious :) |
13:56:27 | Araq | coffeepot: yeah use countdown |
13:56:58 | coffeepot | cool |
13:57:00 | * | lokien quit (Ping timeout: 250 seconds) |
14:00:23 | * | CcxCZ joined #nim |
14:02:59 | * | yglukhov quit (Ping timeout: 240 seconds) |
14:07:03 | r-ku | PR created https://github.com/nim-lang/Nim/pull/3892 |
14:08:53 | r-ku | coffeepot though with negative slices we can make something that works like enumerate(1..10) or enumerate(10..-10) or even enumerate(-20..-10) |
14:10:03 | coffeepot | r-ku: given a list of 0..10, what would enumerate (0..-10) give then? Would this reverse the list or count up from -10 to 0? |
14:12:15 | r-ku | obvious thing is that it works like start..end so i would expect it to go from 0 to -10 with step 1 if no step specified, sure we could add param for step too |
14:15:06 | coffeepot | cool, well it'd be nice if `..` could handle counting down but I guess it could get confusing if the slice syntax is allowing -X to refer to high-X |
14:16:04 | Araq | I would use ./ for up and .\ for down |
14:16:46 | Araq | or perhaps nice unicode operators ... |
14:17:11 | r-ku | he cant be serious ;) |
14:17:59 | Araq | for x in 1 ./ 10 for x in -1 .\ -10 |
14:18:12 | Araq | not too bad IMHO. |
14:19:05 | r-ku | i have suggestion for unicode operators: for up and for down ;) |
14:19:15 | coffeepot | lmao |
14:19:39 | coffeepot | the code would look amazing then, r-ku |
14:19:59 | r-ku | we should not stop here though ;)) |
14:20:22 | Araq | er ... since negative indexing still is not the default |
14:20:31 | Araq | why does system.nim need ..- ? |
14:20:51 | r-ku | so someone can write 1..-1 instead of 1.. -1 |
14:21:02 | r-ku | same reason ..^ template exists |
14:21:07 | coffeepot | what's the error reported if you write 1..-1? |
14:21:22 | coffeepot | is it obvious you just need to add a space? |
14:21:30 | coffeepot | from the error |
14:21:37 | r-ku | undeclared identifier: '..-' |
14:21:56 | coffeepot | ah |
14:22:04 | coffeepot | that's not tooo bad is it? |
14:22:13 | r-ku | but you know.. can write 1..2, 1..^2, but not 1..-2. discrimination |
14:22:48 | coffeepot | wait what does 1..^2 do? |
14:23:23 | coffeepot | from 1..-1? |
14:23:23 | r-ku | "abc"[1..^2] == "b" |
14:23:51 | coffeepot | ah sorry i thought we were still on for loops :) |
14:24:13 | Araq | r-ku: positive discrimination. 1..-2 doesn't do what you want. |
14:24:51 | r-ku | Araq what argument you can possibly give to me that would prove "1.. -2" is more correct than "1..-2"? |
14:25:16 | r-ku | i would swing it around and tell you that same applies to "1..^2" vs "1.. ^2" |
14:25:21 | * | Varriount quit (Disconnected by services) |
14:25:21 | * | Varriount_ joined #nim |
14:27:20 | Araq | The argument is "why special syntactic support for something that has semantic issues to begin with" |
14:27:35 | * | Varriount joined #nim |
14:27:36 | Araq | good luck with applying that argument to ..^ |
14:28:30 | r-ku | im confused |
14:28:43 | r-ku | about 30 mins ago i asked if this is ok and you agreed |
14:28:44 | r-ku | [15:53:16] <r-ku> Araq may i also slip in ..- operator in same PR so we can write 1..-1 instead of 1.. -1? |
14:28:44 | r-ku | [15:53:47] <Araq> ok |
14:28:52 | r-ku | now we are debating this |
14:29:13 | * | vendethiel quit (Ping timeout: 255 seconds) |
14:29:17 | Araq | yes. I changed my mind. |
14:29:35 | Araq | and explained my reasons. |
14:30:22 | r-ku | then maybe you could explain what "semantic issues" ..- has and ..^ doesnt? because if i remove ..^ template it chokes on very same error so as far as i can see they both are recognized by compiler exactly same way |
14:31:09 | Araq | the difference is that **system.nim** supports s[1 .. ^2] but not s[1 .. -2] |
14:31:28 | * | Varriount_ quit (Ping timeout: 255 seconds) |
14:31:39 | Araq | so we have ..^ as a convenient shortcut |
14:31:47 | r-ku | 1 .. -2 is for people to use, not for stdlib though |
14:31:48 | Araq | and no need to do the same for ..- |
14:32:04 | Araq | if your new ranges support negative indexing |
14:32:13 | Araq | then add the ..- template to your code, not to system.nim |
14:32:47 | Araq | does that make sense to you? ;-) |
14:33:21 | r-ku | not really, because it does not hurt and there will be questions on forum why exactly it doesnt work this way, but ok |
14:34:42 | * | miko__ quit (Ping timeout: 250 seconds) |
14:38:36 | * | gokr joined #nim |
14:38:38 | * | vendethiel joined #nim |
14:40:12 | r-ku | updated PR, removed that template |
14:42:59 | lxdong | it's fun to see your conversation, good night. |
14:44:41 | * | derka joined #nim |
14:45:17 | lxdong | again , if you are not only interested in Nim but also the chinese culture and food, welcome to #nim-in-China |
14:45:41 | * | saml joined #nim |
14:46:34 | coffeepot | cool, see you soon Ixdong! |
14:46:38 | * | lxdong_ quit (Quit: Page closed) |
14:46:38 | * | lxdong quit (Quit: Page closed) |
14:54:10 | Araq | Varriount: https://github.com/nim-lang/Nim/pull/3880 |
15:02:22 | * | yglukhov joined #nim |
15:24:06 | * | vendethiel quit (Ping timeout: 250 seconds) |
15:34:52 | * | derka quit (Quit: derka) |
15:35:50 | * | askatasuna joined #nim |
15:37:41 | * | vendethiel joined #nim |
15:50:15 | * | pregressive joined #nim |
15:52:19 | * | miko__ joined #nim |
15:59:29 | * | vendethiel quit (Ping timeout: 240 seconds) |
16:06:08 | * | vendethiel joined #nim |
16:22:24 | * | exebook joined #nim |
16:27:47 | * | vendethiel quit (Ping timeout: 248 seconds) |
16:30:35 | * | vendethiel joined #nim |
16:32:42 | * | brson joined #nim |
16:53:42 | * | vendethiel quit (Ping timeout: 276 seconds) |
16:56:03 | * | vendethiel joined #nim |
17:02:37 | * | brson quit (Ping timeout: 252 seconds) |
17:03:54 | * | brson joined #nim |
17:16:59 | * | vendethiel quit (Ping timeout: 240 seconds) |
17:19:02 | * | Trustable joined #nim |
17:21:05 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
17:26:22 | * | vendethiel joined #nim |
17:30:16 | * | Trustable quit (Remote host closed the connection) |
17:31:05 | * | Trustable joined #nim |
17:31:09 | * | Trustable quit (Remote host closed the connection) |
17:33:40 | * | Trustable joined #nim |
17:36:21 | * | jaco60 joined #nim |
17:38:43 | * | yglukhov quit (Ping timeout: 248 seconds) |
17:47:00 | * | vendethiel quit (Ping timeout: 276 seconds) |
17:53:22 | * | vendethiel joined #nim |
17:55:17 | Varriount | Araq: Replied |
17:57:00 | * | pilne joined #nim |
18:16:15 | * | vendethiel quit (Ping timeout: 276 seconds) |
18:20:01 | * | yglukhov joined #nim |
18:24:07 | * | vendethiel joined #nim |
18:24:35 | * | yglukhov quit (Ping timeout: 248 seconds) |
18:33:55 | * | toaoMgeorge quit (Ping timeout: 252 seconds) |
18:36:30 | * | rektide joined #nim |
18:39:58 | * | Jesin quit (Quit: Leaving) |
18:42:40 | * | zepolen quit (Remote host closed the connection) |
18:42:47 | * | Jesin joined #nim |
18:43:26 | * | zepolen joined #nim |
18:48:43 | * | zepolen quit (Remote host closed the connection) |
18:57:19 | * | yglukhov joined #nim |
18:57:29 | * | jaco60 quit (Ping timeout: 240 seconds) |
19:08:02 | * | Arrrr quit (Quit: WeeChat 1.2) |
19:08:22 | * | euantor joined #nim |
19:10:58 | * | jaco60 joined #nim |
19:14:52 | * | jaco60 quit (Client Quit) |
19:15:30 | * | jaco60 joined #nim |
19:23:15 | * | yglukhov quit (Remote host closed the connection) |
19:23:39 | * | Matthias247 joined #nim |
19:26:43 | * | brson quit (Ping timeout: 252 seconds) |
19:28:01 | * | lokien_ joined #nim |
19:31:58 | * | yglukhov joined #nim |
19:36:05 | * | euantor quit (Remote host closed the connection) |
19:38:04 | * | euantor joined #nim |
19:41:28 | * | filwit joined #nim |
19:54:37 | * | GangstaCat joined #nim |
20:07:29 | * | Varriount_ joined #nim |
20:07:29 | * | Varriount quit (Disconnected by services) |
20:12:54 | * | boopsiesisaway is now known as boopsies |
20:14:36 | Varriount_ | onionhammer: I don't suppose you could investigate why the syntax file in NimLime is throwing errors in the debug console? |
20:20:30 | * | beatmox quit (*.net *.split) |
20:20:30 | * | DecoPerson quit (*.net *.split) |
20:20:30 | * | vqrs quit (*.net *.split) |
20:20:31 | * | lenstr quit (*.net *.split) |
20:20:31 | * | low-profile quit (*.net *.split) |
20:20:31 | * | GaveUp quit (*.net *.split) |
20:20:31 | * | onionhammer quit (*.net *.split) |
20:20:31 | * | ekarlso quit (*.net *.split) |
20:20:31 | * | mal`` quit (*.net *.split) |
20:20:31 | * | jackv quit (*.net *.split) |
20:20:31 | * | Wildefyr quit (*.net *.split) |
20:20:31 | * | Sornaensis quit (*.net *.split) |
20:20:31 | * | devn_ quit (*.net *.split) |
20:20:32 | * | niv quit (*.net *.split) |
20:20:32 | * | mlitwiniuk quit (*.net *.split) |
20:20:32 | * | Araq quit (*.net *.split) |
20:20:48 | * | devn joined #nim |
20:21:00 | * | onionhammer joined #nim |
20:21:01 | * | niv joined #nim |
20:21:15 | * | Sornaensis joined #nim |
20:21:19 | * | Wildefyr joined #nim |
20:21:22 | * | mlitwiniuk joined #nim |
20:21:22 | * | beatmox joined #nim |
20:21:35 | * | LeNsTR joined #nim |
20:21:42 | * | mal`` joined #nim |
20:21:51 | * | low-profile joined #nim |
20:22:01 | * | Araq joined #nim |
20:22:06 | * | zepolen joined #nim |
20:22:21 | * | jackv joined #nim |
20:22:41 | * | ekarlso joined #nim |
20:23:12 | * | zepolen quit (Remote host closed the connection) |
20:23:13 | * | vqrs joined #nim |
20:23:25 | * | jaco60 quit (Remote host closed the connection) |
20:23:41 | * | GaveUp joined #nim |
20:23:43 | * | vqrs quit (Max SendQ exceeded) |
20:23:54 | * | vqrs joined #nim |
20:25:38 | * | DecoPerson joined #nim |
20:26:24 | * | zepolen joined #nim |
20:27:29 | * | jaco60 joined #nim |
20:30:59 | * | zepolen quit (Ping timeout: 240 seconds) |
20:31:38 | * | yglukhov quit (Read error: Connection reset by peer) |
20:33:01 | * | jaco60 quit (Remote host closed the connection) |
20:35:49 | * | zepolen joined #nim |
20:36:14 | * | jaco60 joined #nim |
20:37:29 | * | yglukhov joined #nim |
20:39:20 | federico3 | dom96: are you looking for reviewers through Manning Manuscript? |
20:40:44 | * | brson joined #nim |
20:52:11 | * | euantor quit () |
20:54:23 | * | BitPuffin quit (Ping timeout: 244 seconds) |
20:55:59 | * | jaco60 quit (Quit: Leaving) |
20:58:37 | dom96 | federico3: Not really sure what that is? |
20:59:36 | federico3 | dom96: this https://www.manning.com/manuscript-reviews |
21:02:20 | * | yglukhov_ joined #nim |
21:02:20 | * | yglukhov quit (Read error: Connection reset by peer) |
21:04:35 | * | yglukhov_ quit (Read error: Connection reset by peer) |
21:07:34 | * | yglukhov joined #nim |
21:09:23 | dom96 | federico3: I'm not actively looking for any, no. |
21:09:44 | dom96 | If you buy Nim in Action then I really want your feedback though :) |
21:12:47 | * | yglukhov_ joined #nim |
21:12:47 | * | yglukhov quit (Read error: Connection reset by peer) |
21:15:03 | * | yglukhov_ quit (Read error: Connection reset by peer) |
21:15:34 | * | yglukhov joined #nim |
21:15:44 | * | Ven joined #nim |
21:17:48 | * | huonw quit (Ping timeout: 268 seconds) |
21:19:17 | * | huonw joined #nim |
21:19:52 | * | Ven quit (Ping timeout: 250 seconds) |
21:22:29 | * | matkuki quit (Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160210153822]) |
21:26:37 | * | [CBR]Unspoken quit (Ping timeout: 252 seconds) |
21:27:39 | * | jaco60 joined #nim |
21:33:40 | * | mat4 joined #nim |
21:34:42 | * | mat4 quit (Client Quit) |
21:35:03 | * | mat4 joined #nim |
21:42:03 | * | askatasuna quit (Ping timeout: 240 seconds) |
21:43:51 | * | [CBR]Unspoken joined #nim |
21:49:59 | * | lokien_ quit (Quit: Connection closed for inactivity) |
21:50:48 | * | toaoMgeorge joined #nim |
22:01:22 | * | yglukhov_ joined #nim |
22:01:22 | * | yglukhov quit (Read error: Connection reset by peer) |
22:01:25 | * | Ven joined #nim |
22:03:56 | * | yglukhov_ quit (Read error: Connection reset by peer) |
22:04:12 | * | Ven quit (Client Quit) |
22:04:24 | * | yglukhov joined #nim |
22:04:55 | * | darkf joined #nim |
22:07:31 | * | yglukhov quit (Read error: Connection reset by peer) |
22:14:28 | * | yglukhov joined #nim |
22:16:35 | * | yglukhov quit (Read error: Connection reset by peer) |
22:20:39 | * | brson quit (Ping timeout: 276 seconds) |
22:24:30 | * | yglukhov joined #nim |
22:27:36 | * | zepolen quit (Remote host closed the connection) |
22:33:14 | * | derka joined #nim |
22:36:40 | onionhammer | Varriount_: which errors? |
22:36:51 | Varriount_ | onionhammer: The scope ones |
22:37:00 | * | brson joined #nim |
22:37:05 | Varriount_ | onionhammer: I think it has to do with the recent update. |
22:37:07 | * | Trustable quit (Remote host closed the connection) |
22:37:08 | * | Varriount_ is now known as Varriount |
22:37:44 | dyce_ | yay nim uses less ram than go for a hello word http server |
22:38:38 | * | yglukhov quit (Remote host closed the connection) |
22:39:24 | onionhammer | Varriount: i dont see anything in the log.. |
22:39:45 | Varriount | onionhammer: You mean, the Sublime Text changelog? |
22:40:08 | onionhammer | in the log, Ctrl+` |
22:40:27 | Varriount | onionhammer: |
22:40:29 | Varriount | Error loading scope:source.glsl: Unable to find syntax file for scope source.glsl in Packages/NimLime/Syntaxes/Nim.tmLanguage |
22:40:29 | Varriount | Error loading scope:source.asm: Unable to find syntax file for scope source.asm in Packages/NimLime/Syntaxes/Nim.tmLanguage |
22:40:33 | onionhammer | oooh |
22:40:42 | onionhammer | im not seeing them now |
22:43:09 | onionhammer | Varriount: uninstalled from repo & installed by cloning directly into the packages folder and i see the errors |
22:45:23 | onionhammer | hmm.. aaapackagedev no worky on ST3? |
22:46:06 | onionhammer | oh its just packagedev |
22:48:06 | onionhammer | Varriount: what if you install something that handles those languages? |
22:48:17 | onionhammer | no.. css should work |
22:49:46 | * | yglukhov joined #nim |
22:49:46 | * | yglukhov quit (Remote host closed the connection) |
22:53:59 | * | vendethiel quit (Ping timeout: 240 seconds) |
22:55:34 | ldlework | Is there a way to customize the CSS of the document generator? |
22:58:13 | ldlework | "The output for HTML and LaTeX comes from the config/nimdoc.cfg and config/nimdoc.tex.cfg configuration files. You can add and modify these files to your project to change the look of docgen output." |
22:58:31 | ldlework | how do I add these files to my project? |
22:58:38 | ldlework | just put them in a config folder? |
22:58:58 | * | vendethiel joined #nim |
23:01:29 | * | derka quit (Ping timeout: 240 seconds) |
23:10:38 | * | boopsies is now known as boopsiesisaway |
23:12:24 | * | mat4 quit (Quit: Leaving) |
23:17:56 | * | awsteele joined #nim |
23:18:40 | awsteele | has anyone implemented a kqueue backend for the asyncdispatch module on BSDs? if not, i'd like to try my hand at it |
23:19:48 | * | vendethiel quit (Ping timeout: 276 seconds) |
23:24:12 | * | Jesin quit (Quit: Leaving) |
23:28:16 | * | zepolen joined #nim |
23:29:42 | * | awsteele quit (Quit: Page closed) |
23:33:07 | * | zepolen quit (Ping timeout: 252 seconds) |
23:39:08 | def- | for the record: kqueue backend for asyncdispatch is missing, so I'd guess no one has made one |
23:39:13 | * | vendethiel joined #nim |