00:00:34 | FromDiscord | <Skaruts> gonna give it a try |
00:01:19 | * | Trustable quit (Remote host closed the connection) |
00:06:24 | * | Senketsu joined #nim |
00:08:08 | * | Senketsu quit (Client Quit) |
00:13:24 | * | zacharycarter joined #nim |
00:13:25 | * | zacharyc1rter joined #nim |
00:14:05 | FromDiscord | <Joshua S. Grant> Ah, the old 'public static void' (re: beef); I really can't believe the verbosity of Java / C# is tolerated to the extent it is -- guess mostly just due to legacy reasons, but still ... like no real reason beef had to adopt similar idioms |
00:15:56 | FromDiscord | <Rika> its directly competing with C# |
00:16:49 | FromDiscord | <Varriount> I prefer specifying "void" by omitting a return type, and having either private or public be default (preferably private). |
00:17:09 | FromDiscord | <Joshua S. Grant> @Rika I mean, I get that; But still -- I don't know, simplify the semantics when / where you can. You don't have to be 100% mappable and this is the time to reduce kludge :^P |
00:17:45 | * | zacharyc1rter quit (Ping timeout: 240 seconds) |
00:17:45 | * | zacharycarter quit (Ping timeout: 240 seconds) |
00:18:22 | FromDiscord | <Varriount> for static... in most cases, static functions could just be regular functions. The reason Java uses them to the extent it does is because you can't have plain "functions", everything is a class/object |
00:20:02 | FromDiscord | <Rika> @Joshua S. Grant better adoption for people using C# with a syntax similar to it |
00:20:57 | FromDiscord | <Rika> can anyone explain to me what `ashr` is useful for |
00:21:00 | FromDiscord | <Rika> i fail to understand |
00:21:18 | FromDiscord | <Joshua S. Grant> @Rika it would still be similar though; Even if it was as Kotlin is to Java most of the semantics are the same, even if there is tweaking to the grammar -- but Idk, ultimately I guess it's preference |
00:21:45 | FromDiscord | <Rika> kotlin to java is a pretty massive difference imo |
00:22:25 | * | Hideki_ joined #nim |
00:23:25 | FromDiscord | <Elegant Beef> Well the verbosity of C# is because it's required to have classes obey protection levels whilst being able to control what's instanced and what's not |
00:23:50 | FromDiscord | <Elegant Beef> `public static void` for instance are all useful keywords in describing the function state |
00:24:14 | FromDiscord | <Rika> then how does nim do away with most of them? |
00:24:26 | FromDiscord | <Elegant Beef> Nim doesnt have objects in the same way C# does |
00:24:41 | FromDiscord | <Rika> even if it did, i bet it would still do away with most of them |
00:25:08 | FromDiscord | <Elegant Beef> Nim also handles imports differently to C# |
00:25:24 | FromDiscord | <Rika> i dont think that is relevant to its syntax |
00:25:47 | FromDiscord | <Elegant Beef> Well in nim you can only expose things upwards in C# you can expose them any direction |
00:26:00 | FromDiscord | <Elegant Beef> So public atleast becomes more useful |
00:26:15 | FromDiscord | <Joshua S. Grant> I mena, is the object model of C# similar to Java (I don't know, but would assume based on the use of syntax there ...)? I mean, Kotlin is able to get away without it |
00:26:30 | FromDiscord | <Joshua S. Grant> I mean, is the object model of C# similar to Java (I don't know, but would assume based on the use of syntax there ...)? I mean, Kotlin is able to get away without it |
00:26:37 | FromDiscord | <Elegant Beef> I imagine it's similar |
00:26:42 | FromDiscord | <Joshua S. Grant> Is the object model of C# similar to Java (I don't know, but would assume based on the use of syntax there ...)? I mean, Kotlin is able to get away without it |
00:27:13 | FromDiscord | <Elegant Beef> What does kotlin do for `public static void` and `private static void` or `protected static void` |
00:27:34 | * | zacharycarter joined #nim |
00:27:35 | * | zacharyc1rter joined #nim |
00:27:44 | FromDiscord | <Elegant Beef> *The last of those i actually dont know if it's possbile to do in C#* |
00:28:11 | FromDiscord | <Rika> i assume its `protected fun name(): Unit` or so |
00:28:32 | FromDiscord | <Rika> im not well versed in kotlin |
00:28:35 | * | Hideki_ quit (Remote host closed the connection) |
00:28:51 | FromDiscord | <Elegant Beef> I've never looked at kotlin, i'm relatively well versed in C# though |
00:28:52 | FromDiscord | <Rika> public is default |
00:29:00 | FromDiscord | <Elegant Beef> private is default in C# |
00:29:12 | FromDiscord | <Elegant Beef> Which considering it's an OOP language is sensible |
00:29:34 | FromDiscord | <Joshua S. Grant> Yeah, public is default; But I'm pretty sure you can use all the same visibility-monitors similar to Java? could be wrong |
00:29:58 | FromDiscord | <Elegant Beef> The big thing is i dont get what the issue is with `public static` |
00:30:12 | FromDiscord | <Elegant Beef> That's literally what an exposed proc is in nim as i understand it |
00:30:18 | FromDiscord | <Elegant Beef> methods would be just public |
00:32:43 | FromDiscord | <Rika> man i really do need to look through whole stdlib, TIL rationals module |
00:33:22 | FromDiscord | <Elegant Beef> **Read it all** https://nim-lang.org/docs/theindex.html |
00:33:22 | FromDiscord | <Elegant Beef> π |
00:34:08 | FromDiscord | <Joshua S. Grant> @Elegant Beef I mean, I guess my 'issue' but more-so a syntatical prefence, that makes Java & C# feel a lot more kludgy than it should for me -- I'll fully admit it's probably a personal-fault lo ... but tbh would rather it be hidden away... heck I'm even talking going as-far as a \@main annotation or something lol |
00:34:22 | FromDiscord | <Joshua S. Grant> @Elegant Beef I mean, I guess my 'issue' but more-so a syntatical prefence, that makes Java & C# feel a lot more kludgy than it should for me -- I'll fully admit it's probably a personal-fault lol ... but tbh would rather it be hidden away... heck I'm even talking going as-far as a \@main annotation or something lol |
00:35:10 | FromDiscord | <Joshua S. Grant> @Elegant Beef I mean, I guess my 'issue' is more-so a syntatical prefence, that makes Java & C# feel a lot more kludgy than it should for me -- I'll fully admit it's probably a personal-fault lol ... but tbh would rather it be hidden away... heck I'm even talking going as-far as a \@main annotation or something lol |
00:35:23 | FromDiscord | <Elegant Beef> Yea idk that feels like the same thing |
00:36:11 | FromDiscord | <Joshua S. Grant> I mean, it is; Ultimately 'what does it matter' ... like it shouldn't, but for whatever reason I can't shake that feeling. :^P |
00:36:41 | FromDiscord | <Elegant Beef> Static functions sometime reside in instancable classes so having it is a requirement that the language supports π |
00:38:02 | leorize | @Joshua please don't edit on discord |
00:38:05 | FromDiscord | <Elegant Beef> This is where the meme *OOP was wrong and needs to die* fits in nicely |
00:38:05 | leorize | it spams irc |
00:38:16 | FromDiscord | <Joshua S. Grant> Oh, sorry; Didn't even think about that. |
00:38:25 | FromDiscord | <Elegant Beef> More accurately dont edit, it causes irc users to spam discord π |
00:38:27 | * | ptdel quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) |
00:38:28 | * | FromDiscord <Joshua S. Grant> will try to be more careful not to be sooo sloppy |
00:40:29 | FromDiscord | <Joshua S. Grant> I mean, I'm sure the default decleration syntax with the visiblity levels and the like is probably the most efficent / powerful way to express that ; But again, sure it just comes down to personal preference and I think there has to be similar ways to express such things to that level over the course of a few lines. |
00:40:57 | * | couven92 quit (Ping timeout: 244 seconds) |
00:42:24 | FromDiscord | <Joshua S. Grant> But like, Idk, one of my favorite languages is Scala; And they don't have that problem but certainly have issues with being short and/or too the point -- so maybe I shouldn't judge too harshly. lol |
00:43:11 | FromGitter | <JorySchossau> Does anyone remember what the tool is that generates the complete set of cross compiled c sources and the build script to choose among them? For example, this was used to create the csources repo contents. I've used it before but I can't remember what/where it is. |
00:43:15 | FromDiscord | <Elegant Beef> I tend to prefer explcitity over implicity |
00:44:28 | * | FromDiscord <Joshua S. Grant> finds that untentionally really funny; As-per Scala's arguably most hated / loved feature are called implicits. |
00:44:48 | * | Hideki_ joined #nim |
00:46:06 | FromDiscord | <Joshua S. Grant> @Elegant Beef Also, yeah, think that's fair; As-said it comes down to preference -- probably almost entirely; I can see a lot of value with being more than-less explicit; tbh but 'language feel' matters to be a lot. Maybe too much. Actually almost certainly too much. |
00:46:55 | * | FromDiscord <Joshua S. Grant> sweats as he resists urge to edit that "to be a lot" ... lol |
00:49:13 | * | Hideki_ quit (Ping timeout: 244 seconds) |
00:52:29 | FromDiscord | <Rika> either way it is eternalized in the form of nim irc logs |
00:53:05 | Prestige | We should give this irc bot some color for names |
00:59:14 | FromGitter | <JorySchossau> Another way to ask it: What is the nim tool that reads `project.ini` that can automatically build c sources for all architectures listed in the file? |
01:00:41 | FromGitter | <JorySchossau> Ahhh! It was in the git commit logs of an old repo of mine: `niminst` is the tool I was looking for. |
01:01:14 | FromDiscord | <Rika> what's the best library i can use for a uint128? stint? |
01:05:42 | FromGitter | <zetashift> Yes I'd use stint |
01:27:14 | * | cyraxjoe joined #nim |
01:28:58 | * | MightyJoe quit (Ping timeout: 260 seconds) |
01:36:35 | * | exelotl quit (Ping timeout: 265 seconds) |
01:43:15 | zacharycarter | I'm looking at http://man7.org/linux/man-pages/man2/mmap.2.html and https://github.com/nim-lang/Nim/blob/1bdc30bdb13422bd5eff830327582a938e7b76ac/lib/posix/posix.nim#L628 - shouldn't the second parameter be a `uint` and not an `int`? |
01:45:26 | leorize | should be a csize_t |
01:45:35 | zacharycarter | which the manual says = uint |
01:45:51 | leorize | don't trust the manual, trust the generated c |
01:46:02 | leorize | csize_t will generates size_t |
01:46:26 | zacharycarter | gotcha - thanks |
01:46:44 | leorize | i doubt it would make a difference though |
01:46:55 | leorize | the posix module imports the procs directly from the headers |
01:47:02 | zacharycarter | yeah |
01:50:19 | FromDiscord | <Cerberus|The Enby> Can nim build something like cheat engine but for linux >.<? Was curious π
|
01:50:39 | leorize | yes |
01:51:02 | FromDiscord | <Cerberus|The Enby> Interesting, thank you friend! |
01:55:45 | * | chemist69_ quit (Ping timeout: 240 seconds) |
01:57:47 | * | chemist69 joined #nim |
01:59:43 | FromDiscord | <Elegant Beef> Source code of scanmem/game conquerer you could use as reference |
01:59:43 | FromDiscord | <Elegant Beef> https://github.com/scanmem/scanmem |
02:11:23 | * | muffindrake quit (Ping timeout: 265 seconds) |
02:13:37 | * | muffindrake joined #nim |
02:14:24 | FromDiscord | <Sophie> cheat engine is open source |
02:15:15 | FromDiscord | <Sophie> if youβre curious how certain things are done, but thereβll be a lot of windows specific code |
02:17:45 | * | zacharycarter quit (Ping timeout: 240 seconds) |
02:18:15 | * | zacharyc1rter quit (Ping timeout: 240 seconds) |
02:19:39 | FromDiscord | <Elegant Beef> gameconquerer is a cheatengine clone that runs on linux so i mean it has more useful information π |
02:30:42 | * | krux02_ quit (Remote host closed the connection) |
02:37:10 | * | xcm quit (Remote host closed the connection) |
02:39:15 | * | xcm joined #nim |
02:41:12 | FromDiscord | <Varriount> I wish I had something like cheatengine on Mac. I would use it primarily for program inspection. |
02:41:24 | FromDiscord | <Varriount> objdump will have to do for now. |
03:08:38 | * | xcm quit (Remote host closed the connection) |
03:10:50 | * | xcm joined #nim |
03:18:49 | * | voltist joined #nim |
03:21:42 | * | waleee-cl quit (Quit: Connection closed for inactivity) |
03:32:05 | FromDiscord | <Cerberus|The Enby> Cheat engine is on mac though |
03:38:43 | voltist | Whoever decided that Dracula was going to be "the Nim theme" is my favorite person. After having discovered it on Nim Playground and the standard library documentation, I'm using it everywhere :) |
03:42:23 | FromDiscord | <KingDarBoja> Hi guys |
03:42:25 | FromDiscord | <KingDarBoja> Quick question |
03:42:44 | FromDiscord | <KingDarBoja> How I can print a Rune codepoint as string |
03:42:51 | leorize | .toUtf8? |
03:43:04 | FromDiscord | <KingDarBoja> But in the unicode format |
03:43:11 | FromDiscord | <KingDarBoja> \uXXXX |
03:43:21 | leorize | turn it into an int? |
03:43:28 | FromDiscord | <KingDarBoja> Gonna try |
03:44:15 | FromDiscord | <KingDarBoja> Ok I don't know how |
03:44:24 | leorize | int(Rune_here) |
03:44:51 | leorize | then you can use formatInt in strutils to pad it into XXXX form |
03:45:01 | leorize | prepend \u and you're done |
03:47:11 | FromDiscord | <KingDarBoja> Woah |
03:47:42 | FromDiscord | <Rika> Lol |
03:48:16 | leorize | use toHexStr on the int if XXXX is hex |
03:48:41 | FromDiscord | <Rika> \u uses hex afaik |
03:49:35 | FromDiscord | <KingDarBoja> I am using phone data |
03:49:51 | FromDiscord | <KingDarBoja> Looking by strutils, i can't find formatInt |
03:51:14 | leorize | it's intToStr |
03:52:08 | FromDiscord | <KingDarBoja> Okay |
03:53:33 | FromGitter | <codenoid> hi folks, stay home |
03:54:37 | FromDiscord | <KingDarBoja> Done, thanks |
03:54:54 | FromDiscord | <KingDarBoja> But there isn't a faster way? |
03:55:05 | leorize | yes there is |
03:55:30 | FromDiscord | <KingDarBoja> I mean, a single function to output any rune as it's unicode string |
03:55:33 | FromDiscord | <KingDarBoja> Which? |
03:56:59 | leorize | !eval import strformat; echo fmt"\u{0x1F602:04}" |
03:57:03 | NimBot | \u128514 |
03:57:07 | leorize | ^ would that do? |
03:57:44 | FromDiscord | <KingDarBoja> Oh |
03:59:34 | FromDiscord | <KingDarBoja> What if I wish to return it but the unicode (the rune in this case) is inside a string ? |
04:00:05 | FromDiscord | <KingDarBoja> I mean, something like "hi Γ¦" yields "hi \uXXXX" |
04:01:23 | leorize | why can't you just use utf8 strings... |
04:01:32 | FromDiscord | <Elegant Beef> So basically if any character is ascii display it, else display unicode? |
04:04:10 | FromDiscord | <KingDarBoja> Yeah |
04:04:59 | leorize | use the utf8 iterator, if you got a value with len > 1, then turn it into that form |
04:06:01 | * | supakeen quit (Quit: WeeChat 1.9.1) |
04:06:39 | * | supakeen joined #nim |
04:07:22 | FromDiscord | <KingDarBoja> π |
04:14:44 | * | zacharycarter joined #nim |
04:15:00 | FromDiscord | <KingDarBoja> Just found the isPrintable proc |
04:15:05 | FromDiscord | <KingDarBoja> Pretty nice |
04:19:37 | leorize | https://play.nim-lang.org/#ix=2jK0 |
04:19:39 | * | zacharyc1rter joined #nim |
04:19:42 | leorize | so I wrote a "fast" version |
04:20:04 | leorize | it will be fast as long as you don't encounter any of the utf chars :P |
04:20:12 | leorize | multibyte* |
04:24:55 | * | rockcavera quit (Remote host closed the connection) |
04:30:24 | Prestige | How can I manually init a table with empty sequences at the values? I tried { 1: @[] }.toTable and { 1: seq[int] }.toTable, for instance |
04:32:17 | leorize[m] | why do you need that? |
04:32:41 | leorize[m] | but well you can use `newSeq[int]()` |
04:32:49 | Prestige | I'm wanting to populate a table with a set number of keys |
04:32:51 | Prestige | ag thanks |
04:34:03 | * | nsf joined #nim |
04:34:58 | FromDiscord | <KingDarBoja> π π |
04:36:40 | * | endragor joined #nim |
04:45:26 | * | dddddd quit (Ping timeout: 260 seconds) |
04:46:06 | skrylar[m] | all i did was read a pile of text layout articles/books and then kind of got fancy paragraphs :x |
04:46:18 | skrylar[m] | probably not as impressive as new memory models lol |
05:06:25 | Prestige | Hm so I have a table with Hashsets as values, I'm wanting to iterate over the hashsets and add an element to each, e.g. https://play.nim-lang.org/#ix=2jK8 |
05:06:30 | Prestige | How should I actually do this? ^ |
05:11:20 | Prestige | Seems like it's just immutiable if I iterate over the values, so I'm having to iterate over the keys and then access the set from within the for body |
05:11:40 | FromDiscord | <Yardanico> There's .mitems |
05:11:44 | Prestige | ah thanks |
05:11:47 | FromDiscord | <Yardanico> And .mpairs |
05:12:14 | FromDiscord | <Yardanico> It's a convention to name iterators like this if you can mutate the values they return |
05:12:23 | Prestige | Thanks! |
05:13:01 | FromDiscord | <Yardanico> And .mvalues too |
05:19:08 | * | revere quit (Ping timeout: 256 seconds) |
05:22:44 | * | narimiran joined #nim |
05:23:49 | * | revere joined #nim |
05:37:19 | * | zacharyc1rter quit (Ping timeout: 246 seconds) |
05:37:19 | * | zacharycarter quit (Ping timeout: 246 seconds) |
05:44:14 | * | chemist69 quit (Ping timeout: 244 seconds) |
05:44:37 | * | chemist69 joined #nim |
05:54:10 | * | Romanson joined #nim |
06:11:14 | voltist | Does Nim have a way to pass a seq as varargs? Like how in Python `zip(*[a,b])` is equivalent to `zip(a, b)` |
06:12:11 | FromDiscord | <Varriount> Hm, you might just be able to pass the sequence as normal |
06:16:07 | voltist | @Varriount Oh, it seems you can. Thanks! |
06:17:13 | * | xcm quit (Remote host closed the connection) |
06:19:27 | * | xcm joined #nim |
06:29:52 | * | solitudesf- joined #nim |
06:47:47 | * | hax-scramper quit (Ping timeout: 244 seconds) |
06:48:22 | * | hax-scramper joined #nim |
06:52:32 | * | PMunch joined #nim |
07:00:00 | * | gmpreussner quit (Quit: kthxbye) |
07:04:49 | * | gmpreussner joined #nim |
07:21:36 | voltist | Whats the Nim equivalent to Python's `pass`? |
07:22:25 | FromGitter | <bung87> discard |
07:24:01 | voltist | Yeah that works, thanks! |
07:24:22 | FromGitter | <bung87> ```spawn server() β sleep(900) β app()``` β β is there another solution instead of waiting 900ms? [https://gitter.im/nim-lang/Nim?at=5ea688a694ac2758e30e6c63] |
07:25:50 | * | NimBot joined #nim |
07:42:37 | * | hax-scramper quit (Read error: Connection reset by peer) |
07:42:54 | * | hax-scramper joined #nim |
07:49:54 | FromDiscord | <flywind> How can I do code coverage? It seems that code coverage result is not accurate enough using `gcov`? |
07:52:10 | FromDiscord | <flywind> |
07:52:10 | FromDiscord | <flywind> https://cdn.discordapp.com/attachments/371759389889003532/704238447778463764/unknown.png |
07:53:24 | * | hax-scramper quit (Ping timeout: 244 seconds) |
07:53:50 | Araq | there are also nimble packages that use Nim's macro sytem for code coverage |
07:54:09 | * | hax-scramper joined #nim |
07:54:52 | Araq | haven't used them though, I don't do code coverage, instead I only write the necessary code |
07:57:09 | Araq | https://github.com/nim-lang/opengl/pull/76 narimiran, same, no CI integration |
07:57:11 | disbot | β₯ Removed unused imports, fixed #65 |
07:57:41 | Araq | --> move to 'fusion'? |
07:57:57 | narimiran | ok |
07:58:08 | Araq | well not yet |
07:58:17 | Araq | but we should keep it in mind |
08:02:50 | * | xcm quit (Remote host closed the connection) |
08:03:27 | FromGitter | <bung87> `socket.connect( "localhost", Port(80))` raise `(parent: nil, name: "OSError", msg: "Invalid argument"` ? |
08:05:02 | * | xcm joined #nim |
08:05:17 | Araq | bung87: you used a question mark but it wasn't a question |
08:06:43 | * | lritter joined #nim |
08:07:40 | FromGitter | <bung87> hmm , it's in loop , when move out and top of the loop, it raise connection error |
08:08:05 | FromGitter | <bung87> Error: unhandled exception: Connection refused [OSError] |
08:09:46 | FromGitter | <bung87> my bad ,sleep after connect |
08:10:29 | * | couven92 joined #nim |
08:23:08 | FromDiscord | <Recruit_main707> is arduino nim usable? |
08:23:13 | FromDiscord | <Recruit_main707> zevv? |
08:29:22 | Araq | it should be |
08:29:43 | FromDiscord | <Recruit_main707> i hope my teacher lets me use it |
08:31:42 | narimiran | PMunch: are you around? |
08:31:49 | PMunch | Always |
08:32:31 | narimiran | IIRC, the playground has its own list of "important packages" that are installed? how big is that list and how did you pick the packages? |
08:33:31 | PMunch | That's right |
08:33:31 | PMunch | https://github.com/PMunch/nim-playground/blob/master/docker/packages.nimble |
08:34:23 | PMunch | The list was seeded with the official "important packages" list, then I removed some that obviously wouldn't work (like Windows specific packages, JS specific packages, GUI packages, networking packages, etc.) and I accept pretty much all PRs for new packages |
08:34:50 | PMunch | There are some more ones that can be removed as well |
08:35:05 | PMunch | Like c2nim and cligen probably aren't very useful in there |
08:35:15 | PMunch | Or inim |
08:35:17 | Araq | excellent work, PMunch :-) |
08:35:20 | PMunch | Huh? |
08:35:29 | PMunch | What did I do now? :P |
08:35:43 | narimiran | PMunch: great, thanks! i'll see what of that list i can include in the official "important packages" |
08:36:04 | Araq | you took "important packages" and cleaned it up for nim-playground, I wasn't aware |
08:36:08 | PMunch | I think there are only like 5 packages that have been added to that |
08:36:22 | PMunch | Oh right, yeah I did that quite a while ago :P |
08:37:01 | PMunch | TBH it's not very cleaned up. Some packages might have 3rd party dependencies that aren't installed as well.. |
08:37:21 | voltist | Oh gee `Error: cannot open file: strutils`. What *have* I done... |
08:37:23 | PMunch | Although I try to add them here: https://github.com/PMunch/nim-playground/blob/master/docker/Dockerfile#L61 |
08:37:40 | PMunch | Recruit_main707, Nim runs fine on Arduino |
08:37:52 | PMunch | I used it to program the Arduboy |
08:38:33 | PMunch | But I'm not sure how well nim-arduino works, I was just wrapping things by hand |
08:38:54 | FromGitter | <alehander92> that's cool |
08:38:54 | FromDiscord | <Recruit_main707> but the arduino ide wont look good with nim right? |
08:38:59 | PMunch | But Zevv showed me that it worked during FOSDEM |
08:39:25 | PMunch | Hehe, Zevv actually integrated it into the IDE, so apart from a bit wonky syntax highlighting it works fine |
08:39:41 | FromDiscord | <Recruit_main707> nice |
08:40:03 | PMunch | I just made a makefile that built and uploaded the Nim code directly |
08:40:34 | PMunch | This is what I'm using: http://ix.io/2jKO |
08:41:07 | PMunch | With this nim.cfg file: http://ix.io/2jKP |
08:42:10 | FromDiscord | <Recruit_main707> ok, so that first file is a .make? |
08:42:24 | PMunch | It's a "Makefile" |
08:42:30 | PMunch | What's a .make? |
08:43:17 | FromDiscord | <Recruit_main707> idk, how should i use the makefile :p |
08:44:55 | PMunch | Put it in a file called "Makefile" and then you can run "make upload", "make size", "make run" (this is for running in the Arduboy emulator), or simply "make" which runs the first rule |
08:46:04 | Zevv | Recruit_main707: it works and all, but I never properly finished it. Story of my life, basically. |
08:46:08 | PMunch | Makefiles are basically just rules for creating files. So the format is `file>: <dependencies> |
08:46:12 | PMunch | Oops |
08:46:15 | Zevv | https://github.com/zevv/nim-arduino |
08:46:31 | Zevv | I reached out to the arduino developers but they only started nagging me and being blunt about the language, so screw that |
08:47:23 | PMunch | `<file>: <dependencies>` and then an indented list of commands to run to create the file. If a `dependency` is missing, it will run the rule to create that file. As you can see `upload`, `run` and `size` doesn't actually create any files, so they will always run. |
08:47:48 | voltist | Ok seriously, anybody got any idea why I'm getting ` Error: cannot open file: strutils`? |
08:48:05 | PMunch | Zevv, the Arduino developers didn't want more languages? :( |
08:48:17 | PMunch | voltist, because it's missing? |
08:48:38 | PMunch | How did you install Nim? |
08:48:54 | voltist | PMunch: With choosenim |
08:49:04 | PMunch | Can we see the full compilation output? There are some hints there to which cfg file it uses and such |
08:50:00 | voltist | PMunch: Yeah sure, https://pastebin.com/Jk1qdwT8 |
08:50:37 | PMunch | And what is the contents of /home/liam/.choosenim/toolchains/nim-1.2.0/config/nim.cfg |
08:50:57 | PMunch | And do you just have "import strutils" or something else in your file? |
08:52:13 | voltist | The config file is empty |
08:52:25 | voltist | And yeah `import strutils' is in there |
08:52:32 | PMunch | And that's probably your issue :P |
08:52:58 | PMunch | My config file is 319 lines long, and that's the default one |
08:53:07 | voltist | Oh weird |
08:53:18 | voltist | I'll try getting rid of everything and reinstalling |
08:53:24 | PMunch | Just delete the entire /home/liam/.choosenim/toolchains/nim-1.2.0 directory and run choosenim stable again |
08:54:28 | PMunch | Ugh, I think it's about time to get a new graphics card.. |
08:55:34 | voltist | Nah that didn't help unfortunately |
08:57:26 | PMunch | Still an empty file? |
08:58:24 | * | xcm quit (Remote host closed the connection) |
08:58:46 | voltist | Yep. Choosenim says when I install that the compiler and tools have already been installed. Perhaps a broken config is being copied in from the cache? |
08:59:02 | voltist | Already built* |
08:59:40 | PMunch | Try choosenim update stable |
09:00:35 | voltist | Same issue. It doesn't appear to actually be downloading anything except the compiler |
09:01:00 | * | xcm joined #nim |
09:01:02 | PMunch | What does your `choosenim --version` say? |
09:01:41 | voltist | choosenim v0.6.0 (2020-03-06 18:24:57) [linux/amd64] |
09:02:27 | PMunch | Hmm, weird |
09:02:45 | narimiran | PMunch: ah, at first i thought your list would be more different than ours. now i see they're basically the same: your has 4-5 packages that we don't (yet) |
09:03:20 | PMunch | Yeah, as I said it's a copy of the "important packages" list, but I add things people want to have an the playground |
09:03:30 | voltist | PMunch Yeah, do you know what I need to delete in order to cleanse everything? |
09:03:40 | PMunch | But it's not very well known that there even are packages on the playground :P |
09:03:53 | narimiran | people should want more :D |
09:03:55 | PMunch | voltist, I mean if you delete the .choosenim folder.. |
09:04:13 | narimiran | (i'm looking for more packages we should test) |
09:04:28 | PMunch | You can test all of mine :P |
09:04:37 | PMunch | I try to make sure they always work on the latest Nim version |
09:04:58 | narimiran | PMunch: three of yours are getting introduced this time :) |
09:05:07 | PMunch | Oh nice, which ones? |
09:05:26 | narimiran | termstyle, optionsutils, macroutils |
09:05:40 | Zevv | PMunch: apparently not. And ther was this dude going on how "unsafe" this all must be, just as "unsafe" as using C++ strings - he clearly does have no clue, but it's a bad start to get your thread hijacked by someone like that. |
09:05:56 | voltist | PMunch: It must be caching somewhere else because even when .choosenim and .nimble are removed, it still doesn't build anything |
09:06:40 | PMunch | narimiran, haha good luck breaking termstyle :P It's basically just some string concatenation |
09:07:20 | PMunch | Zevv, wait, how unsafe it would be to use Nim, or how unsafe it would be to integrate new languages in the IDE? |
09:07:31 | PMunch | voltist, that is very strange |
09:07:55 | PMunch | I assume your username is liam? |
09:08:15 | Zevv | to use nim. He wanted my to Nimify some serial mundane rx/tx example, and it was clearly no better then the C++ version and very unsafe |
09:09:11 | voltist | PMunch: Yep |
09:09:26 | Zevv | oh right, that wasn't an actual arduino developer, it wast just Some Guy |
09:09:27 | PMunch | Zevv, that's just dumb.. |
09:09:50 | PMunch | Like why would that even matter for integrating it into the IDE.. |
09:10:24 | Zevv | right https://forum.arduino.cc/index.php?topic=661603.0 |
09:10:38 | PMunch | voltist, I don't know what to tell you. Unless you have `choosenim` aliased to something that sets --choosenimDir and --nimbleDir I don't really know what's going on.. |
09:11:56 | voltist | PMunch: All good. I'll work on it some more and see if I can find out whats going on |
09:16:19 | Araq | Zevv, lol |
09:16:24 | Araq | that thread is funny |
09:27:16 | PMunch | If he could see some of the Arduboy stuff I've been working on I think he would be a bit more impressed :P |
09:27:19 | * | hax-scramper quit (Read error: Connection reset by peer) |
09:27:36 | * | hax-scramper joined #nim |
09:27:50 | PMunch | But just a serial read/write example, as you say, how much more/less complexity were you expecting? |
09:28:09 | FromGitter | <alehander92> Praise God |
09:28:12 | FromGitter | <alehander92> what a good day |
09:28:36 | FromGitter | <alehander92> disruptek interesting work |
09:28:37 | FromGitter | <alehander92> on IC |
09:28:58 | FromGitter | <alehander92> when would it be usable for alpha testing :) |
09:29:04 | FromGitter | <alehander92> (even for toy examples) |
09:29:16 | PMunch | Good day? |
09:30:03 | * | arecaceae quit (Remote host closed the connection) |
09:30:16 | FromDiscord | <KrispPurg> Hey guys, uh when I send a multipart data to a http request that is a file in a directory it throws this error "The filename, directory name, or volume label syntax is incorrect." when I use Nim v1.0.4 it works fine, but on Nim v1.2.0, it doesn't any solutions to this? |
09:30:40 | * | arecaceae joined #nim |
09:31:22 | * | natrys joined #nim |
09:31:51 | PMunch | KrispPurg, how have you set up your server? |
09:33:31 | PMunch | Hmm, I can get an RTX 2060 6Gb for β¬365 or a GTX 1660 6Gb for β¬261.. |
09:33:42 | FromDiscord | <KrispPurg> you mean how I handle the request? |
09:33:57 | PMunch | Yeah |
09:34:18 | FromDiscord | <KrispPurg> Hold on |
09:35:06 | FromDiscord | <KrispPurg> https://play.nim-lang.org/#ix=2jLa |
09:37:06 | PMunch | Uhm, where do you do any file handling there? |
09:37:34 | FromDiscord | <KrispPurg> oh wait |
09:38:06 | FromDiscord | <KrispPurg> https://play.nim-lang.org/#ix=2jLc |
09:39:26 | FromDiscord | <Chiqqum_Ngbata> Any idea why querySetting(ccompilerPath) is returning empty |
09:39:51 | FromDiscord | <Chiqqum_Ngbata> If no good solution to that one, how else could I find the current compiler |
09:39:58 | FromDiscord | <KrispPurg> the first statement is where if the file body isn't provided and the file object is just a file with a name only. |
09:41:53 | PMunch | KrispPurg, TBH I have no idea what's going on. Try to create a minimal example that reproduces the error |
09:43:02 | PMunch | Hmm, a used 1060 for β¬78 |
09:48:21 | * | Vladar joined #nim |
09:50:34 | * | liblq-dev joined #nim |
09:51:10 | Zevv | it's funny but it's also sad |
09:52:17 | dom96 | By god, arguing with open source developers should be a full-time job :P |
09:53:01 | FromDiscord | <InventorMatt> I think nim has a lot of potential for robotics so it kind of sucks that the arduino community wasn't receptive to it |
09:53:32 | FromDiscord | <InventorMatt> if we could integrate it with ROS that could help gain exposure |
09:57:24 | livcd | will orc replace arc? :D |
09:57:30 | * | Romanson quit (Quit: Connection closed for inactivity) |
09:57:44 | Araq | https://github.com/nim-lang/Nim/pull/14121 it's done |
09:57:45 | disbot | β₯ new implementations for --gc:orc |
09:58:32 | Araq | livcd, maybe, I'm seeing more and more things the researchers overlooked |
09:58:32 | FromDiscord | <KrispPurg> PMunch: https://play.nim-lang.org/#ix=2jLh |
09:58:59 | livcd | Araq you are the Omnissiah |
10:01:27 | Araq | livcd, I'm not that familiar with Warhammer |
10:02:21 | Araq | so yeah, 1.4 is ready, featuring --gc:orc for the people who cannot rewrite software |
10:02:37 | Araq | (kidding) |
10:02:38 | FromDiscord | <Recruit_main707> Araq, despite having orc, arc will eventually fix its memory leaks right? |
10:03:06 | Araq | there are no leaks, there are bugs we're fixing but the fact that it doesn't collect cycles is by design |
10:03:11 | livcd | Araq: "Hail the Omnissiah! He is the God in the Machine, the Source of All Knowledge." |
10:03:41 | FromDiscord | <Recruit_main707> Araq: isnt the problem with async a leak? |
10:04:03 | Araq | yeah, so today's async requires --gc:orc |
10:04:22 | Araq | all the other std libraries are known not to create cycles |
10:04:48 | FromDiscord | <Recruit_main707> thats what i mean, arc will eventually fix that (or async will be re designed) |
10:05:44 | Araq | no, arc can't fix that by design |
10:05:56 | Araq | only a different async can do that |
10:06:39 | Araq | but for now --gc:orc is becoming the solution |
10:06:55 | FromDiscord | <Recruit_main707> there are plans on that new async model in he mid future? |
10:07:28 | FromDiscord | <mratsim> I thought you had this colofing based cycle collector from Bacon and Dingle paper? |
10:08:08 | FromDiscord | <Chiqqum_Ngbata> "Bacon" occurs in the diff, I know that much |
10:17:24 | FromGitter | <alehander92> PMunch good day ! |
10:18:12 | FromGitter | <alehander92> hm, loading assembly today! |
10:18:25 | FromGitter | <alehander92> do you guys |
10:18:32 | FromGitter | <alehander92> prefer the at&t or the intel syntax |
10:21:21 | FromDiscord | <Chiqqum_Ngbata> Hrm, is there no way to get current C compiler? |
10:22:17 | * | onionhammer quit (Ping timeout: 258 seconds) |
10:22:43 | * | onionhammer joined #nim |
10:26:50 | FromDiscord | <mratsim> I prefer intel syntax |
10:27:03 | FromDiscord | <mratsim> but for inline assembly I have to use ATT :/ |
10:30:26 | FromDiscord | <KrispPurg> Hello..? Is anyone gonna help me? I have this error "The filename, directory name, or volume label syntax is incorrect." when I use Nim v1.0.4 it works fine, but on Nim v1.2.0, it doesn't. Any ideas or solutions to this error? |
10:32:37 | FromDiscord | <Recruit_main707> that last url is the source? |
10:34:46 | FromDiscord | <KrispPurg> yes |
10:34:46 | FromDiscord | <KrispPurg> https://play.nim-lang.org/#ix=2jLh |
10:37:23 | Araq | mratsim: yeah, why? |
10:42:09 | Araq | once again, --gc:orc is --gc:arc + Bacon/Lins's cycle collector |
10:42:25 | Araq | the 'o' is a cycle |
10:42:30 | Araq | hence the name |
10:44:25 | * | narimiran quit (Ping timeout: 244 seconds) |
10:44:40 | * | exelotl joined #nim |
10:48:18 | FromDiscord | <Zed> how does nim handle class methods? |
10:48:31 | * | krux02 joined #nim |
10:48:38 | FromDiscord | <Zed> like with java, you have a class and then a bunch of methods for that class to access data etc |
10:48:45 | FromDiscord | <Zed> how does nim do this? |
10:48:47 | Araq | Nim doesn't have 'class' |
10:48:53 | PMunch | KrispPurg, I don't get that error on 1.2.0 with your code.. |
10:49:05 | FromDiscord | <Zed> can you turn an object into a class? |
10:49:13 | FromDiscord | <Yardanico> @Zed https://nim-lang.org/docs/tut2.html#object-oriented-programming |
10:49:18 | FromDiscord | <exelotl> ^ |
10:49:23 | FromDiscord | <KrispPurg> huh |
10:49:33 | FromDiscord | <Recruit_main707> i dont know how to help you bro |
10:49:50 | FromDiscord | <exelotl> is it still using dispatch trees as the mechanism? |
10:50:04 | FromDiscord | <exelotl> or did we switch to vtables yet? |
10:50:20 | Araq | still uses the dispatch trees |
10:50:56 | FromDiscord | <mratsim> @Araq maybe interesting for DrNim on what people may want to use it for, and you can just reuse their example for documentation as well: https://allan-blanchard.fr/publis/frama-c-wp-tutorial-en.pdf |
10:51:31 | FromDiscord | <mratsim> gc:orc --> owned ref counting π |
10:51:34 | Araq | mratsim: thanks but I'm already stealing everything from Frama-C |
10:51:41 | Araq | :D |
10:51:59 | FromDiscord | <mratsim> well steal their documentation then |
10:52:00 | Araq | it's very good stuff, they even have my write tracking ideas |
10:52:56 | * | solitudesf-- joined #nim |
10:54:17 | Araq | mratsim: the first milestone for Drnim is "integrate into nim's development" |
10:54:25 | FromDiscord | <mratsim> btw I've found out the source of the C++ atomics codegen issue, I've workaround my initial bug but I have another one where inexplicably, Nim compiler doesn't respect {.noInit.} if the variable is declared in a for loop |
10:56:02 | * | solitudesf- quit (Ping timeout: 260 seconds) |
10:56:19 | Araq | yeah I've seen it, can't be hard to fix |
10:57:34 | * | solitudesf-- quit (Ping timeout: 246 seconds) |
10:58:18 | FromDiscord | <mratsim> type-level {.noInit.} might be helpful for atomics, or atleast prevent assignment and sink with the C++ backend as well |
10:58:49 | livcd | windows\registry.nim(58, 54) Error: expression cannot be cast to pointer -> this is what I get with gc:arc. Is this a bug? |
11:01:45 | Araq | livcd, yeah, registry.nim needs to be patched |
11:08:53 | * | Hideki_ joined #nim |
11:11:25 | FromDiscord | <KrispPurg> Well, have they changed the way how you read files in nim? |
11:11:47 | FromDiscord | <KrispPurg> (nim v1.2.0) |
11:14:09 | * | solitudesf joined #nim |
11:16:34 | * | Guest78480 quit (Ping timeout: 260 seconds) |
11:16:40 | PMunch | Since 1.0.4, doubt it |
11:17:46 | FromDiscord | <KrispPurg> PMunch, have you tested the code with sending your local file. |
11:18:18 | * | dadada joined #nim |
11:18:42 | * | dadada is now known as Guest29708 |
11:19:29 | * | Kaivo joined #nim |
11:19:52 | PMunch | I just get the normal "No such file or directory" error |
11:20:37 | FromDiscord | <KrispPurg> huh |
11:21:17 | PMunch | Which is a bit weird since the file exists.. |
11:21:29 | FromDiscord | <KrispPurg> yeah |
11:22:06 | FromGitter | <alehander92> mratsim hm, att seems less verbose to me because of the DWORD stuff |
11:22:13 | FromGitter | <alehander92> but i totally look rarely at asm |
11:22:18 | FromGitter | <alehander92> so no idea if i am right. |
11:23:58 | PMunch | Huh, it seems like multipart.add tries to read the file |
11:25:02 | * | Hideki_ quit (Remote host closed the connection) |
11:25:06 | PMunch | Well, not the add function. But when you go to send it |
11:25:19 | * | Hideki_ joined #nim |
11:25:50 | * | Hideki_ quit (Remote host closed the connection) |
11:26:46 | * | Hideki_ joined #nim |
11:29:13 | PMunch | This seems to cause the issue that I'm having: https://github.com/nim-lang/Nim/blob/version-1-2/lib/pure/httpclient.nim#L913 |
11:31:30 | * | Hideki_ quit (Ping timeout: 260 seconds) |
11:31:31 | PMunch | This commit basically changes how the httpclient handles files: https://github.com/nim-lang/Nim/commit/e056298ceb0fbddf6190f1b97f415b61323d446c |
11:31:37 | PMunch | And it seems to do something wrong |
11:32:09 | FromDiscord | <KrispPurg> a ha |
11:33:07 | PMunch | Try to set isStream = false |
11:34:01 | PMunch | Err, useStream |
11:34:17 | FromDiscord | <KrispPurg> I'll do it later, because I'm fixing a a different bug. |
11:39:18 | PMunch | I get the same error on 1.0.4 though.. |
11:40:20 | FromDiscord | <Zed> has anybody tried any sort of machine learning with nim? |
11:40:26 | PMunch | Yes |
11:40:33 | FromDiscord | <Zed> how did it go? |
11:40:56 | FromDiscord | <Recruit_main707> we actually have torch wrapped |
11:40:57 | FromDiscord | <Zed> did you use that python binding library or direct c bindings? |
11:40:57 | PMunch | I dunno, ask them |
11:41:03 | PMunch | But I think it went pretty well :P |
11:41:12 | FromDiscord | <Recruit_main707> i didnt manage to install it though |
11:41:13 | PMunch | I didn't do it, but I know somebody did |
11:41:18 | FromDiscord | <Zed> ah ok |
11:41:25 | FromDiscord | <Recruit_main707> also there is arraymancer |
11:41:37 | FromDiscord | <Recruit_main707> which is a tensor library |
11:42:25 | FromDiscord | <Zed> yeah im looking at that now |
11:49:31 | FromDiscord | <Yardanico> See https://github.com/sinkingsugar/nimtorch |
11:57:47 | FromDiscord | <Zed> thanks @Yardanico |
12:03:15 | PMunch | Are there any tests for document generation? |
12:06:02 | * | supakeen quit (Quit: WeeChat 1.9.1) |
12:06:39 | * | supakeen joined #nim |
12:08:13 | * | Hideki_ joined #nim |
12:15:23 | * | opal quit (Ping timeout: 240 seconds) |
12:15:30 | FromDiscord | <KrispPurg> PMunch, it works fine now thanks :) |
12:16:17 | * | narimiran joined #nim |
12:16:46 | * | rockcavera joined #nim |
12:16:54 | PMunch | No problem :) |
12:17:52 | shashlick | @voltist that's a choosenim bug you saw - https://github.com/dom96/choosenim/issues/194 |
12:17:53 | disbot | β₯ Choosenim v0.6.0: Toolchain extraction results in corruption of vital `Nim v1.2.0` files after `choosenim update stable` ; snippet at 12https://play.nim-lang.org/#ix=2iDk |
12:18:04 | shashlick | I don't have a repro though - are you on arch Linux |
12:18:10 | FromDiscord | <KrispPurg> Someone should make a pr to this change though |
12:18:29 | shashlick | Also, does the failure happen if you install 1.0.6? |
12:18:34 | FromDiscord | <KrispPurg> (not to be confused with the choosenim issue) |
12:20:06 | FromDiscord | <mratsim> @alehander42 it's not the verbosity but the argument order that mostly are annoying |
12:20:24 | FromDiscord | <mratsim> ATT is input -> result while intel is result <- input |
12:20:33 | FromDiscord | <Chiqqum_Ngbata> Does nimscript not support one of the child process exec procs that return exit code |
12:20:41 | FromDiscord | <Chiqqum_Ngbata> The only thing I can get to work is exec() |
12:21:47 | PMunch | KrispPurg, yeah I'm not entirely sure what happened there |
12:21:58 | PMunch | Is it a bug, is it a (documented) API change? |
12:23:02 | FromDiscord | <KrispPurg> I believe it was just some bug or just some mistake, I guess? |
12:26:20 | * | opal joined #nim |
12:29:08 | * | Hideki_ quit (Ping timeout: 256 seconds) |
12:29:35 | * | opal quit (Client Quit) |
12:30:03 | PMunch | It looks a bit like they just swapped two fields by accident |
12:31:11 | * | opal joined #nim |
12:32:01 | FromGitter | <bung87> how to get next free port? |
12:32:45 | livcd | bind to 0 i believe |
12:34:11 | livcd | i believe on linux it gives you the free port |
12:34:48 | FromDiscord | <Yardanico> Wow, TIL |
12:34:53 | FromGitter | <bung87> it's system behavior? |
12:35:05 | FromGitter | <bung87> what about windows |
12:35:27 | * | xet7 quit (Remote host closed the connection) |
12:36:35 | FromDiscord | <Yardanico> Yes, it works on Windows too |
12:36:58 | livcd | Did you just try? :P |
12:37:11 | FromGitter | <bung87> ok thanks |
12:37:15 | FromDiscord | <Yardanico> Seems like it's a part of BSD4.2 standard or something https://docs.microsoft.com/en-gb/windows/win32/api/winsock/nf-winsock-bind?redirectedfrom=MSDN |
12:37:22 | * | xet7 joined #nim |
12:37:27 | FromDiscord | <Yardanico> "For TCP/IP, if the port is specified as zero, the service provider assigns a unique port to the application from the dynamic client port range" |
12:38:05 | FromDiscord | <Yardanico> 4.2BSD * |
12:39:04 | FromGitter | <bung87> thank you ! |
12:40:47 | livcd | so bung87 it's a spec you should not rely on :P |
12:41:51 | FromGitter | <bung87> I'll test the program on windows when it's ready |
12:42:10 | livcd | bung87 are you chinese? |
12:42:50 | livcd | Anyone knows if there are some alipay/wechat libs for Nim? |
12:42:57 | FromGitter | <bung87> yeah old chinese |
12:43:07 | livcd | old chinese means taiwanese? |
12:43:22 | FromGitter | <bung87> 30+ years old |
12:43:28 | livcd | age lol |
12:43:29 | livcd | ok |
12:44:17 | FromGitter | <bung87> I dont think there are alipay/wechat libs in Nim |
12:44:45 | FromGitter | <bung87> the nim std libs well enough? I dont think so |
12:49:48 | * | Hideki_ joined #nim |
12:50:13 | FromDiscord | <Chiqqum_Ngbata> I've used port 0 bind extensively in automated tests, e.g. |
12:56:22 | PMunch | shashlick, what's the status on nimssl? |
12:57:16 | federico3 | nimssl? |
12:57:27 | PMunch | nimssl: https://github.com/genotrance/nimssl |
12:57:55 | federico3 | there's already a wrapper in stdlib |
12:58:00 | * | nc-x joined #nim |
12:58:14 | nc-x | Araq, dom96 https://github.com/nim-lang/nimble/pull/797 |
12:58:15 | disbot | β₯ Fix nimble because `paramCount` & `paramStr` for nimscript are now defined in os.nim |
12:58:31 | PMunch | federico3, not a complete one |
12:58:46 | PMunch | I specifically need RSA_private_encrypt |
12:58:49 | federico3 | yep, and we should try to improve that one instead |
12:58:52 | PMunch | And decrypt |
13:01:35 | livcd | hmm how do you actually get back the port the OS gives you? |
13:01:37 | livcd | in jester |
13:02:17 | * | nc-x quit (Remote host closed the connection) |
13:03:05 | * | Romanson joined #nim |
13:03:13 | * | dddddd joined #nim |
13:03:56 | * | Vladar quit (Ping timeout: 246 seconds) |
13:04:19 | * | Vladar joined #nim |
13:07:52 | FromDiscord | <mratsim> @Pmunch, for RSA we use bearssl |
13:09:52 | PMunch | Hmm, that might work |
13:10:01 | PMunch | Have you cross compiled for Windows with that? |
13:10:07 | * | noonien joined #nim |
13:11:16 | dom96 | PMunch, wrap RSA_private_encrypt? |
13:11:32 | PMunch | That's what I have done so far |
13:11:37 | PMunch | Manually, for my own library |
13:13:18 | PMunch | I guess I could create a PR to add them to the official module |
13:13:38 | * | Hideki_ quit (Remote host closed the connection) |
13:14:21 | * | Hideki_ joined #nim |
13:17:01 | martinium | what is the equivalent of Python's pass in Nim? |
13:17:10 | FromDiscord | <Recruit_main707> discard |
13:17:16 | martinium | I specifically want to ignore an error so my program doesn't segfault |
13:18:46 | * | Hideki_ quit (Ping timeout: 260 seconds) |
13:18:58 | PMunch | martinium, define "ignore an error" |
13:18:59 | FromDiscord | <Rika> Just as recruit said |
13:19:05 | martinium | to I need to use it within a try: except: block within the except block? |
13:19:12 | martinium | dpo* |
13:19:16 | martinium | do** |
13:19:27 | Zevv | martinium: a segfault is not an exception |
13:19:28 | FromDiscord | <Recruit_main707> discard will do |
13:19:48 | FromDiscord | <Recruit_main707> about the error no idea |
13:19:51 | FromDiscord | <Rika> Zevv, I think you misunderstood |
13:19:51 | Zevv | a segfault is a bullet through the head because your program was behaving very bad |
13:20:07 | martinium | well not really segfault but just so my program doesn't quit on an error that can be handled and not stop the running of the program |
13:20:31 | FromDiscord | <Rika> Not all thrown errors are handlable are they? |
13:20:33 | martinium | segfaults are a very bad error that should and will kill program |
13:20:43 | Zevv | unless you catch SIGSEGV :) |
13:20:52 | Araq | don't... |
13:20:55 | martinium | in my case am getting OSError invalid argument |
13:21:18 | martinium | so want to ignore that one case and continue processing the other 40k cases in the loop |
13:21:23 | Zevv | indeed; catch the exception and do nothing in the except: block |
13:21:54 | martinium | so just the discard keywork in the except block |
13:22:03 | martinium | keyword* |
13:22:04 | Zevv | sure. |
13:22:09 | martinium | ok will try that |
13:23:49 | * | zacharyc1rter joined #nim |
13:23:49 | * | zacharycarter joined #nim |
13:23:56 | * | gmpreussner quit (Quit: kthxbye) |
13:24:16 | * | gmpreussner joined #nim |
13:24:28 | PMunch | Zevv, don't give him any ideas! |
13:24:41 | * | Hideki_ joined #nim |
13:29:20 | PMunch | Uhm, is choosenim broken? |
13:29:38 | FromDiscord | <Rika> kinda apparently, what happened now? |
13:29:57 | PMunch | I compiled Nim locally, and ran "choosenim ." |
13:30:08 | PMunch | But nim --version shows the stable version being chosen.. |
13:31:15 | PMunch | http://ix.io/2jMr |
13:31:50 | PMunch | Uhm: http://ix.io/2jMs |
13:32:28 | PMunch | Oh wait.. |
13:32:38 | PMunch | Somehow Nim has gotten installed through my package manager.. |
13:33:14 | PMunch | Huh, wonder how long it's been like that.. |
13:38:50 | * | Hideki_ quit (Remote host closed the connection) |
13:40:02 | * | Hideki_ joined #nim |
13:43:24 | livcd | package managers are bad for your blood pressure |
13:43:49 | martinium | Zevv, no dice still stops program from running ugh so I either have a more serious logic error or I dunno lol |
13:44:09 | livcd | martinium: post your code |
13:44:37 | * | Hideki_ quit (Ping timeout: 264 seconds) |
13:44:43 | martinium | in a bit have to change gears for work unfortunately |
13:49:16 | disruptek | buy a radeon, they said. |
13:49:16 | martinium | can readFile read an entire directory's contents? |
13:49:28 | disruptek | open drivers that work in linux, they said. |
13:49:33 | FromDiscord | <mratsim> use walkDir / walkDirRec |
13:50:18 | PMunch | livcd, better than scourging SourceForge for installers.. |
13:53:46 | livcd | PMunch: sourceforge |
13:53:48 | livcd | 2020 |
13:54:38 | PMunch | That was all the rage last time I used Windows :P |
13:54:54 | PMunch | installersR'us then |
13:55:12 | shashlick | PMunch - I've not updated nimssl since it's not clear which headers should be wrapped by default |
13:55:23 | Araq | dom96: which Nimble commit should the upcoming Nim ship? |
13:55:31 | shashlick | There's so many and wrapping all will take a long time to render |
13:55:58 | dom96 | when is the upcoming Nim shipping? |
13:56:01 | dom96 | and what version is it? |
13:56:03 | shashlick | But using rsa.nim, you can edit and wrap those headers of interest |
13:58:48 | PMunch | Just added them here instead, hopefully it will be merged :) https://github.com/nim-lang/Nim/pull/14137 |
13:58:49 | disbot | β₯ Add RSA key reading and encrypt/decrypt to openssl |
13:59:41 | * | pbb quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
14:00:13 | * | pbb joined #nim |
14:00:13 | PMunch | I think I've asked this before, but I don't think I got an answer. Is there a way to run the test-suite locally so that I don't have to create a PR and wait to see if it fails? |
14:00:43 | Yardanico | yes of course |
14:00:46 | Yardanico | testament can be run locally :P |
14:01:28 | PMunch | And how do I do that? |
14:01:48 | * | waleee-cl joined #nim |
14:02:08 | Yardanico | ./koch tests ? |
14:02:26 | Yardanico | you also might want to select a category of tests |
14:03:10 | PMunch | Oh boy, my computer sounds like it's about to fly away :P |
14:09:54 | martinium | what is standard way to read/list a directory's contents? |
14:10:51 | narimiran | PMunch: i compile `testament/testament.nim` and then run the category i'm interested in with `./testament/testament cat <myCategory>` |
14:12:45 | * | muffindrake quit (Ping timeout: 240 seconds) |
14:14:54 | PMunch | That seems to work well |
14:17:26 | * | BohlAdmin joined #nim |
14:19:26 | * | nc-x joined #nim |
14:19:35 | nc-x | Araq: https://github.com/Araq/ormin/pull/49 |
14:19:36 | disbot | β₯ import paramCount, paramStr from os.nim |
14:19:40 | PMunch | What was the koch command to quickly build again? |
14:19:46 | PMunch | It's not in --help.. |
14:19:46 | narimiran | PMunch: koch temp? |
14:20:06 | PMunch | That's the one |
14:20:32 | * | Hideki_ joined #nim |
14:22:56 | * | nc-x quit (Remote host closed the connection) |
14:26:19 | disruptek | we should have a deprecation tag that works opposite of since. |
14:30:06 | PMunch | Deprecated until? |
14:33:07 | * | madpata joined #nim |
14:33:18 | * | btbytes joined #nim |
14:34:17 | FromDiscord | <mratsim> from |
14:34:28 | * | btbytes quit (Client Quit) |
14:34:55 | * | btbytes joined #nim |
14:35:53 | * | Hideki_ quit (Ping timeout: 244 seconds) |
14:36:57 | PMunch | Wait, koch temp puts the compiler in a different directory? |
14:37:26 | * | ftsf quit (Ping timeout: 244 seconds) |
14:39:45 | * | hax-scramper quit (Ping timeout: 240 seconds) |
14:40:29 | * | hax-scramper joined #nim |
14:40:52 | disruptek | github 2fa broken. |
14:41:03 | PMunch | Well that's half an our of good confusion I'm not getting back.. |
14:46:20 | disruptek | koch temp makes bin/nim_temp. |
14:46:37 | disruptek | it knows how to call testament, but you can run testament yourself, too. |
14:47:05 | Araq | disruptek: 'validUntil: (2, 0)' |
14:47:17 | Araq | intriguing |
14:47:17 | disruptek | it's a thing? |
14:47:27 | Araq | no, you invented it, I gave it a name |
14:47:30 | disruptek | oh |
14:47:56 | disruptek | it solves the problem. |
14:48:42 | disruptek | endoflife |
14:49:00 | disruptek | removedIn |
14:49:58 | * | BohlAdmin quit (Quit: East bound and down, loaded up and truckin') |
14:50:10 | Araq | fun fact: every single proc in 1.0 has "Potential end of life in 2.0" because that's how semver works |
14:50:16 | FromGitter | <alehander92> hmm |
14:51:13 | disruptek | i guess `until` is the closest antonym, maybe. |
14:51:16 | * | Araq will never be a fan of semver |
14:51:41 | FromGitter | <alehander92> just finding out about `__attribute__((visibility("hidden")))` |
14:52:06 | disruptek | things i wish i never knew. |
14:53:08 | disruptek | today i try to build an obs for native wayland because qtgui/wayland seems to be br0xred on radeon. |
14:53:09 | FromGitter | <alehander92> is this the way |
14:53:18 | FromGitter | <alehander92> to define a function with the same name in 2 .c files |
14:53:46 | Araq | well there is also 'static' |
14:56:39 | FromGitter | <alehander92> hm yeah i am trying it |
14:57:50 | disruptek | stuff in important packages that doesn't run on windows has to produce a noop for windows tests, yes? |
14:59:40 | Araq | disruptek: or we put the test inside a 'when not defined(windows)' |
15:00:00 | Araq | the power of having the data as code *cough* |
15:00:54 | disruptek | this might be one of those days where i find something, anything, else to do. |
15:01:53 | FromDiscord | <mratsim> @disruptek, you're the first person I met that uses wayland? |
15:02:11 | disruptek | today i read that it's the default on gnome. |
15:02:26 | FromDiscord | <mratsim> OpenCL 3.0 specs are in RFC since today btw, with finalization next months AFAIK |
15:02:29 | FromGitter | <alehander92> okk |
15:02:35 | FromGitter | <alehander92> `static` it is thanks Araq |
15:02:46 | FromDiscord | <mratsim> can't use Wayland with Nvidia drivers I think (or maybe they solved that) |
15:03:02 | disruptek | i've been using nouveau. |
15:04:55 | Araq | oh la la, niveau avec nouveau |
15:07:55 | Yardanico | @mratsim I use wayland too |
15:08:01 | Yardanico | although I have an amd gpu |
15:08:49 | Yardanico | and yeah, you can't really use wayland on nvidia because every open source driver implemented GBM for it, and nvidia decided that EGLStreams will be "a better fit" for their driver, and it's only supported in GNOME and Plasma (and it doesn't work that good) |
15:14:57 | disruptek | you say that like it's a bad thing. |
15:16:42 | disruptek | ~stream |
15:16:43 | disbot | stream: 11https://twitch.tv/disruptek (live video/audio) and mumble://uberalles.mumbl.io/ (live voice chat) -- disruptek |
15:16:44 | disruptek | does it work? |
15:17:06 | PMunch | I can see the stream |
15:31:52 | FromDiscord | <Joshua S. Grant> @mratsim https://wiki.gnome.org/Initiatives/Wayland/NVIDIA |
15:38:35 | * | muffindrake joined #nim |
15:38:59 | * | Trustable joined #nim |
15:43:58 | * | madpata quit (Ping timeout: 260 seconds) |
15:50:17 | martinium | is there an equivalent for python's os.listdir()? |
15:52:38 | * | dgb joined #nim |
15:53:36 | livcd | walkdir? |
15:54:22 | FromDiscord | <mratsim> > @mratsim https://wiki.gnome.org/Initiatives/Wayland/NVIDIA |
15:54:22 | FromDiscord | <mratsim> @Joshua S. Grant I'm using KDE but it seems like for Gnome it should work then |
15:56:55 | FromDiscord | <Joshua S. Grant> Don't want to get too offtopic; But yeah, think that Nvidia is starting to relax a tiny-tiny bit and there's general advancements coming from the other-end anyways ... so, matter of time? lol I have a Nvidia Card, use GNOME, but I don't ever really use it because some things like streaming is not where I need it to be on Wayland |
15:57:47 | FromDiscord | <Joshua S. Grant> I'm thinking a realistic timeline is 5 or-so years for now for it to be a "drop-in replacement"; On at least GNOME |
16:00:52 | * | Senketsu joined #nim |
16:02:25 | martinium | livcd, walkDir for some reason wasn't working for me I must be using it wrong. Does it need to be used in a loop or a function? |
16:04:16 | narimiran | martinium: it is an iterator |
16:04:28 | narimiran | here's a small example how to use it: https://nim-lang.github.io/Nim/os.html#walkDir.i%2Cstring |
16:05:47 | martinium | thanks, I just realized something good |
16:06:34 | narimiran | martinium: here's how you could convert it to seq if you want: https://play.nim-lang.org/#ix=2jNn |
16:07:12 | FromGitter | <bung87> walkdirrec is for you |
16:07:57 | FromGitter | <bung87> if you using pythons ,similar behavior |
16:08:44 | martinium | excellent |
16:09:25 | * | rockcavera quit (Remote host closed the connection) |
16:11:01 | * | nc-x joined #nim |
16:12:19 | * | nc-x quit (Remote host closed the connection) |
16:18:29 | * | lbart_ joined #nim |
16:20:02 | * | qwertfisch quit (Quit: ZNC - http://znc.in) |
16:20:34 | * | dadada joined #nim |
16:20:58 | * | dadada is now known as Guest94252 |
16:22:16 | * | qwertfisch joined #nim |
16:26:34 | * | supakeen quit (*.net *.split) |
16:26:34 | * | Guest29708 quit (*.net *.split) |
16:26:34 | * | onionhammer quit (*.net *.split) |
16:26:34 | * | couven92 quit (*.net *.split) |
16:26:34 | * | endragor quit (*.net *.split) |
16:26:34 | * | vesper11 quit (*.net *.split) |
16:26:34 | * | so quit (*.net *.split) |
16:26:35 | * | tribly quit (*.net *.split) |
16:26:35 | * | lbart quit (*.net *.split) |
16:26:35 | * | nekits quit (*.net *.split) |
16:29:17 | * | vesper11 joined #nim |
16:31:53 | * | supakeen joined #nim |
16:31:53 | * | onionhammer joined #nim |
16:31:53 | * | couven92 joined #nim |
16:31:53 | * | endragor joined #nim |
16:32:45 | * | so joined #nim |
16:32:45 | * | tribly joined #nim |
16:32:45 | * | nekits joined #nim |
16:44:26 | * | lbart_ is now known as lbart |
16:53:52 | * | madpata joined #nim |
16:57:15 | * | a_chou joined #nim |
16:57:15 | * | a_chou quit (Client Quit) |
16:57:43 | * | a_chou joined #nim |
16:59:21 | * | btbytes quit (Quit: Textual IRC Client: www.textualapp.com) |
17:00:11 | * | rockcavera joined #nim |
17:11:39 | FromDiscord | <Yardanico> @Joshua S. Grant I use OBS with Wayland (on Sway) just fine, there's a plugin for that π |
17:13:19 | * | a_chou quit (Quit: a_chou) |
17:26:18 | * | so quit (*.net *.split) |
17:26:18 | * | tribly quit (*.net *.split) |
17:26:18 | * | nekits quit (*.net *.split) |
17:26:18 | * | madpata quit (*.net *.split) |
17:26:19 | * | supakeen quit (*.net *.split) |
17:26:19 | * | onionhammer quit (*.net *.split) |
17:26:19 | * | couven92 quit (*.net *.split) |
17:26:19 | * | endragor quit (*.net *.split) |
17:29:00 | * | hax-scramper quit (Read error: Connection reset by peer) |
17:29:17 | * | hax-scramper joined #nim |
17:29:36 | * | so joined #nim |
17:29:36 | * | tribly joined #nim |
17:29:36 | * | nekits joined #nim |
17:29:43 | * | madpata joined #nim |
17:29:44 | * | supakeen joined #nim |
17:29:44 | * | onionhammer joined #nim |
17:29:44 | * | couven92 joined #nim |
17:29:44 | * | endragor joined #nim |
17:33:49 | * | so quit (Ping timeout: 264 seconds) |
17:44:53 | * | so joined #nim |
18:01:57 | * | xcm quit (Remote host closed the connection) |
18:04:10 | * | xcm joined #nim |
18:04:45 | * | hax-scramper quit (Ping timeout: 240 seconds) |
18:04:54 | * | hax-scramper joined #nim |
18:31:27 | * | Romanson quit (Quit: Connection closed for inactivity) |
18:33:53 | * | inv2004 joined #nim |
18:35:35 | inv2004 | Hello, Question: I have nimble lib with k.h header and c.o in the root of the project. binary works ok, but the question about tests folder: config.nims with switch("path", "$projectDir/../src") does not help to find k.h header file for tests, does it mean than I have to add -Isrc to test1.nim ? |
18:35:56 | inv2004 | or probably there is a better way to do it for tests |
18:41:32 | PMunch | Anyone have any input on whether this is my fault or not? https://github.com/nim-lang/Nim/pull/14137 |
18:41:33 | disbot | β₯ Add RSA key reading and encrypt/decrypt to openssl |
18:41:42 | PMunch | The CI fail that is |
18:42:53 | * | xcm quit (Read error: Connection reset by peer) |
18:45:37 | * | xcm joined #nim |
18:48:54 | leorize[m] | it's not your fault |
18:57:58 | PMunch | Sweet |
19:06:39 | * | CcxCZ quit (Quit: WeeChat 2.4) |
19:08:39 | * | CcxCZ joined #nim |
19:08:45 | * | CcxCZ is now known as ccx |
19:10:10 | * | xace quit (Ping timeout: 256 seconds) |
19:12:23 | * | Hideki_ joined #nim |
19:13:58 | * | liblq-dev quit (Ping timeout: 260 seconds) |
19:17:01 | * | Hideki_ quit (Ping timeout: 264 seconds) |
19:19:30 | FromDiscord | <CoolMan> Is there any reason ```net``` should be so slow |
19:19:38 | * | constatinus joined #nim |
19:19:43 | FromDiscord | <CoolMan> I'm getting 42 ping on my own computer |
19:22:00 | FromDiscord | <CoolMan> with -d:release |
19:22:19 | * | PMunch quit (Quit: leaving) |
19:23:29 | * | PMunch joined #nim |
19:23:43 | Yardanico | notice to people here: the discord bot is gonna be down for ~1 min, I'll change its nickname from FromDiscord to "nid" |
19:23:48 | Yardanico | which is shorter and much better to read |
19:24:27 | livcd | \0/ |
19:24:28 | leorize | CoolMan: depends on how you use it |
19:25:33 | Yardanico | ok let's hope it works first try |
19:25:38 | * | FromDiscord quit (Remote host closed the connection) |
19:26:19 | * | nid joined #nim |
19:26:24 | Yardanico | yay |
19:26:30 | nid | <Yardanico> 123 |
19:26:49 | Yardanico | I hope that'll make it easier to read stuff xd |
19:26:58 | livcd | you broke it |
19:27:04 | Yardanico | livcd: ? |
19:27:12 | livcd | check offtopic |
19:27:41 | * | nid quit (Remote host closed the connection) |
19:27:46 | Yardanico | ok |
19:27:48 | leorize | you could just use a proper irc client and you won't need that name to be short |
19:27:49 | Yardanico | idk why it does that wtf |
19:28:00 | Yardanico | ah I know why |
19:28:29 | livcd | leorize: it is bad on mobile with whatever client |
19:28:34 | * | nid joined #nim |
19:28:48 | leorize | go matrix on mobile :P |
19:29:01 | livcd | irssi :p |
19:29:04 | Yardanico | fixed |
19:29:40 | nid | <CoolMan> https://github.com/CoolMineman/stunning-octo-train/ is my code bad or is net just slow? |
19:29:50 | nid | <CoolMan> 0x01 is the ping packet |
19:30:43 | * | xace joined #nim |
19:31:11 | Yardanico | btw I see you use some NBT stuff |
19:31:25 | Yardanico | see https://github.com/Yardanico/nimnbt/blob/master/src/nimnbt.nim how to parse endianness and stuff |
19:31:38 | Yardanico | I mean endianness only though, sorry :P |
19:32:01 | Yardanico | I think I should have code for varint too |
19:35:25 | nid | <CoolMan> varint is a protocal thing |
19:35:38 | nid | <CoolMan> and it is little endian |
19:36:05 | nid | <CoolMan> will probably need the endian stuff in the future tho |
19:36:34 | * | constatinus quit (Quit: leaving) |
19:36:34 | shashlick | what's this bridge now |
19:37:34 | nid | <CoolMan> discord |
19:38:00 | Yardanico | shashlick: people asked to make the nick shorter :P |
19:38:12 | nid | <Rika> maybe make it more explicit |
19:38:12 | Yardanico | @CoolMan I think I had varint decoding somewhere |
19:40:45 | nid | <CoolMan> It's in python? |
19:41:14 | * | noonien quit (Quit: Connection closed for inactivity) |
19:41:34 | Yardanico | who? |
19:42:43 | nid | <CoolMan> your varint |
19:42:57 | Yardanico | maybe i deleted it, but I surely had it in nim |
19:45:51 | FromGitter | <alehander92> wow man |
19:46:00 | FromGitter | <alehander92> that offtopic thing was a wild ride |
19:46:10 | FromGitter | <alehander92> but nid sounds like a real nick of a real person |
19:50:56 | * | letto joined #nim |
19:52:38 | * | letto_ quit (Ping timeout: 260 seconds) |
19:52:54 | shashlick | FromDiscord => nid? |
19:53:04 | Yardanico | yes :D |
19:53:15 | shashlick | okay need to fix my matterbridge config |
19:53:25 | shashlick | i'm not used to seeing <Xyz> for a long time now |
19:56:16 | * | tane joined #nim |
20:05:48 | * | Jesin quit (Quit: Leaving) |
20:06:38 | * | narimiran quit (Ping timeout: 260 seconds) |
20:15:54 | * | Jesin joined #nim |
20:19:44 | * | constatinus joined #nim |
20:22:57 | * | Senketsu quit (Quit: WeeChat 2.8) |
20:27:16 | * | nsf quit (Quit: WeeChat 2.8) |
20:28:16 | livcd | i asked to make the nick really short so it is readable on mobile |
20:29:01 | * | Vladar quit (Quit: Leaving) |
20:36:34 | * | letto_ joined #nim |
20:39:06 | * | letto quit (Ping timeout: 244 seconds) |
20:46:41 | * | lritter quit (Remote host closed the connection) |
20:52:27 | * | PMunch quit (Quit: leaving) |
20:57:38 | * | Senketsu joined #nim |
20:58:48 | * | constatinus quit (Quit: leaving) |
21:00:00 | * | xet7 quit (Quit: Leaving) |
21:01:38 | voltist | shashlick: Thanks for pointing out that it's a known issue. I'll test to see if the problem also occurs when installing 0.16.0 and reply to the issue with my results. |
21:04:47 | Yardanico | i hope not nim 0.16.0 :P |
21:05:01 | Yardanico | ah right you're about corruption |
21:07:39 | * | thomasross joined #nim |
21:08:15 | * | tane quit (Quit: Leaving) |
21:11:01 | FromGitter | <pigmej> Heya, β If I run `nimble build --cpu:arm64 --os:android` then the binary *should* be for arm64 right? Then why I still can run it on amd64 (?) |
21:11:26 | shashlick | @voltist are you also on arch Linux |
21:11:31 | FromGitter | <pigmej> nim `devel` branch and nimble more or less recent |
21:11:44 | voltist | shashlick: Yep |
21:12:01 | dom96 | pigmej: might need to use --passNim:--cpu:arm64 |
21:12:03 | shashlick | Is it musl based |
21:12:29 | FromGitter | <pigmej> yeah that would explain as I had feeling that it's ignoring my settings |
21:13:38 | * | ptdel joined #nim |
21:14:22 | FromGitter | <pigmej> @dom96 but it says then `Error: invalid command line option: '--passNim'` |
21:14:46 | voltist | shashlick: Arch is not musl based. BTW, the specifics you asked for are now on the issue thread. |
21:14:59 | dom96 | maybe your nimble version doesn't support that, `nimble c --cpu...` will definitely work |
21:15:04 | * | Condor joined #nim |
21:16:22 | FromGitter | <pigmej> @dom96 I do have most recent "stable" nim |
21:16:22 | FromGitter | <pigmej> nimble I mean |
21:17:17 | shashlick | @voltist thanks - at least it can be debugged now |
21:18:45 | voltist | shashlick: Yeah. Do you have any guesses as to which recent version might work fine? |
21:18:58 | shashlick | Newer Linux builds now come with precompiled binaries |
21:19:11 | shashlick | But why stuff isn't extracted correctly makes no sense |
21:21:02 | FromGitter | <pigmej> unless there is some super duper trickery going I'm always able to run --cpu:arm64 on amd64... |
21:21:16 | leorize | it's nothing special, really |
21:21:26 | leorize | you probably didn't configure your nim to use a cross compiler |
21:21:34 | leorize | so it complied the generated C code with the native compiler |
21:21:52 | leorize | thus enable you to run the executable |
21:22:04 | shashlick | Or you gave qemu |
21:22:14 | FromGitter | <pigmej> ok, so then how to enable cross compilation? I thought that it's by passing the --cpu |
21:22:32 | FromGitter | <pigmej> https://nim-lang.org/docs/nimc.html#cross-compilation |
21:22:35 | leorize | do you have a cross compiler for android installed? |
21:22:54 | FromGitter | <pigmej> I want native arm64 so I don't need all the "android" stuff |
21:23:01 | Yardanico | ah then you need an arm64 cross-compiler |
21:23:04 | Yardanico | for example zig ;) |
21:23:14 | Yardanico | ah right it's not in 1.2.0 |
21:23:20 | FromGitter | <pigmej> I do have 1.3.1 |
21:23:26 | Yardanico | ah then you might want to try with zig |
21:23:33 | leorize | the manual also states that you need to configure your nim :P |
21:23:45 | Yardanico | download master for your OS from here https://ziglang.org/download/ , add "zig" to your path |
21:24:07 | FromGitter | <pigmej> arch so done :) |
21:24:15 | Yardanico | what version? |
21:24:24 | FromGitter | <pigmej> zig or nim? |
21:24:26 | Yardanico | zig >= 0.6 is needed |
21:24:35 | FromGitter | <pigmej> 1) 6.0-1 |
21:24:49 | Yardanico | then do nim c --cc:zig --cpu:arm64 --passC:"-target aarch64-linux-musleabi" --passL:"-target aarch64-linux-musleabi" yourfile.nim |
21:25:03 | Yardanico | and it'll make a statically linked binary with musl |
21:25:12 | FromGitter | <pigmej> k |
21:25:15 | FromGitter | <pigmej> I need cpp though |
21:25:18 | FromGitter | <pigmej> but that's easy change |
21:25:25 | Yardanico | well then try "cpp" but I'm not sure if zig will work with that |
21:25:29 | Yardanico | ah it won |
21:25:30 | Yardanico | t |
21:25:36 | * | solitudesf quit (Ping timeout: 244 seconds) |
21:25:37 | FromGitter | <pigmej> crap |
21:25:37 | Yardanico | zig only can act as a C compiler rn |
21:26:03 | Yardanico | you'll have to find (or cross-compile yourself) a cross-toolchain for aarch64 (arm64, armv8, same meaning) |
21:26:07 | FromGitter | <pigmej> what about arm-linux-gcc? |
21:26:25 | Yardanico | that's armv7 I guess |
21:26:26 | Yardanico | not 64-bit |
21:26:38 | FromGitter | <pigmej> oh yeah plausible |
21:26:44 | Yardanico | ah there's https://www.archlinux.org/packages/community/x86_64/aarch64-linux-gnu-gcc/ |
21:27:02 | Yardanico | although it will link dynamically with glibc, so your target arm64 device should have glibc with same version or newer too |
21:27:33 | FromGitter | <pigmej> crap |
21:27:50 | FromGitter | <pigmej> so I can go --compileOnly then and just compile on android... |
21:28:01 | FromGitter | <pigmej> will be probably less painfull |
21:28:09 | Yardanico | see https://musl.cc/ |
21:29:26 | FromGitter | <pigmej> yeah libmusl would be an option for static link too |
21:30:11 | FromGitter | <pigmej> ok I thought it's somehow more integrated and having a wish to have it "easy peasy" done. Seems that it will need to wait day or two more :D |
21:30:57 | Yardanico | well with zig that's possible for C backend |
21:31:35 | FromGitter | <pigmej> https://github.com/genotrance/nimfuzzy needs cpp sadly |
21:32:27 | Yardanico | does it? |
21:32:47 | Yardanico | it's really small https://github.com/forrestthewoods/lib_fts/blob/master/code/fts_fuzzy_match.h |
21:32:55 | Yardanico | I guess you can rewrite it in Nim easily :P |
21:32:57 | FromGitter | <pigmej> https://github.com/forrestthewoods/lib_fts#why-c-and-not-c |
21:33:25 | FromGitter | <pigmej> obviously it's not rocket science, |
21:33:30 | FromGitter | <pigmej> but.... again matter of time :) |
21:34:36 | * | zacharyc1rter quit (Ping timeout: 265 seconds) |
21:34:36 | * | zacharycarter quit (Ping timeout: 265 seconds) |
21:39:13 | shashlick | just use a docker image |
21:39:25 | shashlick | dockcross, like nightlies use |
21:39:29 | FromGitter | <Vindaar> maybe just: https://github.com/nim-lang/Nim/blob/devel/tools/dochack/fuzzysearch.nim ? |
21:42:09 | FromGitter | <pigmej> dockcross would be an option too as that would make ndk possible "easy" |
21:42:11 | FromGitter | <pigmej> thx will check |
21:48:59 | FromGitter | <pigmej> @Vindaar that's also nice, maybe would work for me that would mean that I can drop cpp :) |
21:52:07 | nid | <Joshua S. Grant> @Yardanico regarding, obs screencapture on Wayland -- haven't tried it some months, but at the time there was a notable delay to the cursor and some fullscreen apps wouldn't render. It's possible this is an issue more-so with GNOME and they way it's compositor is implemented. Idk lol |
21:52:57 | Yardanico | I'm using an obs plugin https://hg.sr.ht/~scoopta/wlrobs |
21:53:06 | Yardanico | it works fine with Sway, no lags really and all apps render |
21:53:43 | Yardanico | (I use the screencopy backend) |
21:54:06 | FromGitter | <pigmej> hmm.... how can I "import" that file without copy&paste? |
21:54:51 | nid | <Joshua S. Grant> Ah, maybe I'll true that. I was using the flathub's version that was shipping 'GNOME Screencast' or similar |
21:55:26 | * | gangstacat quit (Quit: Δis!) |
21:55:58 | nid | <Technicae Circuit> Anyone familiar with circle ci? |
21:57:19 | leorize | I have a bit of experience |
22:02:01 | * | inv2004 quit (Ping timeout: 264 seconds) |
22:02:22 | * | dddddd quit (Ping timeout: 260 seconds) |
22:04:41 | * | zacharycarter joined #nim |
22:04:46 | * | zacharyc1rter joined #nim |
22:09:00 | * | zacharycarter quit (Ping timeout: 244 seconds) |
22:09:03 | * | inv2004 joined #nim |
22:09:22 | * | zacharyc1rter quit (Ping timeout: 260 seconds) |
22:09:24 | FromGitter | <pigmej> ok sadly @Vindaar that search is more optimized for short single symbols from what I see than bigger texts |
22:09:33 | FromGitter | <pigmej> anyway enough input ;-) |
22:09:33 | * | inv2004 quit (Read error: Connection reset by peer) |
22:19:15 | * | Cthalupa quit (Ping timeout: 265 seconds) |
22:20:01 | * | Cthalupa joined #nim |
22:21:06 | * | ptdel quit (Remote host closed the connection) |
22:26:29 | * | xet7 joined #nim |
22:26:59 | * | chemist69 quit (Ping timeout: 265 seconds) |
22:27:01 | * | ptdel joined #nim |
22:27:23 | * | chemist69 joined #nim |
22:27:36 | * | Cthalupa quit (Ping timeout: 244 seconds) |
22:28:05 | * | Cthalupa joined #nim |
22:29:34 | nid | <Joshua S. Grant> 'true that' ahahaha didn't even notice at the time; one of the funnier autocorrects I've got tbh |
22:57:45 | * | Trustable quit (Remote host closed the connection) |
22:58:21 | * | natrys quit (Quit: natrys) |
23:05:47 | Prestige | Is there a way to do math operations on a float and int and expect a float result (that's built in)? I've just been converting the int to a float |
23:06:05 | Prestige | like x = float(someInt) * 2.5 |
23:14:06 | * | Hideki_ joined #nim |
23:15:37 | shashlick | lenientops |
23:16:59 | Prestige | Thanks shashlick |
23:18:30 | * | Hideki_ quit (Ping timeout: 260 seconds) |
23:23:01 | * | noonien joined #nim |
23:36:10 | nid | <Technicae Circuit> I wonder if i could use Kivy with Nim... |
23:42:01 | * | ptdel quit (Remote host closed the connection) |
23:50:00 | * | Senketsu quit (Quit: WeeChat 2.8) |
23:52:02 | * | krux02_ joined #nim |
23:54:24 | * | krux02 quit (Ping timeout: 244 seconds) |
23:59:46 | * | ftsf joined #nim |