00:23:14 | * | jaco60 quit (Ping timeout: 246 seconds) |
00:30:15 | * | dashed joined #nim |
00:31:10 | * | Matthias247 quit (Read error: Connection reset by peer) |
01:36:58 | desophos | how do i create runnable binaries (including dependencies) from my Nim code? |
01:37:12 | desophos | like the compiler will produce the binaries but i need to include the deps |
01:47:35 | * | pairayd joined #nim |
01:53:36 | desophos | i know nothing about distribution :p i guess i have to include the dlls |
01:55:23 | pairayd | How would I get the nth element in a Slice? For example, getting the 5th letter via `'a'..'z'. Using [] gives me a type mismatch error. |
01:56:46 | * | Varriount joined #nim |
01:57:31 | * | brson quit (Quit: leaving) |
02:05:36 | desophos | how can i programmatically get the location of my running executable? |
02:07:52 | desophos | never mind, os.getAppDir looks like the right thing |
02:08:16 | * | Varriount quit (Ping timeout: 265 seconds) |
02:23:00 | * | lazypenguin joined #nim |
02:26:13 | * | Mudak quit (Quit: bbs) |
02:26:25 | * | strcmp1 joined #nim |
02:28:40 | * | toad joined #nim |
02:29:27 | * | Varriount joined #nim |
02:29:44 | Varriount | Ugh. I feel dirty. |
02:29:55 | toad | Varriount: :O |
02:30:00 | toad | Hello, why is that? |
02:30:20 | Varriount | I used a very dirty hack to continue cross-version support for Nim's sublime text plugin |
02:30:30 | toad | dom96 Love your kernel ;) |
02:30:42 | toad | 0_o how dirty? |
02:31:20 | Varriount | toad: Ok, so some of the new code uses 'exec' because of syntax changes between Python versions |
02:32:19 | toad | Python is always dirty IMO :P |
02:32:32 | Varriount | The problem is that 'exec' was a statement in python 2.6 (which Sublime Text 2 uses) and is a function in Python 3.0+ (which is what Sublime Text 3 uses) |
02:32:45 | cazov | ugh |
02:33:01 | cazov | from __future__ import wait not python 2.6 |
02:33:13 | Varriount | cazov: Can't, unfortunately. |
02:33:17 | toad | I get ya |
02:33:19 | cazov | hence |
02:34:41 | Varriount | cazov, toad: https://gist.github.com/Varriount/5c70ccf26bba78eb4d1b |
02:34:57 | cazov | nice |
02:35:01 | toad | LOL |
02:35:04 | toad | That is easy |
02:35:14 | Varriount | toad: Doesn't make it any less horrid. |
02:35:29 | cazov | it's hidden in once place |
02:35:39 | toad | Varriount: starred :p I actually like it |
02:35:48 | toad | Dirty or not, it works and is efficient |
02:36:06 | Varriount | cazov: What's ironic is that the problem it solves is the one I had to overcome. |
02:36:07 | cazov | for what it's worth that's how i'd solve the problem, too |
02:36:54 | Varriount | cazov: I'm in a situation where I need to use the new 'yield from X' syntax in Python 3.3, however that causes a syntax error in previous versions. |
02:37:09 | cazov | ouch |
02:37:59 | Varriount | cazov: At least the plugin now has an uncaught error notification system, which should make bug reporting easier. |
02:38:09 | Varriount | (That's the purpose of all this code) |
02:38:25 | cazov | ahh, gotcha |
02:38:44 | cazov | is sublime text all it's cracked up to be? |
02:39:03 | Varriount | cazov: The plugin system is nice, if a tad limited in some respects. |
02:39:13 | Varriount | Although, I understand that's changing in ST3 |
02:39:37 | Varriount | The major pain comes from me trying to support both versions at once. |
02:40:01 | cazov | the only reason i still use vim is because of vertical selection and `that's what i bothered to learn in school` but it's honestly not something that's friendly to my excessive fatfingering or tool laziness |
02:40:07 | cazov | yeah |
02:40:21 | Varriount | cazov: I believe both versions of Sublime Text have a vim mode. |
02:41:06 | cazov | eh, the keystroke stuff is w/e. it's mostly the c/<shift>+i on vertical selection stuff |
02:41:30 | cazov | and the occasional macro that i use vim for |
02:41:48 | toad | Im trying to get a nim os up with a terminal |
02:41:57 | Varriount | cazov: Could you explain the vertical selection? |
02:42:19 | toad | Who needs GUIs :P ? |
02:42:23 | Varriount | toad: You actually got the Nim kernel to compile? I can't remember when that code was last touched. |
02:42:40 | toad | Varriount: It compiles fine |
02:42:47 | toad | But I wrote new code |
02:42:47 | pairayd | cazov, Sublime has vertical selection. |
02:42:53 | toad | That was reference, not a base |
02:43:37 | toad | Im hooking up the keyboard now (to the software) |
02:43:59 | cazov | Varriount, so like say your text is an x,y cell grid, vim can select a subset of that in both dimensions |
02:46:00 | pairayd | cazov, Sublime has multiple cursors, so you can extend the cursors across multiple lines and either type or select. Like, if you wanted to delete '#' from 5 lines, in Vim, you could CTRL+V, 4j, I, DEL. Sublime you can CTRL+ALT+Down * 4, HOME, DEL. |
02:46:27 | * | Kingsquee joined #nim |
02:46:33 | cazov | alright, sounds pretty much more or less the same thing |
02:46:41 | pairayd | Yep. |
02:47:54 | cazov | thanks, i'll check it out soon, after i finish my battle with msp430-gcc |
02:48:48 | * | Varriount_ joined #nim |
02:49:18 | * | Varriount quit (Ping timeout: 255 seconds) |
02:50:12 | desophos | CTRL+d also selects next |
02:50:33 | desophos | i didn't know about CTRL+ALT+Down, but then again i know very few of Sublime's commands :p |
02:51:00 | desophos | oh nvm CTRL+ALT+Down just does vertical selection :p |
02:54:47 | * | bjz joined #nim |
03:05:49 | * | shodan45 joined #nim |
03:18:50 | * | Demon_Fox joined #nim |
03:25:36 | * | desophos quit (Ping timeout: 265 seconds) |
03:35:24 | * | desophos joined #nim |
03:37:50 | * | jakesyl quit (Ping timeout: 246 seconds) |
03:40:17 | * | toad quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
03:51:11 | * | jakesyl joined #nim |
03:54:16 | * | darkf joined #nim |
04:09:10 | * | Varriount joined #nim |
04:09:19 | * | Varriount_ quit (Ping timeout: 246 seconds) |
04:20:24 | lazypenguin | I think I just fell in love with this language |
04:25:22 | desophos | it's pretty great isn't it lazypenguin |
04:53:37 | * | darkf_ joined #nim |
04:54:57 | * | pairayd quit (Ping timeout: 244 seconds) |
04:56:14 | * | darkf quit (Ping timeout: 246 seconds) |
04:57:35 | * | darkf_ is now known as darkf |
04:59:40 | * | desophos quit (Read error: Connection reset by peer) |
05:00:53 | * | Demon_Fox quit (Quit: Leaving) |
05:26:05 | * | linkedinyou quit (Ping timeout: 240 seconds) |
05:43:38 | * | vendethiel joined #nim |
05:46:47 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
05:51:02 | * | bjz joined #nim |
05:53:00 | * | bjz_ joined #nim |
05:55:55 | * | bjz quit (Ping timeout: 265 seconds) |
06:02:21 | * | dashed quit (Quit: Connection closed for inactivity) |
06:07:38 | * | vendethiel quit (Ping timeout: 250 seconds) |
06:11:40 | * | askatasu1 joined #nim |
06:24:53 | * | askatasu1 quit (Ping timeout: 252 seconds) |
06:43:51 | * | Ven joined #nim |
06:56:25 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
07:13:22 | * | ephja quit (Ping timeout: 260 seconds) |
07:16:20 | * | bjz joined #nim |
07:17:22 | * | bjz_ quit (Ping timeout: 268 seconds) |
07:21:03 | * | pairayd joined #nim |
07:28:22 | * | yglukhov joined #nim |
07:28:32 | * | Ven joined #nim |
07:44:25 | * | pairayd quit (Remote host closed the connection) |
08:33:05 | * | gokr joined #nim |
08:47:07 | * | Ven quit (Read error: Connection reset by peer) |
08:47:30 | * | Ven joined #nim |
08:49:00 | * | Ven quit (Read error: Connection reset by peer) |
08:49:23 | * | Ven joined #nim |
08:50:57 | * | Ven quit (Read error: Connection reset by peer) |
08:51:16 | * | Ven joined #nim |
08:53:02 | * | Ven quit (Read error: Connection reset by peer) |
08:53:16 | * | Ven joined #nim |
08:54:43 | * | Ven quit (Read error: Connection reset by peer) |
08:55:14 | * | Ven joined #nim |
09:04:38 | * | ayia joined #nim |
09:05:19 | * | Matthias247 joined #nim |
09:14:26 | * | gokr quit (Quit: Leaving.) |
09:19:52 | * | joelmo joined #nim |
09:22:07 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:25:22 | * | yglukhov quit (Remote host closed the connection) |
09:39:27 | * | Ven joined #nim |
09:46:59 | * | gokr joined #nim |
10:06:55 | * | edaaa_ joined #nim |
10:18:28 | * | jaco60 joined #nim |
10:22:11 | * | yglukhov joined #nim |
10:26:25 | * | yglukhov quit (Ping timeout: 240 seconds) |
10:29:59 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:36:22 | * | ayia quit (Remote host closed the connection) |
10:36:58 | * | gokr quit (Ping timeout: 240 seconds) |
10:47:36 | * | elrood joined #nim |
10:56:05 | avsej | is there any general purpose templating engine for nim? like jinja or liquid? |
11:17:35 | avsej | ok, I found this post http://forum.nim-lang.org/t/651 |
11:20:17 | * | Matthias247 quit (Read error: Connection reset by peer) |
11:21:28 | * | Guest97237isaway is now known as Guest97237 |
11:23:47 | * | yglukhov joined #nim |
11:28:10 | * | yglukhov quit (Ping timeout: 260 seconds) |
11:32:13 | * | joelmo quit (Quit: Connection closed for inactivity) |
11:36:43 | * | Ven joined #nim |
11:37:21 | dom96 | hey avsej |
11:37:25 | * | federico3 quit (Ping timeout: 240 seconds) |
11:37:32 | avsej | hi |
11:37:44 | dom96 | yeah, that thread pretty much mentions all of them |
11:38:17 | dom96 | You can try searching for "template" in nimble, or "templating". Might give you some hits: nimble search template |
11:38:18 | avsej | so far moustache port looks the best |
11:38:46 | avsej | thanks |
11:40:25 | * | federico3 joined #nim |
11:44:23 | * | CARAM__ quit (Ping timeout: 268 seconds) |
11:45:46 | * | CARAM__ joined #nim |
11:57:43 | * | jaco60 quit (Quit: Leaving) |
12:00:26 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
12:00:44 | * | wan quit (Quit: WeeChat 1.3) |
12:05:06 | * | Ven joined #nim |
12:19:07 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
12:24:48 | * | nande quit (Read error: Connection reset by peer) |
12:25:13 | * | yglukhov joined #nim |
12:28:23 | dom96 | So who's going to OSCON in Amsterdam!? |
12:28:37 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
12:29:49 | * | yglukhov quit (Ping timeout: 256 seconds) |
12:34:10 | * | edaaa_ quit (Ping timeout: 250 seconds) |
12:34:56 | * | Ven joined #nim |
12:59:21 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
13:00:03 | * | dom96 quit (Changing host) |
13:00:03 | * | dom96 joined #nim |
13:13:00 | * | strcmp1 quit (Remote host closed the connection) |
13:24:56 | * | Ven joined #nim |
13:38:30 | * | yglukhov joined #nim |
13:41:00 | * | strcmp1 joined #nim |
13:43:09 | * | yglukhov quit (Ping timeout: 255 seconds) |
13:44:30 | * | filcuc joined #nim |
13:45:00 | filcuc | how can i specify the -d:ssl when building a binary package through nimble? |
13:45:49 | filcuc | or in general how can i set specific nim compiler settings inside the .nimble file? |
13:45:55 | * | linkedinyou joined #nim |
13:46:12 | filcuc | for example specific "C" libraries that should be linked |
13:47:53 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
13:48:06 | r-ku | while i dont know answer to your question i can suggest you looking through nimble packages and maybe you will find an example. list of packages is here: https://github.com/nim-lang/packages/blob/master/packages.json |
13:50:15 | dom96 | filcuc: create a <yourmodulename>.nim.cfg file and add the '-d:ssl' there |
13:50:52 | filcuc | dom96: good to know that ;) |
13:51:06 | filcuc | dom96: maybe i missed it from the github readme |
13:56:28 | * | Ven joined #nim |
13:59:18 | * | xet7 joined #nim |
14:09:51 | * | desophos joined #nim |
14:11:08 | * | Jesin quit (Quit: Leaving) |
14:17:57 | * | gokr joined #nim |
14:18:41 | desophos | how do i tell the compiler to make my executable look for dlls in a certain location? |
14:20:05 | Araq | you can't. you put the DLLs next to your exe for distribution |
14:20:21 | Araq | how DLL are searched is determined by the os |
14:20:26 | desophos | oh okay, thanks |
14:20:39 | Araq | there are other ways to distribute them, but you don't want to use these |
14:21:26 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:22:48 | * | gokr quit (Read error: Connection reset by peer) |
14:22:59 | * | gokr joined #nim |
14:36:27 | * | Ven joined #nim |
14:44:57 | * | yglukhov joined #nim |
14:45:45 | * | yglukhov quit (Remote host closed the connection) |
14:51:59 | * | jakesyl quit (Ping timeout: 240 seconds) |
15:05:10 | * | jakesyl joined #nim |
15:05:25 | * | Jesin joined #nim |
15:09:47 | * | askatasu1 joined #nim |
15:27:01 | * | strcmp1 quit (Remote host closed the connection) |
15:30:27 | elrood | desophos, actually, you can use the rpath mechanism on linux (and probably osx) and something like SetDllDirectory on any not too obsolete windows version. or change your PATH or current directory on windows, of course |
15:31:27 | elrood | or runtime dynamic linking via LoadLibrary if that's your thing |
15:31:34 | desophos | elrood, well i forgot that putting the dlls next to the exe works :D |
15:32:00 | desophos | so i'm fine with that for now, thanks though |
15:32:35 | * | coryg joined #nim |
15:33:23 | * | Matthias247 joined #nim |
15:39:48 | * | ephja joined #nim |
15:41:13 | desophos | is there a way i can get more detailed info about dll loading errors? |
15:41:18 | desophos | "could not load" is way too vague |
15:45:39 | Araq | it's most likely a 64 vs 32 bit issue |
15:45:57 | Araq | and we don't know how to improve the error message, otherwise we would have done it by now |
15:47:15 | desophos | yeah i thought it was that but i think it's something else |
15:47:24 | desophos | that's too bad :/ |
15:51:42 | desophos | yeah it's not a 64/32bit issue |
15:52:23 | desophos | it works on my 64bit windows 10 but i gave it to someone else and it doesn't work on their 64bit windows 10 |
15:52:28 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
15:52:35 | desophos | with the dlls next to the exe :/ |
15:54:34 | * | strcmp1 joined #nim |
16:06:12 | filcuc | https://github.com/filcuc/SendMailNim |
16:06:22 | filcuc | if you need to send email through you gmail account |
16:06:24 | filcuc | :) |
16:06:53 | * | yglukhov joined #nim |
16:06:58 | filcuc | i had already done it in python but i rewrote it in Nim just for fun |
16:19:45 | federico3 | the zlib wrapper has been dropped from Nim - where did it went? |
16:30:26 | ephja | federico3: to a package called zip |
16:31:28 | ephja | there's no zlib package, but it always were in a directory called zip |
16:32:36 | * | toad joined #nim |
16:33:50 | * | strcmp1 quit (Quit: bbs) |
16:34:00 | * | strcmp1 joined #nim |
16:45:29 | Araq | desophos: that means the DLl depends on some other DLL that you didn't distribute (Direct X?) |
16:45:37 | Araq | well it could mean that. |
16:46:32 | elrood | very nice of that zip package to refuse cooperation with any libzip.so.{>2}, by the way ;P |
16:49:28 | desophos | hmm, really Araq? thanks, i'll check that out |
16:58:48 | toad | Araq: Arent you the main person behind nim? |
16:59:29 | ephja | yep |
16:59:58 | toad | :O |
17:00:02 | * | jakesyl quit (Ping timeout: 246 seconds) |
17:00:19 | * | filcuc quit (Quit: Konversation terminated!) |
17:00:21 | toad | Honor to meet you, Araq |
17:00:40 | * | Trustable joined #nim |
17:01:16 | toad | Does nim have a 3D graphics lib yet? |
17:01:26 | toad | (either opengl, directx, or another) |
17:01:41 | ephja | elrood: it's the major version number, right? someone can edit it if it's compatible I guess, which I assume it is |
17:01:46 | * | Trustable quit (Client Quit) |
17:02:52 | ephja | toad: yes https://github.com/nim-lang/opengl |
17:03:01 | toad | Sweet :D |
17:03:35 | ephja | and a few libs for managing windows (glfw, sdl, ...) |
17:06:34 | federico3 | ephja: there's no zip package anymore |
17:07:19 | federico3 | but there's a zip project |
17:08:49 | ephja | federico3: there is |
17:09:35 | ephja | I dunno if an update was necessary, but I fetched the newest package database and could install it |
17:11:15 | federico3 | ephja: I'm talking about https://github.com/nim-lang/zip/ |
17:11:30 | * | allan0 quit (Ping timeout: 240 seconds) |
17:11:31 | toad | I want an online nim compiler :C |
17:11:37 | toad | My computer wont install nim |
17:11:41 | * | Demos joined #nim |
17:11:54 | toad | Damn school firewall :p |
17:12:48 | federico3 | don't we need a way to publish docs for the 3rd party packages? |
17:14:02 | ephja | federico3: yes but it does have a nimble (package) file and it has been registered |
17:15:53 | ephja | toad: http://ideone.com/ |
17:17:19 | toad | I need an exe or .out :p |
17:17:48 | toad | I just need a compiler, not a runner |
17:18:16 | federico3 | toad: can you SSH outside? |
17:18:38 | ephja | that's mildly risky, but ok :-P |
17:18:53 | toad | federico3: Kinda |
17:19:00 | toad | I could cross compile |
17:19:02 | toad | Just a pain |
17:19:16 | toad | And I need to get the c and convert it to a jar via jni |
17:19:19 | federico3 | or just code/build/run on a dev server |
17:19:29 | toad | I need a gui |
17:19:31 | toad | VNC sucks |
17:25:23 | * | allan0 joined #nim |
17:27:53 | toad | What console should I build an emulator for? GB seems promising as dom96 has some code for one |
17:28:17 | dom96 | def- built one for NES |
17:28:29 | toad | Hi dom96 |
17:28:34 | toad | Loved your kernel work :D |
17:30:05 | toad | Wow, good work def- |
17:31:16 | federico3 | ephja: the zip pkg does not wrap the gzip library tho :-/ |
17:31:52 | toad | dom96 How far did you get on the gameboy? |
17:32:04 | ephja | ok |
17:32:11 | dom96 | toad: not very far heh |
17:32:30 | toad | Lol I see |
17:32:40 | toad | Ever get a gui up? |
17:32:44 | toad | Or anything g? |
17:33:35 | toad | As useful that code probably is, Ill probably write my own.... anyything as large as 200lines+ isnt worth for me to catch up on./.... takes me a while and locks me down |
17:34:14 | dom96 | oh, well, I guess my definition of "not very far" is different |
17:34:26 | dom96 | I most of the opcodes |
17:34:33 | dom96 | and got the nintendo logo to display |
17:34:41 | toad | Yeah |
17:34:45 | dom96 | but it gets stuck after it scrolls the logo |
17:34:48 | toad | I know that much |
17:34:53 | toad | (from your readme) |
17:35:01 | dom96 | but sure, it's way more fun to start your own |
17:35:04 | toad | But my point is you never rendered any game stuff |
17:35:09 | toad | Just bios stufdfd |
17:35:13 | toad | *stuff |
17:35:21 | dom96 | yeah |
17:42:32 | * | darkf quit (Quit: Leaving) |
17:42:50 | * | ochkoffein joined #nim |
17:43:00 | Araq | hi toad, you're welcome. |
17:45:07 | toad | :) |
17:46:19 | * | coryg quit (Ping timeout: 240 seconds) |
17:46:24 | toad | Q: How would I use an enum in a class? |
17:46:45 | toad | I have enums where the same label is thrown around..... would it be className.enumName ? |
17:47:01 | toad | And then that would give a number? |
17:49:37 | * | coryg joined #nim |
17:50:30 | toad | Hmmmmm...... I just had an idea |
17:50:48 | * | toad quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
17:50:51 | ephja | no, enums are strongly typed, but the integer value can be retrieved by passing it to 'ord' |
17:51:27 | * | toad joined #nim |
17:51:52 | Varriount | Good morning! |
17:52:12 | Varriount | The sun is shining, birds are singing, and most importantly, mid-terms are over! |
17:52:15 | ephja | toad: no, enums are strongly typed, but the integer value can be retrieved by passing it to 'ord' |
17:52:54 | ephja | http://manual.nim-lang.org/docs/manual.html#types-enumeration-types |
17:53:38 | toad | ephja So I have to use ord to have an enum in a class? |
17:54:18 | toad | And ord(className.EnumName) ? |
17:54:21 | * | jakesyl joined #nim |
17:57:16 | ephja | no, ord is only used in order to retrieve the integer value. object.enumField will yield the value of that field |
17:57:33 | toad | im so confused |
17:58:02 | * | Varriount quit (Read error: Connection reset by peer) |
17:58:02 | toad | If I have an enum with a set to 0, and I dont want to type 0 but a, yet the enum is in a class |
17:58:13 | toad | How would I use "a" in code? |
18:02:24 | ephja | I'm not sure what you're trying to achieve, but I'll show you some example code |
18:03:03 | toad | Ty ephja |
18:03:14 | toad | I need 2 enums to have values with the same names |
18:03:24 | toad | So I need to isolate them from each other |
18:10:37 | ephja | toad: https://ideone.com/go5NGG |
18:10:44 | ephja | does that answer any of your questions? |
18:11:06 | ephja | I don't think 'ord' is of any relevance to what you were asking, but it's good to know about it |
18:12:17 | * | Matthias247 quit (Read error: Connection reset by peer) |
18:12:23 | toad | Checking, ty :) |
18:12:41 | ephja | "var x: int = 1; x = eA" would not work since eA is not an integer, but you could use ord in that case: "var x: int = 1; x = ord(eA)". the numerical value of eA is 4 so 'x' will now hold that value |
18:13:58 | toad | Ty ord is what I want5 |
18:16:17 | ephja | oh ok |
18:18:40 | * | Mat4 joined #nim |
18:18:44 | Mat4 | hello |
18:19:10 | Araq | hi Mat4 |
18:19:28 | toad | Hi |
18:20:33 | Mat4 | hi Araq an toad |
18:23:02 | * | vqrs quit (Ping timeout: 272 seconds) |
18:23:26 | ephja | it's a possibility |
18:24:01 | * | Varriount joined #nim |
18:25:07 | * | vqrs joined #nim |
18:42:11 | * | askatasu1 quit (Quit: WeeChat 1.3) |
18:42:29 | * | askatasuna joined #nim |
18:45:33 | toad | How can i get the data type of a variable in nim? |
18:46:25 | ephja | pass it to 'type' |
18:47:10 | * | irrequietus joined #nim |
18:48:58 | toad | Thankds |
18:49:44 | toad | Im creating my own array thing |
18:49:46 | toad | Very confusing |
18:50:45 | * | Demon_Fox joined #nim |
18:50:54 | toad | Im returning either a uint8 or a uint16 |
18:51:05 | toad | But I dont know which till after the function is called |
18:51:34 | toad | And the return type is in the function header |
18:51:36 | toad | IdeaS? |
18:52:32 | Araq | since every uint8 is a valid uint16 you can simply always return an uint16 |
18:52:55 | toad | Thanks Araq |
18:53:04 | toad | And then would I just type convert it back? |
18:53:20 | Araq | yeah |
18:53:25 | toad | Or could I just say uin8 = functionWhichReturnsUint16 |
18:53:26 | toad | Ah ok |
18:53:52 | * | def- quit (Quit: -) |
18:55:41 | ephja | it's not done implicitly because of the risk of losing information |
18:59:01 | * | def- joined #nim |
18:59:58 | ephja | https://nim-by-example.github.io/ |
19:01:19 | * | coryg quit (Ping timeout: 240 seconds) |
19:05:58 | * | def- quit (Ping timeout: 260 seconds) |
19:06:31 | * | def- joined #nim |
19:08:23 | * | toad quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
19:17:37 | * | juanfra quit (Quit: juanfra) |
19:18:26 | Varriount | onionhammer: You might be interested in the recent commits I've made to the restructure-heirarchy branch of NimLime |
19:21:58 | * | strcmp1 is now known as Modar |
19:22:55 | * | Modar is now known as ascii_ |
19:25:19 | Araq | Varriount: can you make app vendor or whatever it's called generate Nim installers via NSIS? |
19:25:55 | onionhammer | Varriount i'll check them out thanks |
19:26:06 | Mat4 | toad: why do you need to handle characters of different format whithin the same routine ? |
19:26:49 | Varriount | Araq: I already did? It's just the upload step that's not finished. |
19:27:03 | Varriount | I'm working on that today. |
19:28:18 | onionhammer | Varriount any functional changes? |
19:28:21 | * | coryg joined #nim |
19:28:42 | Varriount | onionhammer: The biggest one is the introduction of a generic error handler. |
19:29:18 | Varriount | The idea is that you put the 'catch_errors' decorator on a function, and if there are any uncaught errors that happen in that function, the user will be notified and the error logged to file. |
19:29:53 | * | Mat4 quit (Quit: Verlassend) |
19:32:21 | dom96 | Varriount: Hey, why does NimLime create a new tab called 'nimlime' on save by default, bug? |
19:32:22 | * | askatasuna quit (Quit: WeeChat 1.3) |
19:32:44 | Varriount | dom96: See the most recent closed issues. |
19:33:18 | Varriount | dom96: It's essentially a problem with the default settings. We should probably put out a new release. |
19:33:39 | dom96 | Varriount: yeah, had to go through settings and disable a bunch of stuff. |
19:33:51 | Varriount | dom96: Like? |
19:35:12 | dom96 | "check.on_save.enabled" and "enable_nm_completions", although I think I disabled the second one just in case. |
19:35:47 | dom96 | Is there a way to disable auto-indent? |
19:36:12 | Varriount | dom96: That's a sublime-text core setting, so look in the builtin settings file. |
19:37:14 | dom96 | ahh, of course. Should have looked there. |
19:39:55 | * | Jesin quit (Quit: Leaving) |
19:42:43 | Varriount | Why did you disable the check.on_save.enabled? |
19:50:15 | * | juanfra joined #nim |
20:03:14 | dom96 | Varriount: I assumed that was creating the new tab on save |
20:03:25 | Varriount | dom96: And did it work? |
20:03:31 | dom96 | Varriount: yeah |
20:03:49 | Varriount | dom96: Ugh. I have no idea how that bug appeared. |
20:04:25 | Varriount | dom96: The thing I dislike about writing plugins is that it's quite hard to make tests for code. Most of the code is so dependant on user interaction |
20:04:54 | Varriount | What I need is a test harness to simulate a sublime text instance. |
20:07:49 | Varriount | onionhammer: I also fixed a rather nasty bug with loading settings at the module level on ST3. Look at the '__init__.py' file in the nimlime_core folder. |
20:21:50 | * | irrequietus quit () |
20:23:54 | * | Senketsu joined #nim |
20:32:12 | Araq | Varriount: er, I see no such thing in appveyor.yml |
20:34:07 | Araq | er ... actually |
20:34:15 | Araq | it's fine to do it with the builder |
20:34:25 | Araq | but I want travis to generate the tar.xz |
20:41:49 | Araq | hrm, if I use nimble to install niminst, how does the linux machine know where to find the binary? |
21:08:45 | * | vendethiel joined #nim |
21:10:20 | * | Jesin joined #nim |
21:36:48 | * | Matthias247 joined #nim |
21:42:07 | * | strcmp2 joined #nim |
21:43:27 | * | ascii_ quit (Ping timeout: 256 seconds) |
21:49:27 | * | edaaa_ joined #nim |
22:01:37 | Varriount | Araq: I'm not in charge of Appveyor. I don't even have the credentials needed to access it. |
22:01:47 | Varriount | Araq: I'm in charge of buildbots, remember? |
22:02:23 | Araq | yeah, sorry, my mistake. |
22:03:25 | Varriount | dom96: If all goes well, there should be a new major release for NimLime tomorrow. |
22:03:32 | dom96 | Varriount: cool |
22:08:36 | Varriount | There won't be many new features, but many bugs have been squashed. |
22:13:27 | * | Kingsquee joined #nim |
22:15:30 | Araq | dom96: are you still so opposed to the 'submodule' feature that you would leave Nim for good if I introduce it? |
22:15:39 | Araq | :-) |
22:17:18 | * | coryg quit (Ping timeout: 240 seconds) |
22:18:32 | * | coryg joined #nim |
22:22:16 | Varriount | Araq: Submodule? |
22:22:34 | Araq | also called "namespace" |
22:22:40 | Araq | submodule foo: |
22:22:45 | Araq | const x = 8 |
22:22:56 | Araq | # can only acces it via 'foo.x' |
22:23:04 | * | vendethiel quit (Ping timeout: 272 seconds) |
22:23:14 | Araq | it's a generalization of .pure enums. |
22:23:31 | dom96 | I'm not sure. |
22:23:38 | Varriount | What's the intended benefit? |
22:24:16 | Araq | there is none. but some people swear it improves software quality. |
22:24:54 | desophos | wouldn't that encourage people to just put a bunch of unrelated code in the same module? |
22:25:03 | Araq | well actually my question is whether we should register 'submodule' as a keyword for 0.12 so we're free to add something like it later |
22:25:48 | Araq | but we can always introduce it as a pseudo system.nim template later, so ok, never mind. |
22:27:27 | Araq | desophos: well it would certainly encourage more dots which are sexier than underscores. foo_bar # an intruder? He's ugly! |
22:27:47 | Araq | foo.bar # oh yeah baby. |
22:28:10 | Varriount | I don't mind registering it as a keyword, I'm doubtful on the use however. |
22:28:28 | desophos | hmm |
22:30:30 | Araq | https://youtu.be/mE889wZyfbc?t=29 |
22:36:30 | lazypenguin | Araq, couldn't you just use a regular module? |
22:37:46 | Araq | lazypenguin: yeah but people might not like to put all their consts in a separate module, it's an extra file. |
22:39:10 | * | coryg quit (Ping timeout: 246 seconds) |
22:39:48 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:40:43 | lazypenguin | ah, i see what you mean about it being a generalization of pure enums. |
22:42:07 | * | coryg joined #nim |
22:44:54 | Varriount | Araq: What about auto-boxing procedures of different calling conventions (aka thunk generation) |
22:48:10 | Araq | Varriount: I think I told you. nice, we want it. but not critical for v1. |
22:50:37 | * | Guest97237 is now known as Guest97237isaway |
23:02:18 | * | vikaton joined #nim |
23:15:54 | * | elrood quit (Quit: Leaving) |
23:19:38 | * | nande joined #nim |
23:41:21 | lazypenguin | As anyone used the iup module extensively? I think it might be missing an import but want to run it by someone more experienced |
23:43:27 | Araq | well it was never updated to iup 3. |
23:44:00 | Araq | https://github.com/nim-lang/Nim/issues/3444 |
23:44:29 | * | edaaa_ quit (Remote host closed the connection) |
23:45:55 | lazypenguin | hah thanks, shoulda checked their first. Is there a more stable binding for a gui toolkit? |
23:46:35 | Araq | we have wrappers for GTK3, GTK2 and wxWidgets |
23:46:41 | Araq | and Qt. |
23:47:06 | * | FroznPanda joined #nim |
23:47:14 | Araq | and the iup 3 wrapper is just a c2nim invokation away. |
23:47:31 | Araq | so please just do it. |
23:47:49 | lazypenguin | Okay, new territory for me but I will take a stab at it |
23:47:51 | Araq | the existing iup wrapper even was the used c2nim commands iirc |
23:48:05 | Araq | *even has the used c2nim command in a comment |
23:59:58 | * | bjz_ joined #nim |