00:00:37 | * | PMunch quit (Quit: leaving) |
00:01:22 | FromGitter | <zacharycarter> if you say so |
00:01:30 | FromGitter | <zacharycarter> nuklear is also dependency free |
00:01:33 | FromGitter | <zacharycarter> single C header file |
00:01:44 | FromGitter | <zacharycarter> https://www.youtube.com/watch?v=rlg00tvrfAY&feature=youtu.be |
00:01:47 | FromGitter | <zacharycarter> @Araq |
00:02:10 | FromGitter | <zacharycarter> ugh what is up with these potato quality videos |
00:05:05 | * | Jesin joined #nim |
00:06:03 | * | def-pri-pub joined #nim |
00:10:58 | * | Kingsquee joined #nim |
00:17:56 | * | skrylar joined #nim |
00:18:35 | * | skrylar quit (Client Quit) |
00:28:55 | * | dddddd quit (Quit: Hasta otra..) |
00:29:35 | * | def-pri-pub quit (Quit: leaving) |
00:29:37 | * | Jesin quit (Quit: Leaving) |
00:39:52 | * | smt quit (Ping timeout: 255 seconds) |
00:40:55 | * | smt_ quit (Ping timeout: 276 seconds) |
00:44:17 | * | sz0 quit (Quit: Connection closed for inactivity) |
00:51:03 | * | yglukhov joined #nim |
00:55:17 | * | yglukhov quit (Ping timeout: 246 seconds) |
01:24:22 | * | chemist69 quit (Ping timeout: 246 seconds) |
01:26:26 | * | Jesin joined #nim |
01:36:52 | * | chemist69 joined #nim |
02:17:51 | FromGitter | <jacob88888> I can't find this online: how do you deal with circular object type references (in type definition)?: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ Is there forward declarations for object types, or some other method? Thanks [https://gitter.im/nim-lang/Nim?at=5991084fbc464729747e1678] |
02:21:04 | FromGitter | <jacob88888> Also an issue with only one type section (illegal recursion in type 'objA') |
02:34:58 | * | Jesin quit (Quit: Leaving) |
02:36:55 | * | Jesin joined #nim |
02:52:57 | * | yglukhov joined #nim |
02:57:31 | * | yglukhov quit (Ping timeout: 255 seconds) |
03:06:14 | * | couven92 quit (Quit: Client Disconnecting) |
03:10:36 | * | skrylar joined #nim |
03:36:14 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
03:36:44 | * | endragor joined #nim |
03:47:33 | subsetpark | zacharycarter is your username zax? |
04:05:08 | * | pilne quit (Quit: Quitting!) |
04:28:33 | * | kalexm joined #nim |
04:30:52 | * | kalexm quit (Read error: Connection reset by peer) |
04:31:06 | * | kalexm joined #nim |
04:35:10 | * | kalexm quit (Ping timeout: 240 seconds) |
04:40:20 | * | Jesin quit (Ping timeout: 246 seconds) |
04:40:50 | * | Jesin joined #nim |
04:51:07 | * | Jesin quit (Ping timeout: 260 seconds) |
04:51:30 | * | Jesin joined #nim |
04:54:43 | * | yglukhov joined #nim |
04:58:57 | * | yglukhov quit (Ping timeout: 240 seconds) |
05:36:51 | * | dankrad quit (Ping timeout: 255 seconds) |
05:36:59 | * | skrylar quit (Remote host closed the connection) |
05:42:35 | * | BitPuffin|osx quit (Ping timeout: 240 seconds) |
05:43:29 | * | Jesin quit (Ping timeout: 248 seconds) |
06:07:03 | * | yglukhov joined #nim |
06:11:30 | * | yglukhov quit (Ping timeout: 255 seconds) |
06:30:50 | * | rauss quit (Quit: WeeChat 1.9) |
06:32:00 | FromGitter | <zacharycarter> negative |
06:32:37 | * | ShalokShalom_ joined #nim |
06:35:04 | FromGitter | <zacharycarter> I'm getting errors trying to import rst |
06:35:45 | * | ShalokShalom quit (Ping timeout: 248 seconds) |
06:35:45 | * | nsf joined #nim |
06:35:56 | FromGitter | <zacharycarter> https://play.nim-lang.org/?gist=f2c756f3ee520c4d7413edd06eee102f |
06:38:02 | * | Gertm left #nim ("Closing Window") |
06:43:03 | * | kalexm joined #nim |
06:43:38 | FromGitter | <zacharycarter> figured out I had to import packages/docutils/rst |
06:46:30 | FromGitter | <Smaehtin> @jacob88888 You can put them under the same `type` block to fix the `undeclared identifier: 'objB'`error, but you'll have to make use of `ref` to create circular references, so changing `objA = object` to `objA = ref object` and the same for `objB` should work |
06:47:08 | * | Matthias247 joined #nim |
06:47:14 | FromGitter | <Smaehtin> @jacob88888 see also: https://nim-lang.org/docs/tut2.html#object-oriented-programming-mutually-recursive-types |
06:52:05 | * | Matthias247 quit (Read error: Connection reset by peer) |
06:53:03 | FromGitter | <zacharycarter> hrm rstToHtml seems to break when threads are involved |
06:57:28 | * | solitude joined #nim |
06:58:02 | Elronnd | if I want a struct to have multiple publicly accessible members, do I do type foo = object a*, b*: int, or a*, b: int |
07:18:20 | * | yglukhov joined #nim |
07:23:57 | * | mahtov quit (Ping timeout: 260 seconds) |
07:25:02 | * | couven92 joined #nim |
07:27:13 | * | yglukhov quit (Remote host closed the connection) |
07:37:05 | * | kalexm quit (Ping timeout: 246 seconds) |
07:41:47 | * | yglukhov joined #nim |
07:53:29 | * | gangstacat joined #nim |
07:53:59 | FromGitter | <zacharycarter> @Araq is there any way to do something similar to rst2html in a threadsafe manner? |
08:00:32 | FromGitter | <zacharycarter> nevermind I forgot about createshared |
08:11:44 | Elronnd | formattedline &= ", $# points, T:$#, $#" % [xlog.points, xlog.turns, xlog.reason] on this line I get this error: "effbot.nim(69, 90) Error: type mismatch: got (string) but expected 'int'". It's pointing to xlog.reason -- why would it expect that to be an int? |
08:13:59 | * | mahmudov joined #nim |
08:18:06 | * | Arrrr joined #nim |
08:18:49 | Arrrr | https://tulayang.github.io/articles/asyncio-issure |
08:25:09 | * | ShalokShalom_ is now known as ShalokShalom |
08:32:15 | * | xet7 joined #nim |
08:39:33 | * | ShalokShalom quit (Quit: No Ping reply in 180 seconds.) |
08:40:00 | * | ShalokShalom joined #nim |
08:53:22 | * | yglukhov quit (Remote host closed the connection) |
09:05:34 | * | dom96|w joined #nim |
09:12:45 | * | yglukhov joined #nim |
09:15:31 | * | jinshil quit (Quit: Good-bye!) |
09:16:59 | * | kalexm joined #nim |
09:21:22 | * | kalexm quit (Ping timeout: 255 seconds) |
09:42:29 | * | Tiberium_ joined #nim |
09:42:51 | * | Tiberium_ quit (Client Quit) |
09:43:35 | couven92 | where is the `importc` pragma declared? Or is import compiler-magic? |
09:48:13 | dom96|w | compiler magic |
09:50:21 | couven92 | I talked with Araq yesterday about creating a a more advanced `import` that uses the nim symbol name, but capitalizes/uppercases the C identifier (e.g. when importing C defines that are ALL UPPERCASE). Araq said to write a macro, but I was thinking: this could maybe be useful in the stdlib, right? |
09:50:41 | couven92 | *a more advanced `importc` |
09:51:16 | euantor | Seeing the discussion from yesterday about parsing stuff from `/proc` and sad to see no mention of `strscans` - just `parseutils` and `pegs`. `strscans` is a neat tool :) |
09:52:59 | * | Tiberium quit () |
09:53:15 | * | Tiberium joined #nim |
09:53:45 | couven92 | I could write up a PR for a more advanced `importc`, but where is the best place to put it? in system? :O |
09:55:30 | couven92 | I am thinking: `macro importc(namingRule: ImportcNamingRule, ast: typed): typed` with `ImportcNamingRule` declaring `inrAllUppercase` and `inrCapitalize` |
09:55:35 | * | Tiberium quit (Remote host closed the connection) |
09:56:55 | couven92 | but maybe that's better put into a nimble package (like `importc_helpers`) since I have some other importc helper macros by now? |
10:02:25 | * | sz0 joined #nim |
10:03:27 | * | Tiberium joined #nim |
10:05:48 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
10:05:55 | Araq | couven92: is it really that useful? many use c2nim to create the importc'ed procs which supports --nep1 |
10:06:59 | couven92 | Araq, yeah, I can see that... Okay, I'll create an importc_helpers nimble package instead... For me and others who sometimes need to do manual importc-ing |
10:07:02 | Tiberium | euantor, yeah, and it is also fast (at least faster than split) |
10:08:00 | Araq | strscans needs better docs perhaps |
10:08:34 | Araq | but yeah, it came after pegs and works much better for many data extractions tasks |
10:08:46 | euantor | I think they're pretty god at the minute. A few more examples may help though |
10:08:54 | euantor | *good |
10:09:48 | Tiberium | well I've only used them for simple $i|$f|$f|$i string |
10:12:27 | couven92 | dom96, you wanted this for tracking, but maybe also tag with RFC tag? https://github.com/nim-lang/nimble/issues/392 |
10:18:08 | * | kalexm joined #nim |
10:22:27 | * | kalexm quit (Ping timeout: 240 seconds) |
10:26:48 | * | haha_ joined #nim |
10:35:17 | * | Arrrr quit (Disconnected by services) |
10:35:17 | * | Arrrr1 joined #nim |
10:35:35 | * | Arrrr1 quit (Client Quit) |
10:51:49 | * | dom96|w joined #nim |
10:56:36 | * | ibutra joined #nim |
10:58:40 | * | dddddd joined #nim |
10:59:13 | * | kalexm joined #nim |
10:59:13 | * | kalexm quit (Remote host closed the connection) |
11:02:08 | * | kalexm joined #nim |
11:06:09 | * | dave24 quit (Ping timeout: 248 seconds) |
11:08:03 | * | dave24 joined #nim |
11:12:37 | dom96|w | couven92 put it in Nimble package for now |
11:18:13 | * | kalexm quit (Remote host closed the connection) |
11:19:10 | * | solitude quit (Remote host closed the connection) |
11:20:27 | Tiberium | wow, https://github.com/GULPF/nimquery/ seems to be a better version of q.nim |
11:20:41 | Tiberium | q.nim - https://github.com/OpenSystemsLab/q.nim |
11:38:24 | * | yglukhov quit (Remote host closed the connection) |
11:48:20 | * | mjanssen quit (Remote host closed the connection) |
11:59:38 | * | krux02 joined #nim |
12:07:03 | * | yglukhov joined #nim |
12:09:32 | Tiberium | oh |
12:09:41 | Tiberium | https://github.com/Eugeny/terminus |
12:09:48 | Tiberium | terminal. in. type. script |
12:09:53 | Tiberium | wtf? |
12:10:53 | * | ibutra quit (Read error: Connection reset by peer) |
12:15:57 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
12:40:44 | * | arnetheduck quit (Remote host closed the connection) |
12:42:29 | * | arnetheduck joined #nim |
12:42:58 | FromGitter | <jacob88888> @Smaehtin Thanks, works :) |
12:45:08 | * | Vladar joined #nim |
12:45:36 | * | yglukhov quit (Remote host closed the connection) |
12:46:46 | * | dom96|w joined #nim |
12:49:36 | * | Gertm joined #nim |
12:50:25 | * | arnetheduck quit (Remote host closed the connection) |
12:51:58 | * | arnetheduck joined #nim |
12:54:58 | FromGitter | <GULPF> @Tiberium Thanks :) It's been a good project for learning about nim & parsing |
12:55:52 | * | arnetheduck quit (Remote host closed the connection) |
12:56:21 | * | Arrrr joined #nim |
12:56:21 | * | Arrrr quit (Changing host) |
12:56:21 | * | Arrrr joined #nim |
12:59:10 | * | ibutra joined #nim |
13:02:36 | Arrrr | Do people actually answer SO questions? I think there is barely anyone pending of what's going on over there https://stackoverflow.com/questions/tagged/nim?sort=newest&pageSize=15 |
13:06:47 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
13:07:46 | * | Arrrr quit (Ping timeout: 276 seconds) |
13:11:36 | Tiberium | Araq, well they do |
13:16:03 | * | dom96|w joined #nim |
13:18:44 | * | kalexm joined #nim |
13:23:04 | * | kalexm quit (Ping timeout: 255 seconds) |
13:25:57 | * | planhths joined #nim |
13:27:44 | * | haha_ quit (Quit: haha_) |
13:30:19 | * | mosORadi joined #nim |
13:30:49 | * | rauss joined #nim |
13:30:50 | * | mosORadi quit (Client Quit) |
13:30:59 | * | mosORadi joined #nim |
13:32:28 | * | endragor quit (Remote host closed the connection) |
13:37:39 | planhths | hey guys |
13:37:47 | planhths | @Araq what else would you add to the strscans docs? I want to improve them. |
13:41:19 | Araq | planhths: hum, I dunno. I just assumed they are incomplete :-) |
13:43:08 | planhths | well I was thinking about making a PR to remove the ^* operator from the docs since it doesn't work |
13:43:40 | planhths | and add a couple more examples |
13:43:54 | planhths | for scanp |
13:45:55 | * | yglukhov joined #nim |
13:46:00 | planhths | though I don't know what else to parse in the examples |
13:47:13 | planhths | any suggestions someone? |
13:48:13 | * | chemist69 quit (Ping timeout: 255 seconds) |
13:55:24 | * | arnetheduck joined #nim |
13:59:03 | arnetheduck | hello |
14:01:17 | Araq | planhths: scanp in general could get some love :-) |
14:02:00 | Araq | are maybe we should deprecate it, it's hard to understand and still doesn't work properly |
14:02:08 | * | chemist69 joined #nim |
14:02:18 | planhths | thats bad to hear |
14:02:59 | * | haha_ joined #nim |
14:03:10 | planhths | though in some cases it is more appropriate to use scanp than scanf |
14:05:06 | planhths | most code I have 'fished' in github uses scanf in non optimal way like: |
14:06:07 | planhths | while idx < content.len: |
14:06:09 | planhths | if content[idx..^1].scanf(... ) |
14:06:37 | ibutra | But do you solve this non optimal way by providing an alternative nobody uses? |
14:06:37 | planhths | clearly a case for scanp |
14:06:52 | ibutra | read nobody= hardly anybody |
14:07:55 | planhths | well nothing is concrete. if scanp could be improved then maybe more people start using it |
14:07:58 | Araq | doesn't scanf support a 'start' parameter? |
14:09:25 | Araq | I think scanf is really sweet and 'scanp' might need to become 'grammar' ;-) |
14:09:36 | euantor | If I remember correctly, I don't think `scanf` supports optional entries which is something I wanted in the past whilst trying to use it to parse RFC 5424 syslog packets |
14:10:20 | Araq | scanf cannot easily support more operators without turning into a mess IMO |
14:10:32 | euantor | Other than that, I've used it a couple of times and it's a nice tool. I think we just need to highlight it more when regular expressions are brought up in a context where strscans can do the job |
14:10:48 | Araq | more features mean a DSL will work better |
14:11:02 | arnetheduck | any chances of https://github.com/nim-lang/Nim/pull/5818 being looked at? it's a simple cleanup req |
14:12:38 | krux02 | Araq: Is a feature request `proc typeCheck(arg:NimNode): NimNode` in the macros module feasible to implement? |
14:12:40 | Araq | arnetheduck: I think the compiler needs more support for unchecked arrays first |
14:13:11 | Araq | krux02: I doubt it, by design the VM doesn't have access to the semantic checking phases |
14:13:35 | arnetheduck | well, it passes the test suite - afair when I looked at it, there had been changes in the compiler earlier that made things work and this looked like leftovers |
14:13:42 | planhths | for a start parameter; I don't know I hardly understand their code :) |
14:13:49 | krux02 | Well to have that would solve a lot of problems with the macros system |
14:13:58 | Araq | arnetheduck: for example, a[5] can be prevented at compiletime if the compiler thinks it's an array of length 0... |
14:14:07 | krux02 | or better said it would make DSL creation much easier |
14:14:21 | arnetheduck | these removals are for unchecked arrays |
14:14:41 | arnetheduck | then the compiler should allow even at compile time, no? |
14:15:00 | krux02 | I think of a DSL as a partially typechecked ast, and that feature would allow to implement the logic for the partial typechecker in the macro itself |
14:17:29 | arnetheduck | or rather, the whole point with arraydummysize is to skip the range check - compile time or no - having it there seems strictly worse because you pay a price but get no benefit |
14:18:31 | Araq | firstly, you do get a tiny benefit because negative numbers are still checked against. |
14:19:09 | Araq | secondly, the benefit of arrayDummySize is that it doesn't require yet another pragma/language feature |
14:19:14 | * | Ven joined #nim |
14:19:27 | * | gangstacat quit (Quit: Leaving) |
14:19:40 | * | Ven is now known as Guest12884 |
14:20:06 | * | kalexm joined #nim |
14:20:07 | krux02 | I think that arrayDummySize is a bad idea |
14:20:35 | Araq | it's not even an "idea", it's something that emerges from the rest of the language rules |
14:20:40 | Araq | it cannot be "bad". |
14:20:47 | krux02 | an array is a type that has it's length encoded in the type and an unchecked array is an array of unknown length to the compiler |
14:20:58 | krux02 | for me it's an entirely distinct type |
14:21:02 | mahmudov | NiGui is there any nigui example that can show webpage or html in a window |
14:21:13 | mahmudov | or another nim lib ? |
14:21:25 | krux02 | and I think that mapping uncecked arrays as an array with a pragma is wrong |
14:22:12 | * | mahtov joined #nim |
14:22:46 | * | mahmudov quit (Remote host closed the connection) |
14:23:13 | Araq | ok, but that's not helpful at all |
14:23:41 | * | haha_ quit (Quit: haha_) |
14:24:08 | * | kalexm quit (Ping timeout: 240 seconds) |
14:24:37 | krux02 | yea sorry for that |
14:25:04 | arnetheduck | for unchecked arrays, negative indices are a feature which allow you to go backwards |
14:25:09 | * | haha_ joined #nim |
14:25:16 | krux02 | I don't have a solution in my head, but I know that I once had one in my head |
14:25:50 | krux02 | would be a lot to clean up though, because it would destroy all unchecked array usages |
14:26:21 | Araq | so ... when your macro type checks what do you then do with the result? |
14:26:31 | arnetheduck | unchecked arrays are here to stay, in one form or another if you want to support any kind of FFI / C interop |
14:29:14 | arnetheduck | they can be a pragma, a distinct type or anything - the dummy array size works around a wart that is there for legacy interaction, but it does so inefficiently |
14:31:42 | arnetheduck | the worst thing they do is hiding the developers intention from the compiler - a human reader might deduce that what the intended functionality is to skip the range check, but the compiler has no clue and can offer no help |
14:33:18 | arnetheduck | .. and the required language feature is already there ({.unchecked.}).. if arraydummysize is to be kept, should unchecked be removed? |
14:33:54 | Araq | it's not to be kept, all I tried to say was "needs more compiler support" |
14:34:01 | Araq | the PR is fine |
14:34:07 | krux02 | IMHO, the unchecked array size should not be used for anything anymore (deprecation) and the unchecked array should be a type in system.nim, so that nobody needs to ever use the pragma unchecked anymore. That pragma should be deprecated except for the use in sysetm.nim |
14:38:30 | * | Guest12884 is now known as Ven`` |
14:39:48 | FromGitter | <andreaferretti> @krux02 I agree |
14:45:50 | * | xet7 quit (Ping timeout: 246 seconds) |
14:46:44 | * | Kingsquee joined #nim |
14:48:55 | Araq | so ... when your macro type checks what do you then do with the result, krux02 |
14:49:30 | * | couven92 quit (Quit: Client disconnecting) |
14:59:00 | * | yglukhov quit (Ping timeout: 240 seconds) |
14:59:48 | * | yglukhov joined #nim |
15:00:03 | * | Arrrr joined #nim |
15:00:03 | * | Arrrr quit (Changing host) |
15:00:03 | * | Arrrr joined #nim |
15:05:55 | arnetheduck | Araq, updated pr to latest devel, looks like more dummies have crept in since |
15:06:36 | Araq | arnetheduck: can you check the compiler allows for a[6] on an unchecked array? |
15:08:50 | arnetheduck | like this? https://github.com/arnetheduck/Nim/blob/a6501e1a7da77f303d8db738f7912088740b8656/tests/array/tunchecked.nim |
15:10:26 | arnetheduck | passes that test without crashing, so.. yes |
15:10:26 | Araq | yes |
15:10:52 | Araq | hmm ok then |
15:14:14 | * | ibutra_ joined #nim |
15:14:22 | * | kalexm joined #nim |
15:17:48 | * | ibutra quit (Ping timeout: 240 seconds) |
15:21:05 | * | ibutra_ quit (Ping timeout: 248 seconds) |
15:31:02 | * | Trustable joined #nim |
15:31:37 | * | gokr joined #nim |
15:37:09 | * | ibutra joined #nim |
15:39:56 | * | mosORadi quit (Quit: Connection closed for inactivity) |
15:40:07 | * | Octopi joined #nim |
15:46:54 | * | Octopi quit (Quit: Page closed) |
15:47:32 | * | Jipok joined #nim |
15:47:54 | Jipok | Please, somebody help me test this in Safari and Edge |
15:47:58 | Jipok | https://jipok.github.io/ |
15:53:03 | * | solitude joined #nim |
15:54:31 | euantor | No luck in Edge I'm afraid https://usercontent.irccloud-cdn.com/file/S4E7vVLH/Capture.PNG |
15:54:52 | * | Jipok[m] left #nim ("User left") |
15:55:17 | * | Jipok[m] joined #nim |
15:55:56 | Jipok | no wasm support |
15:57:55 | euantor | Yup, looks like it. RUnning the current version of Edge |
15:58:33 | Tiberium | Jipok, will you share it? maybe to integrate it into nimgame2 ? |
15:59:12 | Tiberium | Jipok, well, it works for me on Chrome under linux, but it has a lot of screen tearing |
15:59:20 | Tiberium | this astronaut sprite has a lot of tearing |
15:59:42 | Tiberium | if you move it very fsast |
15:59:43 | Tiberium | fast |
16:00:24 | Tiberium | Jipok, but nonetheless great work |
16:00:57 | * | arnetheduck quit (Ping timeout: 240 seconds) |
16:01:41 | Jipok | Tiberium, Unfortunately now sdl2_gfx_ primitives does not work on the web |
16:01:49 | Jipok | How much do I know nimgame2 uses these functions |
16:01:56 | krux02 | Araq: when the value is i constant, I can get the actual value and process it |
16:02:23 | Tiberium | Jipok, why it doesn't? |
16:03:08 | Tiberium | Jipok, waait |
16:03:20 | Tiberium | you mean that whole thing is only ~2mb? |
16:03:21 | Tiberium | wow |
16:05:15 | Jipok | Pls, test asmjs version too |
16:05:16 | Jipok | https://jipok.github.io/asmjs/main.html |
16:05:38 | Tiberium | works |
16:05:43 | Tiberium | but for some reason FPS is locked on 44 |
16:05:46 | Jipok | Safari? |
16:05:49 | Jipok | Edge? |
16:05:52 | Tiberium | Chrome |
16:05:53 | krux02 | Araq: in my specific example, with the type symbols I map types to glsl types so that I can great the shader at compile time |
16:06:44 | krux02 | eventually that would allow to run a shader verifier at compile time, but currently it is a much better workflow that if I would generate istructions that would generate the shader at runtime. |
16:07:59 | Jipok[m] | euantor: can u test asmjs version? |
16:08:03 | * | kalexm quit (Remote host closed the connection) |
16:08:09 | Jipok[m] | in edge |
16:08:25 | euantor | That one doesn't error at least :) |
16:08:55 | euantor | And it seems to work, getting about 53FPS |
16:09:05 | Jipok | good |
16:09:11 | Tiberium | I don't know why I'm getting 44fps though |
16:09:18 | Jipok | F11 works? |
16:09:28 | Jipok | and fullscreen btn |
16:09:46 | euantor | F11 does, I'll check fullscreen |
16:10:02 | Tiberium | well fullscreen works too |
16:10:11 | euantor | Ye, fullscreen works |
16:10:31 | Jipok | F11 should enable / disable FPS display, do not switch fullscreen mode |
16:10:53 | euantor | Yes, F11 shows the FPS, to go fullscreen I have to click the button at the top right |
16:11:08 | Tiberium | Jipok, well maybe you need to change that shortcut |
16:11:15 | Tiberium | because in chrome F11 is fullscreen mode for a webpage |
16:12:05 | Jipok | It had to translate. In firefox works. Well, it does not matter |
16:12:33 | Jipok | Intercept* |
16:12:36 | Tiberium | so will you make a PR to nimgame2? |
16:13:42 | krux02 | http://ix.io/z8P |
16:14:20 | * | yglukhov quit (Remote host closed the connection) |
16:15:33 | Tiberium | as I understand one of the biggest todos is to remove nil from Nim? |
16:15:48 | * | gokr quit (Ping timeout: 240 seconds) |
16:15:48 | * | yglukhov joined #nim |
16:16:57 | * | yglukhov_ joined #nim |
16:16:57 | * | yglukhov quit (Read error: Connection reset by peer) |
16:18:35 | Jipok | Why nimgame? |
16:18:37 | Jipok | I thought to make a small change in Vladar4 / sdl2_nim. After that, in almost all of examples, it is required to change only one line, that they were also compiled into emscripten. |
16:19:25 | krux02 | Tiberium, well it is not too much work to implement. |
16:19:33 | FromGitter | <Smaehtin> @Tiberium I don't think there's a plan to remove nil, I think it's more making "not nil" the default, and making nilable opt-in? |
16:19:41 | krux02 | the todo list is rather to make nil and empty behaved identical |
16:19:55 | krux02 | so there is technically still a nil, but it doesn't matter anymore |
16:20:21 | Tiberium | and also import "segfaults" by default? |
16:20:32 | Tiberium | so instead of SIGSEGV we'll get NilAccessError? |
16:20:38 | krux02 | nope |
16:21:02 | krux02 | instead of segfault when adding to a nil seq, the seq will be initialized |
16:21:12 | krux02 | less segfaults |
16:21:15 | * | Jipok quit (Quit: Page closed) |
16:21:23 | * | yglukhov_ quit (Ping timeout: 246 seconds) |
16:22:22 | krux02 | ref types will sill be nil by default, but ref types don't matter that much |
16:22:26 | krux02 | I don't need them |
16:24:14 | * | ibutra quit (Remote host closed the connection) |
16:24:22 | * | ibutra joined #nim |
16:26:10 | Tiberium | Is there any difference if I declare some "var" variables inside of a "for" loop, and outside of it? I use scanf |
16:26:37 | * | gokr joined #nim |
16:26:56 | * | BitPuffin|osx joined #nim |
16:33:10 | Tiberium | hmm, also |
16:33:19 | Tiberium | Is there any faster alternative to "split"? |
16:33:27 | Tiberium | maybe more low-level, but faster |
16:35:44 | * | Sentreen quit (Ping timeout: 246 seconds) |
16:35:55 | * | kalexm joined #nim |
16:40:27 | * | kalexm quit (Ping timeout: 260 seconds) |
16:42:31 | Tiberium | ah, maybe parseUntil |
16:44:04 | * | Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
16:48:59 | krux02 | thanks for the help with diminish |
16:49:00 | * | Sentreen joined #nim |
16:49:16 | krux02 | I also found out that projectile has it's own customization options for the mode line |
16:49:54 | krux02 | that allows to still include the project name in the mode line |
16:50:18 | * | kalexm joined #nim |
16:50:52 | krux02 | oh sorry wrong channel |
16:54:31 | * | kalexm quit (Ping timeout: 255 seconds) |
16:55:14 | * | yglukhov joined #nim |
16:59:30 | * | yglukhov quit (Ping timeout: 255 seconds) |
17:05:10 | * | Tiberium quit (Quit: Leaving) |
17:07:28 | Elronnd | how do I convert an int to a string? |
17:08:11 | * | haha_ quit (Quit: haha_) |
17:09:20 | * | yglukhov joined #nim |
17:09:37 | * | dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
17:09:44 | krux02 | Elrond |
17:09:45 | krux02 | $ |
17:10:06 | krux02 | let x = 123; let y = $x |
17:10:36 | * | mosORadi joined #nim |
17:11:50 | Elronnd | hmmm |
17:12:00 | Elronnd | what's the difference between $ and intToStr in strutils? |
17:16:41 | * | couven92 joined #nim |
17:17:47 | * | kalexm joined #nim |
17:19:32 | * | gokr quit (Ping timeout: 260 seconds) |
17:19:40 | * | mahmudov joined #nim |
17:23:01 | * | dankrad joined #nim |
17:24:08 | * | PMunch joined #nim |
17:25:16 | * | nsf quit (Quit: WeeChat 1.9) |
17:27:27 | * | Tiberium joined #nim |
17:29:14 | FromGitter | <TiberiumN> The resulting string will be minimally minchars characters long. This is achieved by adding leading zeros. |
17:30:27 | * | dankrad quit (Ping timeout: 240 seconds) |
17:31:01 | * | kalexm quit (Ping timeout: 276 seconds) |
17:31:26 | * | dankrad joined #nim |
17:46:51 | * | haha_ joined #nim |
17:50:19 | * | planhths quit (Ping timeout: 246 seconds) |
17:53:00 | * | ibutra quit (Read error: Connection reset by peer) |
17:57:00 | * | nhywyll joined #nim |
17:58:01 | * | mahmudov quit (Remote host closed the connection) |
18:01:32 | * | haha_ quit (Quit: haha_) |
18:02:06 | * | smt joined #nim |
18:05:12 | * | haha_ joined #nim |
18:15:19 | * | fredrik92 joined #nim |
18:17:00 | * | Arrrr quit (Ping timeout: 240 seconds) |
18:17:35 | * | couven92 quit (Ping timeout: 246 seconds) |
18:27:48 | * | gokr joined #nim |
18:29:10 | * | fredrik92 quit (Read error: Connection reset by peer) |
18:41:19 | Elronnd | wtf? I have a "var telldb: initTable[string, seq[Message]]()", and I'm getting complaints about "effbot.nim(19, 44) Error: type expected" |
18:41:27 | Elronnd | why is it expecting a type? I *gave* it a type!! |
18:46:02 | dom96 | Elronnd: pastebin effbot.nim |
18:46:09 | krux02 | what does "Error: system module needs 'nimGCunrefRC1'" mean? |
18:46:31 | krux02 | Elrond you should put = insetad of : |
18:46:42 | krux02 | : is for the type, but initTable is function call |
18:46:50 | Elronnd | right, thanks |
18:46:54 | dom96 | oh yeah, that |
18:48:10 | krux02 | dom96: have you anyo idea about that error? |
18:48:32 | dom96 | No, seems like a broken Nim installation |
18:49:39 | krux02 | I am on devel |
18:50:18 | dom96 | Maybe you need to `koch boot`? |
18:52:34 | * | couven92 joined #nim |
18:52:56 | * | Matthias247 joined #nim |
18:55:10 | krux02 | koch boot fails, too |
18:59:08 | dom96 | Try rebuilding from C sources I guess |
19:01:48 | krux02 | that is what I did now and it works |
19:01:53 | krux02 | thanks |
19:05:15 | * | yglukhov_ joined #nim |
19:06:25 | * | yglukhov quit (Ping timeout: 255 seconds) |
19:06:44 | krux02 | can the php backend be dropped |
19:07:08 | krux02 | I don't care about it, and the the support make pull requests hard |
19:09:07 | * | yglukhov joined #nim |
19:09:07 | * | yglukhov_ quit (Read error: Connection reset by peer) |
19:12:52 | FromGitter | <zacharycarter> wait there's a php backend? |
19:13:00 | krux02 | well yes |
19:13:14 | krux02 | don'k ask me why |
19:13:22 | * | FromGitter * zacharycarter had no idea |
19:13:27 | krux02 | there is C C++ javascript and php afaik |
19:13:34 | krux02 | objective C |
19:13:52 | krux02 | (c c++ objective-c is almost identical) |
19:14:36 | * | haha_ quit (Quit: haha_) |
19:14:47 | * | nsf joined #nim |
19:15:17 | FromGitter | <stisa> js+nodejs and php share most of the code too I think |
19:15:43 | * | yglukhov_ joined #nim |
19:16:31 | * | yglukho__ joined #nim |
19:16:31 | * | yglukhov_ quit (Read error: Connection reset by peer) |
19:16:34 | * | yglukhov quit (Read error: Connection reset by peer) |
19:21:23 | Elronnd | wait waht? PHP, wtf |
19:21:28 | Elronnd | Why do we even need it |
19:23:00 | federico3 | for unlucky people who need to use some php libraries? |
19:28:03 | Tiberium | php is broken |
19:28:10 | Tiberium | php backend is fully broken and it should be removed |
19:28:29 | Elronnd | federico3: then they can write in php |
19:29:04 | Tiberium | well php is broken, nothing is working with it :) |
19:29:22 | FromGitter | <zacharycarter> I can't decide whether to continue working on the project I started yesterday or not |
19:29:56 | * | mosORadi quit (Quit: Connection closed for inactivity) |
19:30:12 | FromGitter | <zacharycarter> mostly because I don't think it'd be useful |
19:30:22 | krux02 | well then don't continue it |
19:31:12 | FromGitter | <zacharycarter> I could be mistaken though :P |
19:32:05 | FromGitter | <zacharycarter> I think it's definitely more useful than the PHP backend :P |
19:34:03 | krux02 | well you can create a pull request that removel all traces of the PHP backend in the compiler |
19:34:04 | krux02 | yay |
19:34:46 | * | planhths joined #nim |
19:36:54 | FromGitter | <zacharycarter> I could... I have a feeling tracking them all down would be quite painful |
19:36:59 | FromGitter | <zacharycarter> unless they're easily identifiable |
19:43:54 | * | krux02 quit (Remote host closed the connection) |
19:45:52 | Elronnd | is there a way to get the last item of a sequence without doing list[len(list)] because that's redundant and a lot of typing? |
19:46:01 | Elronnd | I know pop() can do it, but i don't want to remove the item |
19:46:09 | Elronnd | can I do list[^1] like with slices? |
19:46:19 | Elronnd | can I do list[-1] like in python? |
19:46:32 | * | Trustable quit (Remote host closed the connection) |
19:46:50 | Tiberium | Elronnd, list[^1], yes :) |
19:47:30 | Elronnd | ok, cool |
19:51:21 | Elronnd | is it possible to break out of an if? |
19:52:29 | * | Enamex joined #nim |
20:04:36 | * | Enamex quit () |
20:06:23 | dom96 | return? |
20:07:39 | * | smt` joined #nim |
20:07:49 | Tiberium | you can put if into a block |
20:07:52 | Tiberium | and break out of the block |
20:07:53 | * | haha_ joined #nim |
20:09:01 | dom96 | or that but I can't imagine a use case where that would be appropriate. |
20:11:37 | * | smt quit (Ping timeout: 260 seconds) |
20:11:43 | * | Vladar quit (Quit: Leaving) |
20:23:20 | * | nsf quit (Quit: WeeChat 1.9) |
20:23:51 | * | sz0 quit (Quit: Connection closed for inactivity) |
20:28:12 | * | haha_ quit (Quit: haha_) |
20:34:30 | * | onionhammer quit (Ping timeout: 240 seconds) |
20:47:12 | FromGitter | <zacharycarter> @Araq given some karax code is it possible to render html? |
20:47:27 | FromGitter | <zacharycarter> is there like a toHTML that takes in some portion of the vdom and produces html? |
20:47:53 | * | planhths quit (Quit: Konversation terminated!) |
20:48:25 | * | ShalokShalom quit (Read error: Connection reset by peer) |
20:50:08 | * | ShalokShalom joined #nim |
20:50:36 | * | Jesin joined #nim |
20:58:48 | * | Jesin quit (Ping timeout: 240 seconds) |
20:58:55 | * | rauss quit (Quit: WeeChat 1.9) |
21:00:35 | * | nsf joined #nim |
21:03:52 | * | Tiberium quit (Remote host closed the connection) |
21:07:30 | * | mindB quit (Ping timeout: 240 seconds) |
21:07:40 | * | Jipok[m] quit (Ping timeout: 258 seconds) |
21:07:50 | * | Demos[m] quit (Ping timeout: 240 seconds) |
21:08:07 | * | dyce[m] quit (Ping timeout: 276 seconds) |
21:08:10 | * | hohlerde quit (Ping timeout: 264 seconds) |
21:08:10 | * | TheManiac quit (Ping timeout: 264 seconds) |
21:08:17 | * | ehmry quit (Ping timeout: 240 seconds) |
21:08:20 | * | MrAxilus[m] quit (Ping timeout: 255 seconds) |
21:10:36 | * | Tiberium joined #nim |
21:10:50 | * | Tiberium quit (Client Quit) |
21:11:36 | * | Tiberium joined #nim |
21:11:53 | * | jivank[m] quit (Ping timeout: 258 seconds) |
21:12:17 | * | Jesin joined #nim |
21:13:06 | * | sz0 joined #nim |
21:23:05 | * | Jesin quit (Ping timeout: 255 seconds) |
21:24:42 | * | Jesin joined #nim |
21:29:38 | * | onionhammer joined #nim |
21:30:47 | * | onionhammer quit (Client Quit) |
21:31:11 | * | onionhammer joined #nim |
21:39:57 | * | solitude quit (Ping timeout: 240 seconds) |
21:40:10 | * | Jipok[m] joined #nim |
21:42:49 | * | onionhammer quit (Quit: WeeChat 1.7) |
21:43:25 | * | Jesin quit (Ping timeout: 246 seconds) |
21:44:14 | * | Jesin joined #nim |
21:46:08 | * | MrAxilus[m] joined #nim |
21:46:08 | * | Demos[m] joined #nim |
21:46:09 | * | ehmry joined #nim |
21:46:09 | * | dyce[m] joined #nim |
21:46:15 | * | mindB joined #nim |
21:46:15 | * | jivank[m] joined #nim |
21:46:15 | * | TheManiac joined #nim |
21:46:15 | * | hohlerde joined #nim |
21:46:18 | * | onionhammer joined #nim |
21:47:21 | FromGitter | <zacharycarter> nevermind rethinking that question it doesn't make sense |
21:49:45 | * | rauss joined #nim |
21:52:08 | * | Jesin quit (Ping timeout: 240 seconds) |
21:53:41 | * | Jesin joined #nim |
21:54:30 | Elronnd | I just want to say, holy fuck is nim expressive. I just started using it a week or so ago, and I think I've written 5 comments in that time just because there's nothing to explain |
21:55:21 | dom96 | :D |
21:55:34 | dom96 | Elronnd: what language are you coming from? |
21:56:09 | Elronnd | lots of them |
21:56:22 | Elronnd | I shuttled around a lot of languages, looking for some I liked |
21:56:29 | Elronnd | Right now I like C, D, and nim |
22:01:00 | * | yglukho__ quit (Remote host closed the connection) |
22:05:52 | * | Jesin quit (Quit: Leaving) |
22:21:52 | * | nsf quit (Quit: WeeChat 1.9) |
22:22:52 | * | gokr quit (Ping timeout: 276 seconds) |
22:26:09 | * | PMunch quit (Quit: leaving) |
22:33:42 | * | endragor joined #nim |
22:38:00 | * | endragor quit (Ping timeout: 240 seconds) |
22:52:35 | * | nhywyll quit (Quit: nhywyll) |
23:06:40 | * | Kingsquee quit (Excess Flood) |
23:07:07 | * | Kingsquee joined #nim |
23:13:30 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:18:10 | * | Tiberium quit (Remote host closed the connection) |
23:20:55 | * | cspar joined #nim |
23:24:31 | TheManiac | Hi all... trying to get my head around osproc |
23:24:56 | TheManiac | I can work out how to run a process and send stdout and stderr to my stdout and stderr (use poParentStreams) |
23:25:40 | TheManiac | And I can work out how to get both stdout and stderr sent to something where I can read them both together (use poStdErrToStdOut) |
23:25:59 | TheManiac | But what if I want to read stdout and allow stderr to go to parent stderr? |
23:30:10 | Elronnd | "proc startscummed(log: XLog): bool = if log.score < 10 or log.turns < 10: true else: false" this gives me an error "Error: complex statement requires indentation". But how is that a complex statement? |
23:30:15 | Elronnd | and is there another way to write that? |
23:37:30 | * | dankrad quit (Ping timeout: 240 seconds) |
23:38:33 | * | Kingsqueee joined #nim |
23:39:31 | * | Kingsquee quit (Ping timeout: 255 seconds) |
23:45:06 | TheManiac | assume you know how to do it if extra whitespace is allowed? |
23:45:24 | TheManiac | and assume it compiles if you remove 'or log.turns < 10' ? |
23:45:41 | TheManiac | My guess is nim has a very generous definition of 'complex' :) |
23:51:20 | * | onionhammer quit (*.net *.split) |
23:51:20 | * | chemist69 quit (*.net *.split) |
23:51:21 | * | Xe quit (*.net *.split) |
23:51:21 | * | MonsterAbyss_ quit (*.net *.split) |
23:51:22 | * | acidx quit (*.net *.split) |
23:51:22 | * | abeaumont quit (*.net *.split) |
23:51:23 | * | derlafff quit (*.net *.split) |
23:51:23 | * | SunDwarf quit (*.net *.split) |
23:51:23 | * | byte512 quit (*.net *.split) |
23:51:24 | * | Ieuan quit (*.net *.split) |
23:51:24 | * | flyx quit (*.net *.split) |
23:51:24 | * | qwertfisch quit (*.net *.split) |
23:51:25 | * | ehmry quit (*.net *.split) |
23:51:25 | * | dyce[m] quit (*.net *.split) |
23:51:25 | * | gggs quit (*.net *.split) |
23:51:26 | * | smt` quit (*.net *.split) |
23:51:27 | * | Araq quit (*.net *.split) |
23:51:29 | * | niv quit (*.net *.split) |
23:51:29 | * | bozaloshtsh quit (*.net *.split) |
23:51:29 | * | pleiosaur quit (*.net *.split) |
23:51:29 | * | adamchainz quit (*.net *.split) |
23:51:30 | * | jonafato quit (*.net *.split) |
23:51:30 | * | MrAxilus[m] quit (*.net *.split) |
23:51:31 | * | mahtov quit (*.net *.split) |
23:51:31 | * | joshbaptiste quit (*.net *.split) |
23:51:34 | * | euantor quit (*.net *.split) |
23:51:36 | * | pydsigner quit (*.net *.split) |
23:51:36 | * | couven92 quit (*.net *.split) |
23:51:37 | * | Pisuke quit (*.net *.split) |
23:51:38 | * | Gertm quit (*.net *.split) |
23:51:39 | * | def- quit (*.net *.split) |
23:51:48 | * | yaiyan joined #nim |
23:52:12 | * | joshbaptiste joined #nim |
23:54:59 | * | jivank[m] quit (Ping timeout: 246 seconds) |
23:54:59 | * | TheManiac quit (Ping timeout: 246 seconds) |
23:55:15 | * | dyce[m] joined #nim |
23:55:15 | * | ehmry joined #nim |
23:55:15 | * | smt` joined #nim |
23:55:15 | * | Araq joined #nim |
23:55:15 | * | niv joined #nim |
23:55:15 | * | gggs joined #nim |
23:55:15 | * | adamchainz joined #nim |
23:55:15 | * | bozaloshtsh joined #nim |
23:55:15 | * | pleiosaur joined #nim |
23:55:15 | * | jonafato joined #nim |
23:55:22 | * | ehmry quit (Ping timeout: 240 seconds) |
23:55:25 | * | euantor joined #nim |
23:55:30 | * | dyce[m] quit (Ping timeout: 240 seconds) |
23:55:34 | * | mindB quit (Ping timeout: 264 seconds) |
23:55:41 | * | Demos[m] quit (Ping timeout: 246 seconds) |
23:55:43 | * | Jipok[m] quit (Ping timeout: 255 seconds) |
23:56:31 | * | onionhammer joined #nim |
23:56:31 | * | chemist69 joined #nim |
23:56:31 | * | MonsterAbyss_ joined #nim |
23:56:31 | * | acidx joined #nim |
23:56:31 | * | abeaumont joined #nim |
23:56:31 | * | derlafff joined #nim |
23:56:31 | * | SunDwarf joined #nim |
23:56:32 | * | hohlerde quit (Ping timeout: 255 seconds) |
23:56:34 | * | flyx joined #nim |
23:56:46 | * | qwertfisch joined #nim |
23:56:54 | * | couven92 joined #nim |
23:56:55 | * | Gertm joined #nim |
23:56:55 | * | Pisuke joined #nim |
23:56:55 | * | def- joined #nim |
23:57:20 | * | flyx quit (*.net *.split) |
23:57:23 | * | Pisuke quit (Max SendQ exceeded) |
23:57:25 | * | Xe joined #nim |
23:57:28 | * | gggs quit (*.net *.split) |
23:57:28 | * | smt` quit (*.net *.split) |
23:57:29 | * | Araq quit (*.net *.split) |
23:57:30 | * | niv quit (*.net *.split) |
23:57:31 | * | bozaloshtsh quit (*.net *.split) |
23:57:31 | * | pleiosaur quit (*.net *.split) |
23:57:31 | * | adamchainz quit (*.net *.split) |
23:57:31 | * | jonafato quit (*.net *.split) |
23:58:32 | * | m712 quit (Ping timeout: 260 seconds) |
23:58:52 | * | Pisuke joined #nim |
23:59:41 | * | smt` joined #nim |
23:59:41 | * | Araq joined #nim |
23:59:41 | * | niv joined #nim |
23:59:41 | * | gggs joined #nim |
23:59:41 | * | adamchainz joined #nim |
23:59:41 | * | bozaloshtsh joined #nim |
23:59:41 | * | pleiosaur joined #nim |
23:59:41 | * | jonafato joined #nim |