00:00:13 | * | tk quit (Quit: Well, this is unexpected.) |
00:00:37 | * | tk joined #nim |
00:19:00 | FromDiscord | <tandy> can you compile a nim project for windows on a linux machine without a vm? |
00:19:12 | FromDiscord | <Elegantbeef> get mingw and possibly |
00:19:24 | FromDiscord | <Elegantbeef> pass `-d:mingw` and let 'er rip |
00:22:07 | FromDiscord | <tandy> oo leme see what the fedora package is |
00:26:43 | FromDiscord | <tandy> nice that seemed to make an exe |
00:26:48 | FromDiscord | <tandy> hopefuly it works lol |
00:28:16 | FromDiscord | <Elegantbeef> Doing more than the Rust game devs did for the linux build |
00:31:46 | FromDiscord | <tandy> lol |
00:39:53 | FromDiscord | <OceanMongrel> This might be a stupid question, but is there a way to write functions in swift, which can be used by min? Is there any way the two languages can interact resulting in a single executable? |
00:40:07 | FromDiscord | <Elegantbeef> Min or Nim? |
00:40:15 | FromDiscord | <OceanMongrel> sorry, nim |
00:40:30 | FromDiscord | <Elegantbeef> Min is a language made with Nim so it wasnt a joke π |
00:41:53 | FromDiscord | <Elegantbeef> Well you can write libraries using either then connect them using dynamic library mechanicism much like if you wrote the code in C |
00:42:27 | FromDiscord | <retkid> anyway to use curly braces in nim? |
00:42:37 | FromDiscord | <Elegantbeef> That'd probably require writing some tooling to make it easier to access code from Nim and Swift |
00:42:48 | FromDiscord | <Elegantbeef> Yea for sets π |
00:43:00 | FromDiscord | <Elegantbeef> Otherwise no you need to customize your editor or preprocess the file |
00:43:15 | FromDiscord | <Elegantbeef> https://github.com/treeform/genny for a reference of the type of thing you'd probably want ocean |
00:43:27 | FromDiscord | <retkid> god damn treeform is everwhere |
00:43:32 | FromDiscord | <retkid> such a talented mofo |
00:43:59 | FromDiscord | <OceanMongrel> Thanks! I'll look into it |
00:44:05 | FromDiscord | <Elegantbeef> Now to down play him but he's afterall a dev that uses Nim full time so kinda the expected |
00:44:10 | FromDiscord | <Elegantbeef> not to\ |
03:02:11 | * | neurocyte0132889 quit (Ping timeout: 264 seconds) |
03:10:17 | * | arkurious quit (Quit: Leaving) |
03:12:07 | * | vicecea quit (Remote host closed the connection) |
03:12:38 | * | vicecea joined #nim |
03:19:58 | FromDiscord | <joe733> Hi, what would be the Nim equivalent of `[False] 3` which gives `[False, False, False]` in Python? |
03:22:14 | FromDiscord | <Elegantbeef> you can do `import std/sequtils; newSeqWith[bool](3, true)` or given false is default for bool `newSeq[bool](3)` |
03:22:16 | FromDiscord | <huantian> I think it would be `newSeqWith` from sequtils |
03:22:21 | FromDiscord | <huantian> sniped |
03:22:22 | FromDiscord | <Elegantbeef> Assuming you want a seq |
03:22:51 | FromDiscord | <Elegantbeef> If you want an array there are no builtin shortcuts |
03:23:38 | FromDiscord | <Elegantbeef> Although again `var a: array[3, bool]` would give false |
03:29:24 | FromDiscord | <joe733> Thanks! |
03:30:08 | FromDiscord | <Elegantbeef> No problem |
03:44:27 | FromDiscord | <demotomohiro> !eval echo default(array[3, bool]) |
03:44:29 | NimBot | [false, false, false] |
03:58:34 | FromDiscord | <impbox [ftsf]> if you want truth you're less lucky |
03:58:52 | FromDiscord | <impbox [ftsf]> but lies are free! |
04:06:01 | * | supakeen quit (Quit: WeeChat 3.3) |
04:06:31 | * | supakeen joined #nim |
04:43:28 | FromDiscord | <evoalg> if it's a seq, then I could import sequtils and do `@[true].cycle(3)` if I wanted the truth ... it's kind of the equivalent of python's `[True] 3` |
04:57:22 | FromDiscord | <Rika> repeat represents the intent better |
04:59:15 | FromDiscord | <evoalg> 'true.repeat(3)' you're right! |
05:00:28 | FromDiscord | <Rika> cycle is for repeating seqs into a flattened seq |
05:00:51 | FromDiscord | <Rika> so @[1, 2, 3].cycle(3) => @[1,2,3,1,2,3,1,2,3] |
05:04:43 | * | rockcavera quit (Remote host closed the connection) |
05:05:27 | FromDiscord | <evoalg> I'm still impressed that collect can replicate almost every proc in sequtils ... collect is so powerful |
05:05:32 | FromDiscord | <Rika> it is |
05:05:50 | FromDiscord | <Rika> less stupid to read as well compared to list comprehensiosn |
05:06:27 | FromDiscord | <evoalg> absolutely ... it may sound strange but collect is one of the best things about nim for me |
05:07:36 | FromDiscord | <Rika> anything with two or more nested loops should not be a comprehension but so many people do it anyway so π |
05:10:45 | FromDiscord | <evoalg> I've done it many times, and it's so unreadable. In python with the for loops and the if's at the end, and then the "if else" being hacked into the syntax later, but it has be before the for loops, then nested LC's it quickly becomes so unreadable |
05:13:04 | FromDiscord | <evoalg> whoever came up with collect, thank you |
05:19:19 | FromDiscord | <Elegantbeef> Yea collect is the more readable and proper left to right top to bottom evaluation |
05:27:29 | FromDiscord | <evoalg> I'm trying to echo a 2D seq so it prints one "row" per line, and I can do that in a loop, but in python I would use pprint as it's quick ... I tried "print" but that's not what I want, should I just stick to the for loop? |
05:29:14 | FromDiscord | <Elegantbeef> You could do that or make your own `$` or `rowPrint` which either gives you a string or prints it for you |
05:29:25 | FromDiscord | <Elegantbeef> But yea pretty much the best way to do it is loop π |
05:31:12 | FromDiscord | <evoalg> loop is fine, thank you! |
05:54:12 | * | robertmeta quit (*.net *.split) |
05:54:13 | * | Onionhammer quit (*.net *.split) |
05:54:13 | * | crem quit (*.net *.split) |
05:54:13 | * | mjsir911 quit (*.net *.split) |
05:54:29 | * | robertmeta joined #nim |
05:54:30 | * | crem joined #nim |
05:54:31 | * | Onionhammer joined #nim |
05:54:31 | * | mjsir911 joined #nim |
05:54:42 | * | mjsir911 quit (Changing host) |
05:54:42 | * | mjsir911 joined #nim |
06:02:51 | * | skrzyp quit (*.net *.split) |
06:03:12 | * | skrzyp joined #nim |
06:50:04 | FromDiscord | <evoalg> actually as the 2D seq grows larger, print automatically puts it in a nice format if it would otherwise hit the end of the terminal window, whereas echo just wraps, so I'm quite happy with "print" |
06:59:51 | FromDiscord | <treeform> In reply to @evoalg "I'm trying to echo": I am not sure what "print" you are talking about but I have my "print" that works kind of like pretty print from python: https://github.com/treeform/print |
07:00:23 | FromDiscord | <evoalg> yep I'm using yours ... I nimble installed it ... thank you for that print! |
07:01:01 | FromDiscord | <treeform> cool, thank you for using it |
07:01:59 | FromDiscord | <treeform> I should document it but I recently added printTable which might work even better for priting seqs. |
07:02:23 | FromDiscord | <evoalg> ooooo sounds nice |
07:02:55 | FromDiscord | <treeform> https://media.discordapp.net/attachments/371759389889003532/904626538861973524/unknown.png |
07:03:35 | FromDiscord | <Rika> Nice |
07:04:04 | FromDiscord | <treeform> instead of: https://media.discordapp.net/attachments/371759389889003532/904626828524793887/unknown.png |
07:04:50 | FromDiscord | <evoalg> I'm not sure it likes my seq[seq[char]] though |
07:05:03 | FromDiscord | <treeform> yeah probably not π |
07:05:03 | FromDiscord | <evoalg> it's mean for tables right? |
07:05:10 | FromDiscord | <evoalg> okay |
07:05:21 | FromDiscord | <treeform> its mean for seq of objects |
07:05:36 | FromDiscord | <treeform> for seq[seq[char]] you want some sort of grid almost |
07:05:36 | FromDiscord | <evoalg> ahh yep ... makes sense |
07:05:55 | FromDiscord | <evoalg> print seems to suit really nicely |
07:05:57 | FromDiscord | <evoalg> for it |
07:06:01 | FromDiscord | <treeform> ok cool |
07:06:37 | FromDiscord | <evoalg> and colors just work, very cool |
07:11:08 | FromDiscord | <treeform> nice |
07:18:10 | FromDiscord | <evoalg> That dark blue that print prints is hard to read on my dark terminal, but maybe that's my terminal color scheme |
07:18:42 | FromDiscord | <treeform> I am sure you can play around with your settings. I am just using the 8 primary terminal colors. |
07:19:01 | FromDiscord | <evoalg> sound good! |
07:23:56 | FromDiscord | <evoalg> sorted! |
08:27:23 | * | kayabaNerve quit (Remote host closed the connection) |
08:27:41 | * | kayabaNerve joined #nim |
08:31:46 | * | Vladar joined #nim |
08:35:09 | * | kayabaNerve quit (Remote host closed the connection) |
08:35:44 | * | kayabaNerve joined #nim |
08:36:49 | * | kayabaNerve quit (Remote host closed the connection) |
08:37:09 | * | kayabaNerve joined #nim |
08:39:11 | * | kayabaNerve quit (Remote host closed the connection) |
08:41:27 | * | PMunch joined #nim |
10:04:17 | PMunch | This post raises an interesting question. With default Table initialisation maybe it makes sense to have something like this in the official tables module? https://forum.nim-lang.org/t/8568#55665 |
10:30:49 | FromDiscord | <Rika> https://www.lightbluetouchpaper.org/2021/11/01/trojan-source-invisible-vulnerabilities/ |
10:35:08 | FromDiscord | <Rika> Vulnerability that affects essentially all programming languages as it is based on the source and its rendering and not the code |
10:36:43 | supakeen | A story as old as escape sequences in the shell. |
10:36:51 | supakeen | But good to renew exposure into it. |
10:36:51 | FromDiscord | <enthus1ast> bak in the days we've used this / or similar tricks in filenames |
10:37:09 | supakeen | It was always one of the main things for filenames and/or all those curl ... | sh things that they might contains escapes. |
10:39:03 | NimEventer | New thread by Lachu: [Imageman][nimgl] Loading texture, see https://forum.nim-lang.org/t/8571 |
11:14:55 | PMunch | Huh, I've seen this for use in phishing attempts to create domains that look similar to the real domain but actually contains homoglyphs |
11:15:05 | PMunch | But interesting to see it be used for code |
11:17:12 | PMunch | Maybe we should set up our editors to use semantic highlighting and pick different colours for different variables |
12:06:02 | * | supakeen quit (Quit: WeeChat 3.3) |
12:06:32 | * | supakeen joined #nim |
12:07:30 | NimEventer | New thread by Monyarm: Is there any way to check if a type is distinct?, see https://forum.nim-lang.org/t/8572 |
12:23:32 | NimEventer | New thread by Gyohng: Is there a multithreaded HTTP library?, see https://forum.nim-lang.org/t/8573 |
12:28:14 | madprops | when using `pairs` required to get index,value ? |
12:28:24 | madprops | when is* |
12:30:41 | FromDiscord | <haxscramper> it is required when you need to get index and value? Or you mean when it has to be called explicitly? |
12:31:03 | FromDiscord | <haxscramper> usually you don't need to call it explicitly, but sometimes I do for the sake of explicitness |
12:31:19 | madprops | yeah I meant explicitly |
12:32:06 | FromDiscord | <enthus1ast> i just flawlessly interopted with nim from a Lazarus gui, nice |
12:32:18 | FromDiscord | <Rika> you can call it explicitly with a single var for loop to have a tuple instead in that var |
12:32:26 | FromDiscord | <Rika> `for tpl in a.pairs():` |
12:32:27 | FromDiscord | <Rika> or so |
12:33:33 | NimEventer | New thread by Gyohng: This forum preview JS error, see https://forum.nim-lang.org/t/8574 |
12:34:32 | FromDiscord | <enthus1ast> maybe this will be my new "secret weapon" for ultra fast guis |
12:35:14 | FromDiscord | <enthus1ast> ultra fast in the sence of clicking them together, build the most heavy lifting logic in nim then ship |
12:35:50 | FromDiscord | <Rika> what is lazarus |
12:36:18 | FromDiscord | <enthus1ast> a Ide for freepascal like Delphi (but actually cross platform\: Win, Mac, Linux) |
12:36:44 | FromDiscord | <enthus1ast> i know pascal is not sexy \:) |
12:37:00 | FromDiscord | <enthus1ast> but actually nim shares a lot of its ideas with pascal |
12:37:17 | FromDiscord | <enthus1ast> the first compiler was build in pascal by araq iirc |
12:41:40 | FromDiscord | <enthus1ast> maybe not `ideas`, but it looks more like nim than eg c |
12:42:22 | FromDiscord | <enthus1ast> looks familiar right? |
12:42:22 | FromDiscord | <enthus1ast> sent a code paste, see https://play.nim-lang.org/#ix=3DAO |
12:48:58 | FromDiscord | <Rika> i know that nim shares a lot with pascal, i just didnt know what lazarus was |
12:49:35 | NimEventer | New thread by Gyohng: Query nim include paths, see https://forum.nim-lang.org/t/8575 |
12:49:39 | FromDiscord | <enthus1ast> tl;dr an ide and (mostly gui) class library |
12:49:45 | FromDiscord | <enthus1ast> for freepascal |
12:49:49 | FromDiscord | <Rika> cool |
12:51:00 | FromDiscord | <Yardanico> In reply to @enthus1ast "tl;dr an": there are libs that wrap lcl in different languages, for example one in go - https://github.com/ying32/govcl |
12:51:37 | FromDiscord | <Yardanico> he also made https://github.com/ying32/nim-vcl but it's archived |
12:51:53 | FromDiscord | <Yardanico> @enthus1ast you might be interested in this one anyway ^ |
12:52:10 | FromDiscord | <enthus1ast> yes, thank you |
12:52:42 | FromDiscord | <Yardanico> 1.5mb source files though :DD |
12:52:55 | FromDiscord | <enthus1ast> currently if i need crossplatform gui i use python/tk ... bundled with pyinstallert |
12:53:15 | FromDiscord | <enthus1ast> and i hate it every time i do it \: ) |
12:59:59 | * | kayabaNerve joined #nim |
13:02:11 | * | kayabaNerve_ joined #nim |
13:04:54 | * | kayabaNerve quit (Ping timeout: 260 seconds) |
13:05:18 | * | kayabaNerve_ is now known as kayabaNerve |
13:06:24 | * | Vladar quit (Remote host closed the connection) |
13:15:01 | * | krux02 quit (Remote host closed the connection) |
13:24:31 | FromDiscord | <cabboose> sup party people |
13:25:35 | * | arkurious joined #nim |
13:25:46 | FromDiscord | <Rika> learning nixos to set up some (nim) web services + gitea+ci for such services |
13:25:51 | FromDiscord | <Rika> you |
13:26:03 | FromDiscord | <Rika> (edit) "learning" => "(re)learning" |
13:26:14 | FromDiscord | <cabboose> Considering whether to watch DUNE or not |
13:26:22 | FromDiscord | <cabboose> so, not as productive |
13:26:39 | FromDiscord | <Rika> oh dude you dont want to try to be "as productive" as me |
13:26:48 | FromDiscord | <Rika> ive been going on this journey nonstop for weeks now |
13:26:57 | FromDiscord | <Rika> im prolly burnt out but im obsessed with getting this working |
13:27:29 | FromDiscord | <cabboose> Oh yeah I'm already burnt out. I've literally been told by a health professional to play games and "have fun" |
13:27:40 | FromDiscord | <cabboose> and that obsession |
13:27:43 | FromDiscord | <cabboose> thats the one that does it |
13:27:45 | FromDiscord | <cabboose> save yourself rika |
13:27:45 | FromDiscord | <Rika> i dread working on it but i keep on searching info about how to do it in my spare time, idfk why the fuck i do that |
13:27:47 | FromDiscord | <cabboose> while you still can |
13:27:53 | FromDiscord | <IsaacPaul> my fun is programming |
13:27:55 | FromDiscord | <IsaacPaul> xD |
13:27:59 | FromDiscord | <Rika> NO |
13:28:00 | FromDiscord | <Rika> DONT SAY THAT |
13:28:05 | FromDiscord | <cabboose> It's fun until its not fun |
13:28:12 | FromDiscord | <Rika> THATS LITERALLY WHY IVE BEEN WORKING ON THIS FOR SO LONG |
13:28:22 | FromDiscord | <IsaacPaul> that and going to breweries |
13:28:46 | FromDiscord | <cabboose> Programming is my fun too; the issue is nothing is fun anymore |
13:28:46 | FromDiscord | <Rika> are all programmers alcohol abusers because i feel like im not a programmer until i do so |
13:29:09 | FromDiscord | <cabboose> In reply to @Rika "are all programmers alcohol": if the people I talk to are anything to go by it seems like you have to abuse something |
13:29:14 | FromDiscord | <cabboose> like beef abuses himself |
13:29:19 | FromDiscord | <IsaacPaul> I used to, I've cut back. I feel not as 'sharp' anymore and I don't want it to effect my programming |
13:29:21 | FromDiscord | <cabboose> so it doesnt have to be alcohol? I guess? |
13:29:22 | FromDiscord | <Rika> i guess i am already there |
13:30:06 | PMunch | @cabboose, can highly recommend Dune |
13:30:10 | FromDiscord | <Rika> In reply to @IsaacPaul "I used to, I've": basically we (read: i) need to learn about what makes us (read: me) obsess over stuff like this |
13:30:16 | FromDiscord | <cabboose> alright im starting it |
13:30:18 | FromDiscord | <cabboose> cheers cobba |
13:30:47 | FromDiscord | <cabboose> In reply to @Rika "basically we (read: i)": If you want to answer some questions with me I can do a screening on that |
13:30:58 | FromDiscord | <Rika> wdym |
13:31:03 | FromDiscord | <IsaacPaul> It's the effort -> reward process imo |
13:31:05 | FromDiscord | <Rika> me no english native me no understand |
13:31:29 | FromDiscord | <cabboose> You know a psychology questionnaire that helps to show how someones brain works |
13:31:32 | FromDiscord | <Rika> what questions? screen what? |
13:31:33 | FromDiscord | <Rika> oh |
13:31:45 | FromDiscord | <Rika> yeah i havent taken any of those in my life i believe |
13:31:53 | FromDiscord | <cabboose> Not many people have hahaha |
13:37:05 | FromDiscord | <Steffen> Hello peoples |
13:37:21 | FromDiscord | <Steffen> Suppose Im trying to get C library working via FFI |
13:37:38 | FromDiscord | <Steffen> I have a function now that returns NULL on error |
13:37:43 | FromDiscord | <Steffen> How would I check for that? |
13:39:45 | FromDiscord | <Rika> NULL and nil are the same afaik? |
13:40:55 | FromDiscord | <Steffen> that would be nice |
13:41:45 | FromDiscord | <IsaacPaul> they're different in obj-c , not sure about nim. β΅I'm assuming you're getting a zeroed pointer back so whatever return value that is a pointer should work.. |
13:42:44 | FromDiscord | <Steffen> mhh |
13:43:29 | FromDiscord | <IsaacPaul> I can test and see |
13:44:00 | FromDiscord | <haxscramper> `let returnValue = function()` followed by `isNil(returnValue)`β΅(@Steffen) |
13:44:17 | FromDiscord | <haxscramper> there is no such thing as NULL in C, it is just a macro that expands to 0 or something along those lines |
13:44:25 | FromDiscord | <haxscramper> so you just get null pointer |
13:44:29 | FromDiscord | <hips> I like a beer on Friday night, that's about it π
|
13:45:24 | FromDiscord | <Steffen> yeah, null pointer |
13:46:36 | FromDiscord | <Steffen> trying to get ldap working |
13:46:45 | FromDiscord | <Steffen> "If an error occurs, ldap_open() and ldap_init() will return NULL and errno should be set appropriately. " |
13:46:52 | FromDiscord | <Steffen> https://www.openldap.org/software/man.cgi?query=ldap_initialize&apropos=0&sektion=3&manpath=OpenLDAP+2.5-Release&arch=default&format=html |
13:47:13 | FromDiscord | <Steffen> Been a few years since I messed with C. But looks doable |
13:47:47 | FromDiscord | <dom96> basically the only time I drink alcohol is at FOSDEM, but I think we should discuss such things in #offtopic |
13:48:42 | FromDiscord | <Rika> how do people wrap errno stuff in C? |
13:51:39 | FromDiscord | <IsaacPaul> sent a code paste, see https://play.nim-lang.org/#ix=3DBc |
13:51:47 | FromDiscord | <IsaacPaul> (edit) "https://play.nim-lang.org/#ix=3DBc" => "https://play.nim-lang.org/#ix=3DBd" |
13:52:43 | FromDiscord | <IsaacPaul> In reply to @Rika "how do people wrap": Good question π |
13:53:44 | FromDiscord | <IsaacPaul> sent a code paste, see https://play.nim-lang.org/#ix=3DBe |
13:54:29 | FromDiscord | <IsaacPaul> disregard the attribute stuff, but idk if that will break things.. :S |
13:57:45 | FromDiscord | <Steffen> mhh, Im getting a not null back |
13:59:20 | PMunch | @Rika, depends on what you mean by wrap |
13:59:38 | FromDiscord | <Rika> translate the interface for nim |
14:00:59 | PMunch | I guess the "proper" way would be to have an exception type like CError which has an errno field and then have wrappers like `errno = 0; <actual call>; if errno != 0: raise CError(errno: errno, msg: <call to convert errno to string>)` |
14:05:23 | FromDiscord | <Steffen> oh wow |
14:05:29 | FromDiscord | <Steffen> looks like its working |
14:05:44 | NimEventer | New thread by Benob: Nim's version of the Trojan Source vulnerability, see https://forum.nim-lang.org/t/8576 |
14:12:03 | FromDiscord | <Steffen> I hate ldap |
14:13:49 | FromDiscord | <IsaacPaul> In reply to @IsaacPaul "On a import c": Nevermind, found some example code on github π β΅https://github.com/numforge/laser/blob/master/laser/simd.nim#L21β΅Really loving the built in vscode in github (via `.` ) |
14:24:16 | FromDiscord | <Steffen> How can I set a pointer to an int? |
14:24:19 | FromDiscord | <Steffen> first type mismatch at position: 3β΅ required type for invalue: ptr cintβ΅ but expression '"3"' is of type: string |
14:25:51 | FromDiscord | <Yardanico> well, it seems like you're passing a string where the proc expects a pointer to an int. Can you show the proc definition and tell where the actual function comes from? |
14:25:57 | FromDiscord | <enthus1ast> pardon |
14:25:58 | FromDiscord | <enthus1ast> var ii\: cint |
14:26:02 | FromDiscord | <enthus1ast> sent a code paste, see https://play.nim-lang.org/#ix=3DBy |
14:26:27 | FromDiscord | <Yardanico> sent a code paste, see https://play.nim-lang.org/#ix=3DBz |
14:26:35 | FromDiscord | <Yardanico> (edit) "https://play.nim-lang.org/#ix=3DBz" => "https://play.nim-lang.org/#ix=3DBA" |
14:26:58 | FromDiscord | <Steffen> https://www.openldap.org/software/man.cgi?query=ldap_set_option&apropos=0&sektion=3&manpath=OpenLDAP+2.6-Release&arch=default&format=html |
14:27:05 | FromDiscord | <Steffen> proc ldap_set_option(ld: ptr LDAP; option: cint; invalue: ptr cint): cint |
14:28:02 | FromDiscord | <Yardanico> oh, then the proc definition is wrong |
14:28:11 | FromDiscord | <Yardanico> it should just be `invalue: pointer` |
14:28:15 | FromDiscord | <Steffen> yes and no |
14:28:24 | FromDiscord | <Yardanico> ? |
14:28:49 | FromDiscord | <Steffen> Depends on Option |
14:28:50 | FromDiscord | <Steffen> LDAP_OPT_PROTOCOL_VERSIONβ΅ Sets/gets the protocol version. outvalue and invalue must beβ΅ int . |
14:29:22 | FromDiscord | <Yardanico> yes, but again, your proc shouldn't make assumptions of specific argument types, they say it's `void` so you should use `pointer` |
14:29:29 | FromDiscord | <Yardanico> and of course you'll be able to pass `ptr cint` to it |
14:29:36 | FromDiscord | <Yardanico> because `ptr cint` is compatible with `pointer` |
14:30:24 | FromDiscord | <Yardanico> sent a code paste, see https://play.nim-lang.org/#ix=3DBB |
14:31:09 | FromDiscord | <Steffen> yeah, thank you. that compoled |
14:31:12 | FromDiscord | <Steffen> compiled too |
14:34:27 | FromDiscord | <Steffen> root@fd1b95a338cc:/ssh-ldap# ./ffiβ΅Not nullβ΅0β΅Success |
14:34:32 | FromDiscord | <Steffen> I like success |
14:35:10 | FromDiscord | <Rika> who doesnt |
14:37:40 | FromDiscord | <tandy> i just saw nimskull |
14:37:49 | FromDiscord | <Rika> π |
14:37:50 | FromDiscord | <tandy> thought it might be from [haxscramper](https://matrix.to/#/@haxscramper:matrix.org) |
14:38:10 | FromDiscord | <Yardanico> it's from saem |
14:38:14 | FromDiscord | <Yardanico> and othjers |
14:38:19 | FromDiscord | <Yardanico> (edit) "othjers" => "others" |
14:38:20 | FromDiscord | <haxscramper> it's from multiple people |
14:38:27 | FromDiscord | <Yardanico> exactly |
14:38:51 | * | neurocyte0132889 joined #nim |
14:38:51 | * | neurocyte0132889 quit (Changing host) |
14:38:51 | * | neurocyte0132889 joined #nim |
14:40:25 | FromDiscord | <haxscramper> how do you like roadmap on the readme btw? |
14:41:26 | FromDiscord | <Arend | ααα’α±ααα> I have a suggestion for the roadmap π |
14:41:54 | FromDiscord | <Rika> lets hear it |
14:43:34 | FromDiscord | <tandy> \:\>) very nice |
14:44:10 | FromDiscord | <xflywind> In reply to @haxscramper "how do you like": So eventually `nim-works/cps` will abandon Nim? |
14:44:45 | FromDiscord | <Rika> probably not? |
14:45:01 | FromDiscord | <haxscramper> define "abandon" |
14:45:32 | FromDiscord | <haxscramper> we don't want to keep ten years work of backwards compat hacks, barely working impls for two concepts, shit like coreReordering and so on |
14:45:56 | FromDiscord | <haxscramper> at the same time breaking for the sake of breaking is not a goal either |
14:46:22 | FromDiscord | <haxscramper> right now we want working compiler |
14:46:58 | * | neurocyte0132889 quit (Read error: Connection reset by peer) |
14:47:06 | FromDiscord | <Rika> i think they mean you'll abandon cps on nim in favor of maintaining cps for skull |
14:50:27 | FromDiscord | <haxscramper> and one that can be easily contributed to |
14:50:30 | FromDiscord | <haxscramper> and language specification |
14:50:44 | FromDiscord | <xflywind> In reply to @Rika "i think they mean": yeah, it's painful to maintain two incompatible compiler |
14:50:52 | FromDiscord | <xflywind> (edit) "compiler" => "compilers" |
14:51:08 | FromDiscord | <Yardanico> you mean to maintain a library for two compilers |
14:51:17 | FromDiscord | <haxscramper> cps is a main reason of "we want working compiler" |
14:52:14 | FromDiscord | <xflywind> I see |
14:52:41 | * | neurocyte0132889 joined #nim |
14:52:41 | * | neurocyte0132889 quit (Changing host) |
14:52:41 | * | neurocyte0132889 joined #nim |
14:52:45 | FromDiscord | <haxscramper> well, if you want to know my personal opinion on that one |
14:52:49 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
14:53:15 | FromDiscord | <haxscramper> I would prefer to put my effort into project where I know what are goals and plans are |
14:53:33 | FromDiscord | <haxscramper> But I don't personally want to rewrite all my code either |
14:54:01 | * | Lord_Nightmare joined #nim |
14:54:21 | FromDiscord | <haxscramper> You can see it as nim 2.0 if you want |
14:55:49 | NimEventer | New thread by IvanS: Fidget questions - 1) scrolling - 2) closing window, see https://forum.nim-lang.org/t/8577 |
14:56:44 | * | PMunch quit (Quit: Leaving) |
15:05:49 | FromDiscord | <tandy> how far apart will nim and nimskull be? i see you have bors for getting commits from the nim repo but i guess it will be hard to tell whether araq etc will keep going or join the nimskull effort? |
15:11:31 | * | neurocyte0132889 quit (Ping timeout: 268 seconds) |
15:12:02 | * | neurocyte0132889 joined #nim |
15:12:02 | * | neurocyte0132889 quit (Changing host) |
15:12:02 | * | neurocyte0132889 joined #nim |
15:27:49 | FromDiscord | <leorize> what does bors have to do with getting commits from nim repo? \:p |
15:32:03 | FromDiscord | <leorize> anyway, I wouldn't expect nimskull to deviate too far from nim |
15:33:52 | FromDiscord | <leorize> for most meaningful purposes, as far as I can tell, because Nim's ecosystem is something that nimskull will have to play nice with |
15:34:04 | FromDiscord | <Rika> what is bors? |
15:34:14 | FromDiscord | <enthus1ast> the mergebot? |
15:34:39 | FromDiscord | <enthus1ast> (had to google it myself) |
15:34:56 | FromDiscord | <enthus1ast> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/904755219416637440): the mergebot maybe? |
15:35:08 | FromDiscord | <dom96> didn't know bors supported non-rs repos |
15:35:20 | FromDiscord | <leorize> it's not rocket science (literally \:p)\: https://graydon.livejournal.com/186550.html |
15:35:23 | FromDiscord | <dom96> I guess it's pretty configurable to run whatever you want |
15:35:56 | FromDiscord | <leorize> bors doesn't really care what repo you're using, it just waits on CI result |
15:36:33 | FromDiscord | <leorize> you can read the linked article to see the problem it solves |
15:37:24 | FromDiscord | <tandy> oh i thought bors was one of those bots that grabs commits from another repo mb |
15:38:45 | FromDiscord | <Rika> no thats called git pull xd |
15:40:09 | NimEventer | New Nimble package! tecs - Simple ECS implementation for Nim, see https://github.com/Timofffee/tecs.nim |
15:40:55 | FromDiscord | <tandy> @Rika) |
15:41:05 | FromDiscord | <tandy> \_\>\:() |
15:41:08 | FromDiscord | <tandy> lol |
15:41:27 | FromDiscord | <Rika> what |
15:46:12 | FromDiscord | <leorize> I'm pretty sure that cps the library will continue to target Nimβ΅(@xflywind) |
15:50:58 | FromDiscord | <xflywind> Interesting; I see |
16:00:00 | NimEventer | New thread by Archnim: Nim interpreter, see https://forum.nim-lang.org/t/8578 |
16:03:56 | FromDiscord | <Yardanico> uh |
16:04:33 | * | neurocyte0132889 quit (Ping timeout: 268 seconds) |
16:08:24 | * | neurocyte0132889 joined #nim |
16:08:24 | * | neurocyte0132889 quit (Changing host) |
16:08:24 | * | neurocyte0132889 joined #nim |
16:19:18 | FromDiscord | <Rika> Lol |
16:22:55 | * | arkanoid joined #nim |
16:23:18 | arkanoid | hello! playing around with arraymancer for the first time. Do you know how to test if an element is contained in a tensor? |
16:23:52 | arkanoid | like "7 in [0,1,2,3,4,5,6,7].toTensor" => true |
16:33:14 | FromDiscord | <Rika> does that not work directly? |
16:34:01 | arkanoid | no |
16:34:30 | arkanoid | Rika: I have to 7 in myTensor.toSeq |
16:36:01 | FromDiscord | <Rika> seems like the proc doesnt exist indeed |
16:36:46 | arkanoid | I'm a champion in finding missing features on first use |
16:56:06 | * | neurocyte0132889 quit (Read error: Connection reset by peer) |
16:56:37 | * | neurocyte0132889 joined #nim |
16:56:37 | * | neurocyte0132889 quit (Changing host) |
16:56:37 | * | neurocyte0132889 joined #nim |
17:14:12 | * | rockcavera joined #nim |
17:14:12 | * | rockcavera quit (Changing host) |
17:14:12 | * | rockcavera joined #nim |
17:30:59 | FromDiscord | <geekrelief> In my nimble file, I'm trying to get the value of a `--cc` flag from `nim.cfg` using `get("cc")` https://nim-lang.org/docs/nimscript.html#get%2Cstring but it's returning empty. Any clue what I'm doing wrong? |
17:37:20 | * | rockcavera quit (Remote host closed the connection) |
17:45:06 | FromDiscord | <dom96> Nimble doesn't read nim.cfg |
17:45:53 | FromDiscord | <geekrelief> ok yeah, I guess I need to create a work around. I'm kind of confused. Is Nimble meant to be used as a build system? |
17:46:33 | FromDiscord | <geekrelief> I mean it kind of works, but it's a little awkward for me. Or maybe I just don't "get" it yet. |
17:51:25 | FromDiscord | <IsaacPaul> Still a good question.. how to know what compiler you're using inside of a cfg file. |
17:51:49 | FromDiscord | <IsaacPaul> (edit) "Still a good question.. how to know what compiler ... you're" added "(clang / gcc)" |
17:58:40 | FromDiscord | <IsaacPaul> Maybe just avoid the command flag --cc and use cc=clang inside if you config file.. I have a feeling the compiler flags are meant to override the configuration. |
17:58:55 | FromDiscord | <IsaacPaul> but idk |
18:02:44 | FromDiscord | <geekrelief> I'm sidestepping the issue for now. Using .cfg vs .nims has always been awkward for me. I thought with a new project I'd try using nimble as a build system, but maybe that's not its intent and I should look at nake? |
18:04:59 | FromDiscord | <Solitude> .cfg/nims are orthogonal to nimble |
18:06:52 | FromDiscord | <IsaacPaul> sent a code paste, see https://play.nim-lang.org/#ix=3DD3 |
18:08:03 | FromDiscord | <IsaacPaul> to each .nim file |
18:08:42 | FromDiscord | <geekrelief> Yeah I'm using .cfg and .nims for setup, but I'm building multiple targets and I also need to switch compilers, so they need different flags too. |
18:09:36 | FromDiscord | <geekrelief> I building bindings which generate differently depending on the compiler, then I'm building a plugin against binding. |
18:11:33 | FromDiscord | <geekrelief> I want to define which compiler I'm using for the bindings and plugin in one place while allowing the bindings its own set of flags vs the plugin. |
18:12:17 | FromDiscord | <IsaacPaul> sent a code paste, see https://play.nim-lang.org/#ix=3DD5 |
18:12:41 | FromDiscord | <IsaacPaul> then inside the if you know its clang or gcc or whatever |
18:13:00 | FromDiscord | <IsaacPaul> there's probably a better way |
18:16:11 | FromDiscord | <geekrelief> Yeah, that's probably going to be more convoluted than I'd like. It's so much easier to understand one file and set all the flags in there which is what I did for my prior project. Thanks for the suggestion though. |
18:24:15 | FromDiscord | <dom96> If you want a Nimble-only solution then you can do something like this: https://github.com/nim-lang/nimble/blob/master/tests/nimscript/nimscript.nimble#L34 |
18:28:32 | FromDiscord | <haxscramper> does nimble even react to `--nimblePath`? |
18:28:39 | FromDiscord | <haxscramper> I'm trying to install package in non-default directory |
18:28:53 | FromDiscord | <haxscramper> `nimble install --nimblePath:(pwd) benchy` |
18:29:35 | FromDiscord | <haxscramper> same for `nimble --nimblePath:(pwd) install benchy` |
18:30:01 | FromDiscord | <Solitude> `--nimbleDir:dirname Set the Nimble directory.` |
18:30:07 | FromDiscord | <haxscramper> sht |
18:30:12 | FromDiscord | <haxscramper> 10^9 IQ time |
18:35:01 | * | neurocyte0132889 quit (Ping timeout: 268 seconds) |
18:36:46 | FromDiscord | <dom96> hm, Nimble should fatal with an invalid flag like that |
18:36:56 | FromDiscord | <dom96> I guess it doesn't? |
18:38:17 | * | neurocyte0132889 joined #nim |
18:38:17 | * | neurocyte0132889 quit (Changing host) |
18:38:17 | * | neurocyte0132889 joined #nim |
18:42:20 | FromDiscord | <Schelz> how to import a .cpp file in nim ? |
18:47:08 | FromDiscord | <haxscramper> no, it never failed with invalid flagsβ΅(@dom96) |
18:47:13 | FromDiscord | <haxscramper> for as long as I can remember |
18:47:29 | FromDiscord | <hips> In reply to @Schelz "how to import a": perhaps https://github.com/nimterop/nimterop ? |
18:47:43 | FromDiscord | <haxscramper> if you want to try your luck yes, |
18:48:00 | FromDiscord | <haxscramper> Technically c2nim "supports" C++ as well, but I can't comment on how good this support is |
18:48:24 | FromDiscord | <haxscramper> Otherwise you can add read on the `importcpp` pragma on the manual and do wrapping by haand |
18:50:17 | FromDiscord | <Recruit_main707> pretty sure nimterop is abandoned and did not support c++ properly ever |
18:50:38 | FromDiscord | <Schelz> i can use c too its not a problem |
18:50:55 | FromDiscord | <haxscramper> my personal recommendation is to |
18:51:04 | FromDiscord | <haxscramper> well, how big/complex is the API? |
18:51:53 | FromDiscord | <Schelz> not pretty big some bool structure, and some int too |
18:52:27 | FromDiscord | <haxscramper> then I guess you can just try `c2nim api.h` and see how it goes |
18:52:39 | FromDiscord | <Schelz> isnt a solution to compile the cpp in .so and import it in nim ? |
18:53:01 | FromDiscord | <Schelz> like loading in it a dll and use it |
18:53:03 | FromDiscord | <haxscramper> it is a possibility, yes, but there are other ways |
18:53:05 | FromDiscord | <Recruit_main707> youd still need to wrap the functions |
18:54:40 | FromDiscord | <haxscramper> to work with dynamic libraries you can do `proc dynproc(arg: cint): SomeStructure {.importc: "nameOfTheProcInLibrary", dynlib.}` |
18:55:15 | FromDiscord | <haxscramper> And if you want to do using only headers you can wrap it as `proc headerproc(arg: cint): SomeStructure {.header: "header.h", importc: "nameOfTheProcInLibrary".}` |
18:55:32 | FromDiscord | <haxscramper> I suppose I forgot something in the `{..}`, but this is a general idea |
19:02:18 | FromDiscord | <IsaacPaul> Since it's a header file you'll better results by adding the `--header` flag when using c2nim. |
19:03:15 | FromDiscord | <haxscramper> it doesn't detect this based on file extension? |
19:03:20 | FromDiscord | <IsaacPaul> nope |
19:06:58 | FromDiscord | <IsaacPaul> weird .. maybe it does.. I remember initially having issues and now it seems to work |
19:09:51 | FromDiscord | <IsaacPaul> ah ok the difference is with `--header` c2nim will use importc and without it will try to just directly translate it to nim |
19:10:06 | FromDiscord | <IsaacPaul> so ya, nope |
19:10:30 | arkanoid | I'm trying to cross-compile from linux to windows for the first time using this config.nims: https://termbin.com/w1gg, but I'm getting "/usr/bin/x86_64-w64-mingw32-ld: cannot find -ldl" |
19:16:42 | FromDiscord | <Astavie> sent a code paste, see https://play.nim-lang.org/#ix=3DDu |
19:17:59 | FromDiscord | <Schelz> this is an error that give me when i compile a file that has glfw and imgui as dll and i run it https://media.discordapp.net/attachments/371759389889003532/904811526127489064/unknown.png |
19:24:43 | arkanoid | why -d:mingw works at command line, but fails with a config.nims with just that? |
19:24:54 | FromDiscord | <Schelz> dose anyone has libstdc++-6.dll.a in the mingw64 ? |
19:24:59 | FromDiscord | <Schelz> (edit) "dose anyone has libstdc++-6.dll.a in the mingw64 ... ?" added "floder" |
19:25:04 | FromDiscord | <Schelz> (edit) "floder" => "folder" |
19:26:40 | arkanoid | got it: Note: In general, the define switches can also be set in NimScripts using switch or --, as shown in above examples. Few define switches such as -d:strip, -d:lto and -d:lto_incremental cannot be set in NimScripts. |
19:26:51 | arkanoid | https://nim-lang.org/docs/nims.html |
19:31:34 | * | krux02 joined #nim |
19:32:52 | FromDiscord | <dom96> In reply to @haxscramper "no, it never failed": we have such a long test suite for these flag behaviours, it's getting a bit nuts that there are still bugs |
19:32:59 | FromDiscord | <dom96> in any case, please submit a bug report |
19:37:04 | * | vicfred joined #nim |
19:38:23 | FromDiscord | <haxscramper> done |
19:38:44 | NimEventer | New thread by Astavie: Did NRVO break?, see https://forum.nim-lang.org/t/8579 |
19:39:13 | FromDiscord | <dom96> thanks! |
19:41:34 | * | fputs joined #nim |
19:42:04 | * | lucerne quit (Quit: Bye) |
19:45:28 | * | greyrat quit (Ping timeout: 252 seconds) |
19:45:53 | * | greyrat joined #nim |
19:46:26 | * | lucerne joined #nim |
20:03:28 | FromDiscord | <leorize> the same issue made -d\:release do nothing in config files (til recently) |
21:08:59 | * | fputs quit (Quit: The Lounge - https://thelounge.chat) |
21:09:19 | * | fputs joined #nim |
21:53:13 | NimEventer | New thread by Giaco: Arraymancer `in` operator, see https://forum.nim-lang.org/t/8580 |
22:25:01 | * | klil joined #nim |
22:25:09 | klil | welcome |
22:25:15 | klil | hello |
22:25:23 | klil | can you help me |
22:25:26 | klil | nim |
22:26:27 | * | klil quit (Client Quit) |
22:39:46 | FromDiscord | <dom96> don't ask to ask |
22:39:50 | FromDiscord | <dom96> just ask your question |
22:55:16 | FromDiscord | <sealmove> wtf: https://github.com/nim-works/nimskull |
22:57:13 | arkanoid | sealmove, exactly |
22:57:28 | FromDiscord | <sealmove> almost seems like a hoax |
23:00:42 | arkanoid | you think? |
23:01:58 | FromDiscord | <sealmove> I don't understand >< help me |
23:02:25 | arkanoid | I can't |
23:02:48 | FromDiscord | <sealmove> Maybe he made it in April 1st? |
23:03:18 | FromDiscord | <leorize> it's a nim fork |
23:03:39 | FromDiscord | <leorize> that's all to it right now |
23:04:04 | FromDiscord | <sealmove> but I see a lot of big names contributing |
23:04:15 | FromDiscord | <sealmove> what's the rational? |
23:04:54 | FromDiscord | <leorize> we got tired of the way Nim is going |
23:05:06 | FromDiscord | <sealmove> which is? |
23:05:20 | FromDiscord | <sealmove> you mean the development process? |
23:06:00 | FromDiscord | <leorize> mostly, yeah |
23:06:41 | FromDiscord | <sealmove> sorry not trying to hit a vein here >< I'm truly ignorant, just saw the repo for the first time |
23:06:54 | FromDiscord | <leorize> don't worry \:p |
23:07:26 | arkanoid | is there a statement somewhere on the original nim channels about this? It's something the community should be aware of? |
23:07:36 | FromDiscord | <leorize> it's just been established and not a lot has happened yet |
23:07:52 | FromDiscord | <leorize> which is why it wasn't advertised, but somehow y'all caught on it \:p |
23:08:10 | FromDiscord | <Elegantbeef> We'll put the blame on me π |
23:08:12 | FromDiscord | <sealmove> github feed algorithm lol |
23:08:18 | FromDiscord | <sealmove> it's not just facebook or instagram |
23:08:25 | FromDiscord | <Elegantbeef> I'm just such a likeable person people follow me! |
23:08:49 | FromDiscord | <sealmove> actually it was disruptek for me, he starred it |
23:09:08 | arkanoid | I also got it from github feed |
23:09:18 | FromDiscord | <leorize> you can check the project tab for a roadmap |
23:09:43 | FromDiscord | <leorize> but functionally we haven't deviated yet |
23:10:11 | FromDiscord | <leorize> discussions is also open if y'all are interested in helping out |
23:10:21 | FromDiscord | <leorize> no chatroom yet, the thing is barely a week old |
23:11:28 | arkanoid | sure, thing, but the first topic would be what's the future of the community and general direction |
23:13:25 | FromDiscord | <leorize> [saem](https://matrix.to/#/@saem:matrix.org) should be the best person to provide a brief on this |
23:14:02 | FromDiscord | <leorize> afaict the direction right now is to fix the architecture of the compiler |
23:14:08 | FromDiscord | <Elegantbeef> My description would be a less tech debt filled compiler that enables "correct" code |
23:15:38 | FromDiscord | <leorize> what the project mean for the community would be a more robust compiler and a more streamlined process for getting stuff done |
23:16:04 | FromDiscord | <RattleyCooper> Having a good description will be important for people who don't know much about how nim works behind the curtain (totally not talking about me π) |
23:16:15 | FromDiscord | <leorize> with that said, consider the current state to be pre-pre-alpha \:p |
23:16:26 | FromDiscord | <leorize> more details will come on a later date |
23:16:35 | FromDiscord | <Elegantbeef> Yea we're more interested in contributors than a community \:d |
23:17:34 | FromDiscord | <RattleyCooper> In reply to @Elegantbeef "Yea we're more interested": Fine! π’ |
23:17:34 | FromDiscord | <leorize> currently we are driven by a few nim devs who work in their free time (on weekends only) |
23:17:41 | FromDiscord | <sealmove> So from what I understand after taking a better look, it looks like the compiler code was copied over and it's getting refactored to incorporate better testing. |
23:18:24 | FromDiscord | <Elegantbeef> Well that's the first step |
23:18:25 | FromDiscord | <leorize> yea, as I said, it's barely changed from mainline |
23:18:42 | FromDiscord | <Elegantbeef> It will change over time but right now it needs legs to stand on |
23:20:13 | FromDiscord | <sealmove> But it's 6-year old? And you sound like you came up with the idea yesterday |
23:20:23 | FromDiscord | <Elegantbeef> It's not 6 years old |
23:20:30 | FromDiscord | <Elegantbeef> It's a fork of the nim compiler |
23:20:33 | FromDiscord | <leorize> it's a week old lol |
23:20:44 | FromDiscord | <sealmove> ah ok x) |
23:21:03 | FromDiscord | <sealmove> I am stupid and forget how github forks work |
23:21:07 | FromDiscord | <Elegantbeef> We're not rebuilding from the ground up, we're modifying the already existent compiler |
23:21:34 | FromDiscord | <sealmove> Yes that's easy inferable looking at the repo |
23:21:42 | FromDiscord | <sealmove> (edit) "easy" => "easily" |
23:22:02 | arkanoid | is the plan to merge it later on? |
23:22:27 | FromDiscord | <Elegantbeef> Well we have changes that are incompatible with Nim so no |
23:22:31 | FromDiscord | <leorize> that's not planned right now |
23:22:35 | FromDiscord | <sealmove> <secretly doubt it :3> |
23:22:50 | FromDiscord | <Elegantbeef> I personally will try to port everything to both until i cannot |
23:23:01 | FromDiscord | <Elegantbeef> But at some point it's gotta be one or the other |
23:23:12 | FromDiscord | <leorize> one of the reason for the fork was that we disagree with the current development process after all \:p |
23:23:41 | arkanoid | k, got the idea. Well, I'm very happy to see experienced programmers willing to fork and improve. What scares me is that this could split the already small community |
23:23:58 | FromDiscord | <RattleyCooper> ngl I'm excited but also nervous bc I just "learned" nim lol. Guess it'll be a ways down the road. |
23:24:12 | FromDiscord | <Elegantbeef> Eh it's not going to change much in regards to syntax |
23:24:22 | FromDiscord | <Elegantbeef> New features will be added/some removed but the we love the syntax/language |
23:24:31 | FromDiscord | <leorize> having good tools has never break a language \:p |
23:24:32 | FromDiscord | <Elegantbeef> Or atleast intended language |
23:25:17 | FromDiscord | <RattleyCooper> Perfect. Yeah, that's what I love about nim as well so that's good to hear. Excited to see what happens. Can someone invite me to chat once it's up and running or I will a link be on the github page at some point? |
23:25:30 | FromDiscord | <RattleyCooper> (edit) removed "I" |
23:25:46 | FromDiscord | <Elegantbeef> There will be a link eventually, when it's sufficiently progressed |
23:25:52 | FromDiscord | <RattleyCooper> Cool cool! |
23:26:13 | FromDiscord | <Elegantbeef> Presently we're more interested in people contributing than growing a community, so if you want to see it sooner, get on helping hax with language spec tests |
23:27:05 | FromDiscord | <sealmove> "spec testing"... looks like just more tests :P |
23:27:06 | FromDiscord | <Elegantbeef> It's a relatively simple thing anyone should be able to handle, chip away at a few tests and make a PR |
23:27:23 | FromDiscord | <Elegantbeef> It's establishing the language through tests instead of words |
23:28:45 | FromDiscord | <Elegantbeef> In saem's words you should be able to learn the language from reading the spec tests |
23:29:08 | FromDiscord | <sealmove> That's a curious idea, never heard of something similar |
23:29:17 | FromDiscord | <leorize> and most importantly it will be the basis for some of the large refactoring planned |
23:29:54 | FromDiscord | <Elegantbeef> Yep, plus feature additions can be written in the test spec and used to test it workiing |
23:30:10 | FromDiscord | <tandy> i saw hc's issue/pr this is a great plan |
23:30:20 | FromDiscord | <tandy> how will this be done? |
23:30:48 | arkanoid | apart from making the language more testable, which breaking improvements are you willing to add at the end of the refactoring? |
23:31:02 | FromDiscord | <leorize> nkError is the first step, of which you can see the pipeline in the projects tab |
23:31:03 | FromDiscord | <tandy> at the moment you learn nim by seeing it / being involved etc but having this kind of document would be invaluable |
23:31:16 | FromDiscord | <tandy> also means less time writing documentation! |
23:31:54 | FromDiscord | <tandy> would this feature be mergeable into nim? |
23:31:56 | FromDiscord | <Elegantbeef> We have some language changes for bad for human parts of nim (Distincts/hooks) |
23:32:04 | FromDiscord | <tandy> has there been any communication with nim dev team? |
23:32:13 | FromDiscord | <sealmove> Can it really replace documentation? Some concepts can't be explained through code |
23:32:19 | FromDiscord | <leorize> but, uh remember that this is a week old and we work on weekends only |
23:32:32 | FromDiscord | <Elegantbeef> Some of us only work on weekends π |
23:32:38 | FromDiscord | <Elegantbeef> Some of use dont even work on it |
23:32:40 | FromDiscord | <tandy> i think for a lot of things it can help, which is where nim is lacking on documentation atmβ΅(@sealmove) |
23:32:42 | FromDiscord | <Elegantbeef> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/904875612479565895): Some of us dont even work on it |
23:32:58 | FromDiscord | <Elegantbeef> I mean it's not just tests, there are also comments included with the tests |
23:33:02 | FromDiscord | <tandy> if i wasnt a student id send u guys money lol |
23:33:04 | FromDiscord | <Elegantbeef> So you have words + code |
23:33:45 | FromDiscord | <leorize> replacing docs is not the final goal of the spec tests, mind you \:p |
23:33:46 | FromDiscord | <Elegantbeef> Donations accepted include adding tests π |
23:34:04 | FromDiscord | <leorize> the major refactorings will break things and we need extra tests to cover ourselves |
23:34:26 | FromDiscord | <tandy> il start contributing when i finish in 6 months |
23:34:28 | FromDiscord | <tandy> \:)) |
23:34:45 | FromDiscord | <tandy> its defo a nice bonus tho \:) |
23:35:22 | FromDiscord | <tandy> one slightly irelevant thing, is infrastructure available to measure regressions through CI? |
23:35:44 | FromDiscord | <tandy> like i know benchmarking with ci is bad but maybe it could be useful for this kind of scale .. |
23:36:31 | FromDiscord | <leorize> not yet |
23:37:01 | FromDiscord | <leorize> there might be something, but I can't promise that |
23:37:46 | FromDiscord | <tandy> i was more talking in general, about whether some solution existed |
23:37:51 | FromDiscord | <tandy> would b nice to have |
23:38:53 | FromDiscord | <leorize> maybe in the very far future we will get a server rack to run benchmark on |
23:39:08 | FromDiscord | <leorize> but, again, this thing is a week old so please wait \:p |
23:39:47 | arkanoid | are you expecting a discussion with araq and other core devs? |
23:40:22 | FromDiscord | <tandy> yes, haha |
23:41:21 | arkanoid | splitting nim won't help people like me trying to push nim into production |
23:42:03 | FromDiscord | <tandy> tell that to the core teamβ΅(<@709044657232936960_arkanoid=5b=49=52=43=5d>) |
23:42:19 | FromDiscord | <tandy> not these guys who are putting effort into making nim a community effort |
23:44:37 | FromDiscord | <sealmove> This will help LSP? |
23:45:00 | FromDiscord | <sealmove> If so it's the main selling point imo |
23:45:26 | FromDiscord | <sealmove> <leorize feeling the pressure :>> |
23:45:59 | FromDiscord | <leorize> I'm alternating between cooking and chatting \:p |
23:46:24 | FromDiscord | <leorize> and it doesn't help that y'all are asking a lot out of the week old project \:p |
23:47:28 | FromDiscord | <sealmove> you can't be this insurrectional and expect no questions |
23:47:50 | FromDiscord | <leorize> I'd say that more info will come as more work is put in |
23:48:11 | FromDiscord | <leorize> there isn't much that I can say right now, the project has more than just me \:p |
23:48:42 | FromDiscord | <sealmove> I am almost persuaded to help :3 |
23:50:11 | FromDiscord | <sealmove> rn as far as nim is concerned, i would like to contribute to anything that bring us closer to having advanced ide tooling |
23:50:29 | arkanoid | agree |
23:52:11 | FromDiscord | <sealmove> I suspect key tooling components are hard to build right now because the compiler is not modular enough rn, but I could be completely wrong since I don't understand much of the compiler code. |
23:57:42 | FromDiscord | <evoalg> So the aim isn't just for a different compiler, but a new language? Similar but different? So tutorials / books will be written eventually? |
23:58:27 | * | brain-soup joined #nim |
23:59:08 | FromDiscord | <sealmove> No it's the same language |