00:53:31 | * | arkurious quit (Quit: Leaving) |
00:53:58 | * | theelous3 quit (Read error: Connection reset by peer) |
00:56:05 | FromDiscord | <treeform> In reply to @ajusa "Wait was Pixie originally": Originally I though pixxy, but Pixie is a real word and easier to spell & communicate. |
00:56:59 | * | nphg joined #nim |
00:58:58 | * | nphg1 quit (Ping timeout: 272 seconds) |
01:21:46 | FromDiscord | <Rika> In reply to @ElegantBeef "It's about passing more": Return type overloading :InaDrool: |
01:37:12 | FromDiscord | <ElegantBeef> Exactly |
01:38:41 | * | abm quit (Read error: Connection reset by peer) |
01:39:58 | FromDiscord | <InventorMatt> I think matlab has partial return type overloading where based on the number of variables you are returning you can get different outputs |
01:41:47 | FromDiscord | <Rika> thats just normal overloading |
01:42:32 | FromDiscord | <ElegantBeef> return type overloading uses the l value to disambiguate the value |
01:44:45 | FromDiscord | <ElegantBeef> And yes i say l value like i pretend to know the actual term 😄 |
02:23:37 | FromDiscord | <Airbus5717> Does nim js target need nodejs? Or depends on it? |
02:25:24 | FromDiscord | <InventorMatt> No it does not |
02:33:00 | FromDiscord | <Airbus5717> Amazing↵Nodejs is just pain↵Iam going to try nim then |
02:37:24 | FromDiscord | <krab4t> anyone know a vscode color theme for better nim syntax highlight? |
02:38:07 | * | letto is now known as letto__ |
02:38:21 | * | letto__ is now known as letto |
02:43:15 | FromDiscord | <krab4t> sublime one also bad 😦 |
02:51:00 | Prestige | Which are you using? |
02:53:08 | FromDiscord | <krab4t> default |
02:53:44 | Prestige | vscode has built-in nim syntax highlighting? |
02:56:33 | FromDiscord | <krab4t> from kosz78.nim extension |
02:58:31 | Prestige | try the nimsaem plugin |
03:08:34 | FromGitter | <bung87> vscode's synatx highlight provide by config file |
03:27:33 | * | spiderstew_ joined #nim |
03:28:37 | * | spiderstew quit (Ping timeout: 250 seconds) |
03:42:22 | * | rockcavera quit (Remote host closed the connection) |
04:05:00 | * | arecaceae quit (Remote host closed the connection) |
04:05:19 | * | arecaceae joined #nim |
04:49:41 | FromDiscord | <Rika> @treeform i apologise if this is not where i should ask, but do you have any plans for non-rectangular bounds for typesetting in pixie? i've been reading the typeset proc and its kinda hard for me to understand whats going on |
04:53:07 | ForumUpdaterBot | New post on r/nim by evilguy50: Question about ast and nim nodes., see https://reddit.com/r/nim/comments/nmq3qc/question_about_ast_and_nim_nodes/ |
05:11:24 | FromDiscord | <treeform> In reply to @Rika "<@!107140179025735680> i apologise if": We do not have plans for it. That is some thing more advanced. What exactly are you trying to typeset? |
05:12:21 | * | narimiran joined #nim |
05:12:39 | FromDiscord | <Rika> let's say a comic bubble |
05:13:27 | FromDiscord | <Rika> i'd love to try but im unsure where to start learning about the guts of the library |
05:19:01 | Prestige | Is it just rendered to a buffer? If so maybe you could just clip an area? |
05:25:31 | FromDiscord | <Rika> i'm talking about word wrapping |
05:26:24 | Prestige | oh |
05:28:19 | FromDiscord | <Rika> aka a very complex problem |
05:32:16 | * | hyiltiz quit (Ping timeout: 252 seconds) |
05:35:43 | * | hyiltiz joined #nim |
05:35:43 | * | hyiltiz quit (Changing host) |
05:35:43 | * | hyiltiz joined #nim |
05:41:49 | FromDiscord | <Ondrejoda> sent a code paste, see https://play.nim-lang.org/#ix=3o5t |
05:42:05 | FromDiscord | <Ondrejoda> (edit) "https://paste.rs/XKe" => "https://play.nim-lang.org/#ix=3o5u" |
05:42:40 | FromDiscord | <ElegantBeef> not using `=` for proc impl |
05:42:52 | FromDiscord | <Ondrejoda> yeah, just noticed :D |
05:43:00 | FromDiscord | <Ondrejoda> i have been doing too much python |
05:52:05 | FromDiscord | <Ondrejoda> In reply to @Ondrejoda "why won't this work?": also, how can i make a constructor function for that class? |
05:52:35 | FromDiscord | <Rika> you make a regular function |
05:52:40 | FromDiscord | <Rika> called initLexer or so |
05:52:43 | FromDiscord | <Rika> that returns a Lexer |
05:52:47 | FromDiscord | <Rika> thats pretty much it |
05:53:11 | FromDiscord | <Ondrejoda> sent a code paste, see https://play.nim-lang.org/#ix=3o5y |
05:53:17 | FromDiscord | <Rika> usually its initLexer but yes |
05:53:35 | FromDiscord | <Ondrejoda> ok, thanks! |
05:53:45 | FromDiscord | <ElegantBeef> Yep and convention is `name: type` 😛 |
06:03:50 | FromDiscord | <Ondrejoda> also, is there anything like `null` in Nim? |
06:04:18 | FromDiscord | <Ondrejoda> i tried `null, none, NONE, NULL` and nothing |
06:04:24 | Prestige | nil |
06:04:28 | FromDiscord | <Ondrejoda> oh |
06:04:30 | FromDiscord | <Ondrejoda> :D |
06:04:34 | FromDiscord | <ElegantBeef> normal objects are non nilable |
06:04:39 | FromDiscord | <ElegantBeef> they need to be ref to be nilable |
06:05:39 | FromDiscord | <Ondrejoda> so how do i check if a char is not empty (if i am at the end of a file?) |
06:06:03 | FromDiscord | <Ondrejoda> since `character != ''` doesn't work |
06:06:12 | FromDiscord | <Rika> characters cannot be empty |
06:06:23 | FromDiscord | <Rika> an exception will be raised if you try to read eof |
06:06:44 | FromDiscord | <Ondrejoda> so then how do i know that i am at the end of a file? |
06:06:49 | FromDiscord | <Ondrejoda> oh |
06:06:58 | FromDiscord | <Ondrejoda> the file api does that for me |
06:06:59 | FromDiscord | <Ondrejoda> i see |
06:07:34 | FromDiscord | <Rika> https://nim-lang.org/docs/io.html#endOfFile%2CFile |
06:10:40 | FromDiscord | <Ondrejoda> also, how can i fix this? `type mismatch: got <int, int literal(1)>` |
06:11:32 | FromDiscord | <Rika> well we need more details than that |
06:11:36 | FromDiscord | <Ondrejoda> sent a code paste, see https://play.nim-lang.org/#ix=3o5I |
06:11:42 | FromDiscord | <Rika> self: var Lexer |
06:11:52 | FromDiscord | <Ondrejoda> oh |
06:11:53 | FromDiscord | <Rika> you need to mark stuff as mutable |
06:12:10 | FromDiscord | <Ondrejoda> hey, that works! |
06:12:12 | FromDiscord | <ElegantBeef> The actual error message will say the mismatch is `got Lexer` but expected `var Lexer` |
06:12:23 | FromDiscord | <Ondrejoda> In reply to @ElegantBeef "The actual error message": well it didn't |
06:12:26 | FromDiscord | <ElegantBeef> It does |
06:12:56 | FromDiscord | <ElegantBeef> https://media.discordapp.net/attachments/371759389889003532/847719063593025566/unknown.png |
06:13:13 | FromDiscord | <Ondrejoda> sent a code paste, see https://play.nim-lang.org/#ix=3o5J |
06:13:26 | FromDiscord | <Ondrejoda> (edit) "https://play.nim-lang.org/#ix=3o5J" => "https://play.nim-lang.org/#ix=3o5K" |
06:13:29 | FromDiscord | <Rika> oops |
06:13:32 | FromDiscord | <Rika> sent a long message, see http://ix.io/3o5L |
06:13:33 | FromDiscord | <Rika> https://media.discordapp.net/attachments/371759389889003532/847719219327401994/unknown.png |
06:13:39 | FromDiscord | <Rika> `but expression 'self.pos' is immutable, not 'var'` |
06:13:52 | FromDiscord | <Ondrejoda> yeah, noticed it |
06:13:54 | FromDiscord | <Ondrejoda> :D |
06:13:54 | FromDiscord | <ElegantBeef> Yea i mean i wasnt exact, just paraphrasing |
06:14:10 | FromDiscord | <ElegantBeef> The first line is the type of error and why it happened the others are the mismatches |
06:14:45 | FromDiscord | <Ondrejoda> i must say that nim has waaaaay better error messages than c++ or zig or nim |
06:14:55 | FromDiscord | <ElegantBeef> Nim has better errors than nim? 😄 |
06:15:00 | FromDiscord | <Ondrejoda> (edit) "nim" => "python" |
06:15:15 | FromDiscord | <Ondrejoda> i meant python 😄 |
06:15:47 | FromDiscord | <Ondrejoda> zig errors are horrible |
06:15:50 | FromDiscord | <ElegantBeef> Depends on where you're at/what you're doing, eventually you'll hit `indention errors` |
06:15:51 | FromDiscord | <Rika> nim has better errors than zig? |
06:15:53 | FromDiscord | <Rika> no way |
06:16:00 | FromDiscord | <Ondrejoda> In reply to @Rika "nim has better errors": oh yes it does |
06:16:06 | FromDiscord | <ElegantBeef> Was going to say Zig is proud of it's error messages |
06:16:09 | FromDiscord | <Rika> @ElegantBeef indentation errors |
06:16:10 | FromDiscord | <Ondrejoda> at least that's my opinion |
06:16:25 | FromDiscord | <ElegantBeef> Remind me why you added me as a friend? 😛 |
06:16:41 | FromDiscord | <Rika> because i was gonna dm you about a question but you werent the right person |
06:16:46 | FromDiscord | <Rika> (i thought you were) |
06:16:58 | FromDiscord | <ElegantBeef> Damn i'm never the right person |
06:17:05 | FromDiscord | <Rika> god damn i was just being honest |
06:17:27 | FromDiscord | <Ondrejoda> one more thing about zig, i think that zig is just more painful C↵||that's my opinion, not yours|| |
06:17:28 | FromDiscord | <ElegantBeef> I'm just joking of course |
06:18:10 | FromDiscord | <Rika> oh totally same opinion there |
06:18:24 | FromDiscord | <Rika> i dont understand how no overloading is better but oh well |
06:18:25 | FromDiscord | <Rika> opinions |
06:18:55 | FromDiscord | <Ondrejoda> yeah, that's is a really bad thing about zig |
06:19:51 | FromDiscord | <Ondrejoda> plus it's not even 1.0 |
06:19:58 | FromDiscord | <Ondrejoda> which nim is way past that |
06:20:20 | FromDiscord | <Rika> well |
06:20:29 | FromDiscord | <Rika> i'd argue nim and zig are roughly the same stability |
06:20:45 | FromDiscord | <Ondrejoda> ¯\_(ツ)_/¯ |
06:42:55 | * | k0mpjut0r joined #nim |
06:45:10 | * | Vladar joined #nim |
06:54:53 | ForumUpdaterBot | New thread by Hypnos97: Hello all , see https://forum.nim-lang.org/t/8051 |
06:56:14 | Prestige | Wasn't this posted a few days ago? |
06:59:50 | narimiran | Prestige: https://forum.nim-lang.org/t/8032 ? |
07:00:25 | narimiran | yeah, this new one is most likely a spammer who will later edit his post and add some links :/ |
07:06:46 | * | aeverr quit (Ping timeout: 240 seconds) |
07:32:58 | * | narimiran quit (Ping timeout: 265 seconds) |
07:35:21 | FromDiscord | <Airbus5717> Today I considered nim over d for one reason↵JavaScript target↵And I'm going to start today learning it |
07:35:46 | FromDiscord | <Airbus5717> Even tho I am a slow learner |
07:35:57 | FromDiscord | <Airbus5717> I hate learning new langs |
07:36:08 | FromDiscord | <ElegantBeef> But nim is magical, so you'll love learning it |
07:55:00 | ForumUpdaterBot | New thread by B3liever: AddressSanitizer with Nim and -cc:gcc, see https://forum.nim-lang.org/t/8052 |
08:02:49 | * | pbb joined #nim |
08:03:38 | * | pbb quit (Client Quit) |
08:08:21 | * | Ekho left #nim ("CORE ERROR, SYSTEM HALTED") |
08:10:36 | * | motersen_ joined #nim |
08:12:21 | * | motersen quit (Ping timeout: 240 seconds) |
08:14:56 | FromDiscord | <quarternion> Hi, where are `magic` procedures normally located in Nim source tree? For example, `setLen(string)` calls a magic procedure `SetLengthStr`, where is it? Is it written in C? |
08:17:36 | FromDiscord | <ElegantBeef> It's in the compiler https://github.com/nim-lang/Nim/blob/8ccde68f132be4dba330eb6ec50f4679e564efac/lib/system/sysstr.nim#L234 |
08:27:18 | FromDiscord | <quarternion> @ElegantBeef Thanks. I messed up the case when searching. I typed `SetLengthStr` 🙂 I brought my csharp habit unconsciously |
08:28:10 | FromDiscord | <ElegantBeef> Ah i came from C# aswell, and may or may not have wrote a few nim files abusing conventions for a bit, so you'll get over it 😄 |
08:31:37 | * | PMunch joined #nim |
08:35:21 | * | cornfeedhobo quit (Quit: ZNC - https://znc.in) |
08:37:31 | * | tane joined #nim |
08:43:50 | * | cornfeedhobo joined #nim |
09:06:11 | FromDiscord | <Rika> What kind of conditions warrant a magic proc |
09:07:53 | FromDiscord | <Airbus5717> Bruh the syntax is kinda confusing |
09:10:59 | FromDiscord | <Rika> Depends on the programmer |
09:11:06 | FromDiscord | <Rika> I found it very intuitive at the start |
09:11:13 | FromDiscord | <Rika> What are you confused by? |
09:12:31 | * | narimiran joined #nim |
09:28:23 | Oddmonger | var as ref in function paremeters |
09:31:06 | FromDiscord | <Recruit_main707> var is an implicit pointer, and you treat it as a mutable argument in the function, ref is like passing the actual pointer to the function and treating it like a pointer |
09:31:17 | Oddmonger | named members mandatory when passing a tuple as parameter,but optionals when it's an object |
09:32:43 | Oddmonger | {.byaddr.} to have a true reference on a type |
09:34:21 | Oddmonger | @Recruit_main707 yes i know ref is not the C `&`, but it's disturbing at first encounter |
09:36:42 | FromDiscord | <Varriount> To me, references in C and C++ are the odd ones. In almost every other context I've read, "reference" means a pointer to a piece of dynamically allocated memory whose lifetime is automatically managed (usually via garbage collection). |
09:41:55 | FromDiscord | <Rika> That’s why it’s dependent on the programmer |
09:52:38 | FromDiscord | <kunitoki> hey here, can the nim compiler detect use after move ? |
09:52:48 | FromDiscord | <Airbus5717> In reply to @Rika "What are you confused": Well I was reading the complier sec code ↵And it was a bit confusing |
10:08:28 | FromDiscord | <Rika> In reply to @kunitoki "hey here, can the": I believe so when using arc yes |
10:13:36 | FromDiscord | <kunitoki> it doesn't seem the case |
10:13:50 | FromDiscord | <kunitoki> maybe i just got implemented wrong the =sink |
10:13:59 | FromDiscord | <kunitoki> it's not clear from the documentation |
10:15:13 | FromDiscord | <kunitoki> sent a code paste, see https://play.nim-lang.org/#ix=3o6x |
10:15:59 | FromDiscord | <kunitoki> sent a code paste, see https://play.nim-lang.org/#ix=3o6z |
10:16:08 | * | lritter joined #nim |
10:16:58 | FromDiscord | <kunitoki> sent a code paste, see https://play.nim-lang.org/#ix=3o6A |
10:17:30 | FromDiscord | <kunitoki> (edit) "https://play.nim-lang.org/#ix=3o6A" => "https://play.nim-lang.org/#ix=3o6B" |
10:17:46 | * | tane quit (Ping timeout: 240 seconds) |
10:20:11 | FromDiscord | <kunitoki> https://play.nim-lang.org/#ix=3o6D i have this, it seems to work in the playground |
10:20:18 | FromDiscord | <kunitoki> but locally it does |
10:20:51 | FromDiscord | <kunitoki> sent a code paste, see https://play.nim-lang.org/#ix=3o6E |
10:21:08 | FromDiscord | <kunitoki> it seems like i'm deallocating twice |
10:22:33 | FromDiscord | <kunitoki> the `wasMoved` is also strange. it's `source` that was moved, not `dest` 😄 |
10:25:52 | * | rusua quit (Quit: Connection closed for inactivity) |
10:34:02 | FromDiscord | <kunitoki> in the playground it works as it's not using `--gc:arc` |
10:36:48 | * | aeverr joined #nim |
10:43:23 | FromDiscord | <Rika> what nim version? |
10:43:34 | FromDiscord | <Rika> is your local, i mean |
10:45:23 | FromDiscord | <kunitoki> 1.4.8 |
10:46:09 | FromDiscord | <Rika> huh |
10:46:50 | FromDiscord | <kunitoki> i converted the example to use a `ptr UncheckedArray[float]` instead of `ptr float` |
10:46:54 | FromDiscord | <kunitoki> but same issue |
10:47:51 | nphg | should the compiler warn/error if one implements `=destroy` but not `=copy`? |
10:48:08 | FromDiscord | <kunitoki> i was wondering in fact if i had to implement =copy as well |
10:48:23 | FromDiscord | <kunitoki> or if you miss to implement one of the triad it explodes |
10:48:39 | FromDiscord | <Rika> so does it work with =copy implemented? |
10:48:47 | FromDiscord | <kunitoki> like the rule of 3 or 5 or 7 (i lost the number) in c++ |
10:49:49 | nphg | `=sink` is documented as optional |
10:50:07 | nphg | so, the other two should be enough |
10:50:29 | FromDiscord | <kunitoki> yeah it works ! |
10:51:46 | FromDiscord | <kunitoki> it is not exactly clear from the documentation that forgetting to implement =copy you might crash |
10:55:59 | FromDiscord | <kunitoki> I would say that if i want a sink, the compiler could have been preventing that i got a copy |
10:56:51 | FromDiscord | <kunitoki> Is there a way to force a move to be honored? |
10:57:17 | FromDiscord | <kunitoki> And error if i can't? |
10:58:41 | FromDiscord | <kunitoki> In reply to @kunitoki "yeah it works !": By it works i mean it doesn't crash. Byt i know get a copy when i don't want |
10:58:55 | FromDiscord | <kunitoki> (edit) "know" => "now" |
11:00:12 | FromDiscord | <Rika> i think |
11:00:12 | FromDiscord | <Rika> sent a code paste, see https://play.nim-lang.org/#ix= |
11:00:15 | FromDiscord | <kunitoki> (edit) "Byt" => "But" |
11:00:18 | FromDiscord | <Rika> or did it have a = |
11:00:20 | FromDiscord | <Rika> i forgot |
11:00:23 | FromDiscord | <Rika> try both |
11:03:29 | FromDiscord | <clyybber> @kunitoki The source gets cleared out by the compiler |
11:03:42 | FromDiscord | <clyybber> You dont have to do it in =sink |
11:04:07 | FromDiscord | <clyybber> You can use --expandArc:procname to inspect the generated code |
11:05:36 | * | Vladar quit (Quit: Leaving) |
11:05:36 | FromDiscord | <clyybber> Not having =sink clear out the source is nice because then we dont have to have another pointer indirection for the src arg if its not needed and the clearing out part can be optimized away sometimes |
11:06:52 | FromDiscord | <clyybber> you can mark =copy as error as rika said and then explicitly use 'move x' instead of 'x' to force a move |
11:07:01 | * | letto quit (Quit: Konversation terminated!) |
11:07:33 | * | letto joined #nim |
11:10:20 | FromDiscord | <kunitoki> thanks `clyybber` ! |
11:10:26 | FromDiscord | <kunitoki> now we are talking |
11:10:28 | FromDiscord | <clyybber> In reply to @kunitoki "but it's more natural": the wasMoved there isn't really needed if your =destroy already clears out the dest |
11:10:33 | * | mindhunter0x quit (Read error: Connection reset by peer) |
11:10:38 | FromDiscord | <kunitoki> `Error: '=copy' is not available for type <Buffer>; requires a copy because it's not the last read of 'tup'; another read is done here: test_arc.nim(29, 8); routine: main` |
11:10:52 | FromDiscord | <kunitoki> i like this 😄 |
11:11:05 | FromDiscord | <clyybber> glad to hear :D |
11:11:45 | FromDiscord | <kunitoki> yeah, i'm a +20 years C++ developer and recently i've been looking in Nim. it's absorbing ! |
11:11:59 | FromDiscord | <kunitoki> lot to be discovered still |
11:12:17 | FromDiscord | <kunitoki> but it's a fun process 😄 |
11:13:24 | FromDiscord | <Rika> nice |
11:13:27 | * | arkurious joined #nim |
11:26:26 | * | tane joined #nim |
11:30:03 | FromGitter | <gogolxdong> How to define a ERC20 token contract with nim-web3? |
11:30:30 | FromGitter | <gogolxdong> Do I have to enumrate all functions and variables? |
11:33:39 | * | kitech1- joined #nim |
11:34:12 | * | kitech1 quit (Ping timeout: 272 seconds) |
11:44:52 | * | NimBot joined #nim |
11:47:38 | * | Vladar joined #nim |
11:52:33 | FromDiscord | <kunitoki> In reply to @Clyybber "you can mark =copy": I would have preferred the compiler to warn me if i was missing the definition of =copy or at least saying that the generated copy was preventing the move and resulted in possible double deletes |
11:54:00 | * | rockcavera joined #nim |
12:12:05 | Oddmonger | for me, the real PITA with nim is «foo (…)» vs «foo(…)» |
12:12:09 | FromGitter | <gogolxdong> Do we have to deployContract for interacting with a contract? |
12:13:23 | FromDiscord | <Rika> In reply to @Oddmonger "for me, the real": ive never really encountered that issue, why do you think its an issue? |
12:13:53 | FromGitter | <gogolxdong> or how to constrcut a contratc instance from strandard ERC20 abi and known address |
12:15:58 | Oddmonger | @Rika : because the first time i've encountered it, i've spent hours for understanding the error message |
12:16:29 | Oddmonger | finally, i rewrite it (without the space , lucky) and compare the two lines |
12:17:49 | Oddmonger | i like nim, but a language shouldn't be influenced by invisible glyph |
12:18:47 | FromDiscord | <Rika> a space is visible |
12:18:58 | FromGitter | <bung87> @gogolxdong you can read eth document , write your contract in another language I dont remenber the language name , also seems they deprecated web3js |
12:20:18 | FromDiscord | <Rika> oddmonger it looks like the space thing is rectified in newer nim versions anyway https://media.discordapp.net/attachments/371759389889003532/847811515347632128/unknown.png |
12:22:13 | FromDiscord | <Rika> (i am on devel) |
12:22:25 | Oddmonger | @rika : ok it seems to work, but why did it said «may be the space before…» |
12:22:38 | FromDiscord | <Rika> wdym? |
12:23:25 | Oddmonger | your (int,int) instead of (float,float) has been detected, so why does the compiler speak about space before '(' ? |
12:23:39 | Oddmonger | i'm not on devel so i cannot try |
12:24:38 | nphg | nim 1.4.8 has the same behaviour. And the compiler detected (int, int) instead of float |
12:26:13 | Oddmonger | with nim 1.4.6 i have the same message |
12:28:37 | Oddmonger | so it begins to check validity of parameters, but i leave the space after correcting to floats, i have a clear message about the space |
12:29:39 | FromDiscord | <Rika> In reply to @Oddmonger "your (int,int) instead of": theyre literals, so it can be coerced into floats, BUT the space is brought up because it's parsed as a tuple being passed into the function |
12:30:14 | FromDiscord | <Rika> oh, i guess literals dont become floats |
12:30:20 | FromDiscord | <Rika> got used to that from another language |
12:30:31 | FromDiscord | <Rika> mb |
12:51:59 | * | Cthalupa quit (Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in) |
12:59:01 | FromDiscord | <enthus1ast> hi folks, any idea why on a FreeBSD (FreeNAS) clang does not find any headers? (for example limits.h) |
12:59:36 | FromDiscord | <enthus1ast> or do you have a clue how to make FreeBSD nim friendly? |
13:00:18 | * | Cthalupa joined #nim |
13:05:34 | FromDiscord | <enthus1ast> (i must say FreeNAS, the clicki part is very nice, but the FreeBSD underneath is absolutely terrible) |
13:11:44 | * | rockcavera quit (Ping timeout: 272 seconds) |
13:12:56 | * | rockcavera joined #nim |
13:39:02 | FromGitter | <bung87> hey , I create a 1024 mysql connection pool , when I run concurrent requests only work around 100 requests , any help ? |
13:40:10 | FromGitter | <bung87> max_connections | 10240 | ⏎ | mysqlx_max_connections | 10240 | |
13:47:04 | * | narimiran quit (Ping timeout: 265 seconds) |
13:48:10 | Prestige | @bung87 can you show what you're doing? I haven't worked with mysql in Nim yet but I could take a look |
13:53:58 | FromDiscord | <quarternion> @enthus1ast I think you can pass compiler and linker options with `-t, --passC:OPTION` and `-l, --passL:OPTION`. Save the options in a `nim.cfg` file and the compiler will use it. |
13:55:32 | FromGitter | <bung87> @Prestige https://github.com/bung87/amysql/tree/master/experiments test_concurrent_server.nim test_concurrent.nim |
13:56:16 | FromDiscord | <enthus1ast> yes i know, but it seems that even clang cannot find basic headers (when in a c/cpp file) like iostream etc.. |
13:56:25 | FromGitter | <bung87> it's runnable code , but you need setup database first. |
13:58:59 | FromGitter | <bung87> am planning add my framework to TechEmpower, but currently only plaintext and json passed. |
13:59:02 | FromDiscord | <quarternion> @enthus1ast where are headers located? Is it somewhere in `/usr/local/` |
13:59:23 | FromDiscord | <enthus1ast> this is the question... |
14:01:07 | FromDiscord | <enthus1ast> sent a code paste, see https://play.nim-lang.org/#ix=3o7m |
14:04:19 | FromDiscord | <quarternion> At least you can use `gcc` 🙂 |
14:05:32 | FromDiscord | <enthus1ast> then i think i must change the build.sh script |
14:05:51 | FromDiscord | <enthus1ast> (for building nim from source) |
14:06:16 | * | crem1 joined #nim |
14:06:22 | * | crem quit (Remote host closed the connection) |
14:06:23 | FromDiscord | <enthus1ast> nope same 🙂 |
14:06:34 | FromDiscord | <quarternion> Or can you install `clang` from `pkg` |
14:09:14 | Prestige | hm I'm not sure @bung87 - you have a loop creating the connections, does it just stop part way through? |
14:11:49 | FromDiscord | <enthus1ast> sent a code paste, see https://play.nim-lang.org/#ix=3o7s |
14:18:57 | FromDiscord | <quarternion> This is strange. Is it due to freenas customization.? |
14:19:26 | FromDiscord | <quarternion> BTW, have you update the local pkg catelogue by running "pkg update" |
14:19:38 | FromDiscord | <enthus1ast> unfortunately i do not know, i'm not that familiar with freebsd |
14:19:50 | FromDiscord | <enthus1ast> In reply to @quarternion "BTW, have you update": yes |
14:21:00 | FromGitter | <bung87> Dont know but its always connection error |
14:41:16 | * | lf joined #nim |
14:41:39 | * | lf is now known as Guest43465 |
14:50:23 | * | Guest43465 quit (Quit: Guest43465) |
15:06:55 | * | PMunch quit (Quit: leaving) |
15:15:46 | * | Vladar quit (Ping timeout: 240 seconds) |
15:18:38 | * | Vladar joined #nim |
15:28:41 | Prestige | What's the error? |
15:47:12 | * | narimiran joined #nim |
15:50:41 | * | Guest43465 joined #nim |
15:52:20 | FromGitter | <bung87> https://pastebin.com/B18r2p43 |
16:22:43 | FromDiscord | <quarternion> @enthus1ast This post says you shouldn't use pkg on FreeNAS. `jail` should be used instead. https://unix.stackexchange.com/questions/301640/how-to-pkg-upgrade-on-freenas-freebsd |
16:39:06 | * | willyboar joined #nim |
16:39:50 | * | narimiran quit (Ping timeout: 260 seconds) |
16:43:28 | FromDiscord | <enthus1ast> @quarternion des i've enable the repos. But yes maybe I should start useing jails |
16:43:37 | FromDiscord | <enthus1ast> (edit) "des" => "yes" |
16:51:04 | ForumUpdaterBot | New thread by Sdmcallister: Sql proc getJsonRows : alternatives/feedback, see https://forum.nim-lang.org/t/8053 |
17:00:27 | * | crem1 quit (Ping timeout: 258 seconds) |
17:00:46 | * | crem1 joined #nim |
17:17:01 | FromDiscord | <Mustache Man> I noticed Meros (MerosCrypto) was written in Nim. would its creator happen to be active in here? |
17:17:07 | FromDiscord | <Mustache Man> (edit) "I noticed Meros (MerosCrypto) was written in Nim. would its creator ... happen" added "(or any contributors)" |
17:17:50 | FromDiscord | <Mustache Man> oh nvm they have a link to their own discord on their github |
17:17:59 | * | rockcavera quit (Read error: Connection reset by peer) |
17:17:59 | * | lf joined #nim |
17:18:23 | * | lf is now known as Guest40726 |
17:19:01 | * | rockcavera joined #nim |
17:21:03 | * | Guest43465 quit (Ping timeout: 250 seconds) |
17:35:52 | * | Guest40726 quit (Quit: Guest40726) |
17:38:52 | * | aenesidemus joined #nim |
18:07:48 | * | sz0 joined #nim |
18:36:04 | * | Guest40726 joined #nim |
18:58:27 | FromDiscord | <garett> If I `alloc` an object and store a proc in it, is there any way to ensure the proc’s enclosed references are cleaned up before I `dealloc` the object? |
18:58:57 | FromDiscord | <garett> I think any proc can potentially be a closure? |
18:59:44 | FromDiscord | <garett> Or is that only the case when the `{.closure.}` pragma is applied? |
19:13:06 | * | lritter quit (Ping timeout: 240 seconds) |
19:19:20 | FromDiscord | <Varriount> @garett The Nim compiler will usually convert a proc to a closure automatically. |
19:20:51 | FromDiscord | <garett> I read in the manual that a `proc` type is a closure by default, so I expect that the field in my object is potentially enclosing an environment. I don't know whether it is safe for `alloc`ed memory to reference a closure, or whether the closure can ever be garbage collected in that case. |
19:21:57 | FromDiscord | <garett> Does such a closure have an implicit `=destroy`? |
19:35:52 | * | Guest40726 quit (Quit: Guest40726) |
19:36:09 | * | Guest40726 joined #nim |
19:46:00 | FromDiscord | <j-james> I'm trying to compile the examples in https://nim-lang.org/docs/hcr.html, and ran into an `object constructor needs an object type` error |
19:46:18 | FromDiscord | <j-james> What exactly does that mean? |
19:47:13 | * | narimiran joined #nim |
19:56:35 | FromDiscord | <ElegantBeef> what's the line? |
20:03:25 | FromDiscord | <j-james> `var rect = Rect(x: posX - 25, y: posY - 25, w: 50.cint, h: 50.cint)` |
20:05:26 | ForumUpdaterBot | New thread by IvanS: Windows Sapi 5 - com unclear (new to Nim - programming with Nim after Python proof of concept), see https://forum.nim-lang.org/t/8054 |
20:11:01 | FromDiscord | <ElegantBeef> Unless Sdl2 exports a `Rect` type there is no rect in that scope |
20:17:55 | rockcavera | I ended up writing a Nim code that has a behavior in NIMVM (nim e script.nims) and another behavior when compiled by the backend c gcc with -d:release or -d:danger (that is, when there is optimization). It is common? |
20:20:23 | ForumUpdaterBot | New Nimble package! presto - REST API framework for Nim language, see https://github.com/status-im/nim-presto |
20:24:31 | FromDiscord | <ElegantBeef> Might just be how the VM works in that regard, what's the odd behaviour |
20:32:58 | rockcavera | ElegantBeef, it's us shr and shl |
20:34:22 | * | narimiran quit (Ping timeout: 246 seconds) |
20:35:57 | * | Guest40726 quit (Quit: Guest40726) |
20:36:14 | * | Guest40726 joined #nim |
20:42:03 | FromDiscord | <willyboar> @ElegantBeef probably I wouldn't make it for the nim this month |
20:42:15 | FromDiscord | <ElegantBeef> Ah, it's fine |
20:42:28 | FromDiscord | <ElegantBeef> Anyone else have anything they want to throw there 😄 |
20:58:34 | * | Vladar quit (Quit: Leaving) |
20:58:53 | * | willyboar quit (Quit: Konversation terminated!) |
22:10:04 | * | arecaceae quit (Ping timeout: 272 seconds) |
22:10:49 | * | arecaceae joined #nim |
22:23:43 | * | tane quit (Quit: Leaving) |
22:25:05 | FromDiscord | <ElegantBeef> @gcao i see your updated forum post and i do have to ask is your benchmark with in debug or release? |
22:36:06 | * | Guest40726 quit (Quit: Guest40726) |
22:36:20 | * | Guest40726 joined #nim |
23:29:50 | * | xet7 quit (Remote host closed the connection) |
23:30:58 | * | xet7 joined #nim |
23:31:00 | * | sz0 quit (Quit: Connection closed for inactivity) |
23:36:07 | * | Guest40726 quit (Quit: Guest40726) |
23:36:24 | * | Guest40726 joined #nim |
23:46:46 | * | shirty joined #nim |
23:48:56 | * | shirty quit (Client Quit) |