<< 28-05-2021 >>

00:53:31*arkurious quit (Quit: Leaving)
00:53:58*theelous3 quit (Read error: Connection reset by peer)
00:56:05FromDiscord<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:46FromDiscord<Rika> In reply to @ElegantBeef "It's about passing more": Return type overloading :InaDrool:
01:37:12FromDiscord<ElegantBeef> Exactly
01:38:41*abm quit (Read error: Connection reset by peer)
01:39:58FromDiscord<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:47FromDiscord<Rika> thats just normal overloading
01:42:32FromDiscord<ElegantBeef> return type overloading uses the l value to disambiguate the value
01:44:45FromDiscord<ElegantBeef> And yes i say l value like i pretend to know the actual term 😄
02:23:37FromDiscord<Airbus5717> Does nim js target need nodejs? Or depends on it?
02:25:24FromDiscord<InventorMatt> No it does not
02:33:00FromDiscord<Airbus5717> Amazing↵Nodejs is just pain↵Iam going to try nim then
02:37:24FromDiscord<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:15FromDiscord<krab4t> sublime one also bad 😦
02:51:00PrestigeWhich are you using?
02:53:08FromDiscord<krab4t> default
02:53:44Prestigevscode has built-in nim syntax highlighting?
02:56:33FromDiscord<krab4t> from kosz78.nim extension
02:58:31Prestigetry the nimsaem plugin
03:08:34FromGitter<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:41FromDiscord<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:07ForumUpdaterBotNew 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:24FromDiscord<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:39FromDiscord<Rika> let's say a comic bubble
05:13:27FromDiscord<Rika> i'd love to try but im unsure where to start learning about the guts of the library
05:19:01PrestigeIs it just rendered to a buffer? If so maybe you could just clip an area?
05:25:31FromDiscord<Rika> i'm talking about word wrapping
05:26:24Prestigeoh
05:28:19FromDiscord<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:49FromDiscord<Ondrejoda> sent a code paste, see https://play.nim-lang.org/#ix=3o5t
05:42:05FromDiscord<Ondrejoda> (edit) "https://paste.rs/XKe" => "https://play.nim-lang.org/#ix=3o5u"
05:42:40FromDiscord<ElegantBeef> not using `=` for proc impl
05:42:52FromDiscord<Ondrejoda> yeah, just noticed :D
05:43:00FromDiscord<Ondrejoda> i have been doing too much python
05:52:05FromDiscord<Ondrejoda> In reply to @Ondrejoda "why won't this work?": also, how can i make a constructor function for that class?
05:52:35FromDiscord<Rika> you make a regular function
05:52:40FromDiscord<Rika> called initLexer or so
05:52:43FromDiscord<Rika> that returns a Lexer
05:52:47FromDiscord<Rika> thats pretty much it
05:53:11FromDiscord<Ondrejoda> sent a code paste, see https://play.nim-lang.org/#ix=3o5y
05:53:17FromDiscord<Rika> usually its initLexer but yes
05:53:35FromDiscord<Ondrejoda> ok, thanks!
05:53:45FromDiscord<ElegantBeef> Yep and convention is `name: type` 😛
06:03:50FromDiscord<Ondrejoda> also, is there anything like `null` in Nim?
06:04:18FromDiscord<Ondrejoda> i tried `null, none, NONE, NULL` and nothing
06:04:24Prestigenil
06:04:28FromDiscord<Ondrejoda> oh
06:04:30FromDiscord<Ondrejoda> :D
06:04:34FromDiscord<ElegantBeef> normal objects are non nilable
06:04:39FromDiscord<ElegantBeef> they need to be ref to be nilable
06:05:39FromDiscord<Ondrejoda> so how do i check if a char is not empty (if i am at the end of a file?)
06:06:03FromDiscord<Ondrejoda> since `character != ''` doesn't work
06:06:12FromDiscord<Rika> characters cannot be empty
06:06:23FromDiscord<Rika> an exception will be raised if you try to read eof
06:06:44FromDiscord<Ondrejoda> so then how do i know that i am at the end of a file?
06:06:49FromDiscord<Ondrejoda> oh
06:06:58FromDiscord<Ondrejoda> the file api does that for me
06:06:59FromDiscord<Ondrejoda> i see
06:07:34FromDiscord<Rika> https://nim-lang.org/docs/io.html#endOfFile%2CFile
06:10:40FromDiscord<Ondrejoda> also, how can i fix this? `type mismatch: got <int, int literal(1)>`
06:11:32FromDiscord<Rika> well we need more details than that
06:11:36FromDiscord<Ondrejoda> sent a code paste, see https://play.nim-lang.org/#ix=3o5I
06:11:42FromDiscord<Rika> self: var Lexer
06:11:52FromDiscord<Ondrejoda> oh
06:11:53FromDiscord<Rika> you need to mark stuff as mutable
06:12:10FromDiscord<Ondrejoda> hey, that works!
06:12:12FromDiscord<ElegantBeef> The actual error message will say the mismatch is `got Lexer` but expected `var Lexer`
06:12:23FromDiscord<Ondrejoda> In reply to @ElegantBeef "The actual error message": well it didn't
06:12:26FromDiscord<ElegantBeef> It does
06:12:56FromDiscord<ElegantBeef> https://media.discordapp.net/attachments/371759389889003532/847719063593025566/unknown.png
06:13:13FromDiscord<Ondrejoda> sent a code paste, see https://play.nim-lang.org/#ix=3o5J
06:13:26FromDiscord<Ondrejoda> (edit) "https://play.nim-lang.org/#ix=3o5J" => "https://play.nim-lang.org/#ix=3o5K"
06:13:29FromDiscord<Rika> oops
06:13:32FromDiscord<Rika> sent a long message, see http://ix.io/3o5L
06:13:33FromDiscord<Rika> https://media.discordapp.net/attachments/371759389889003532/847719219327401994/unknown.png
06:13:39FromDiscord<Rika> `but expression 'self.pos' is immutable, not 'var'`
06:13:52FromDiscord<Ondrejoda> yeah, noticed it
06:13:54FromDiscord<Ondrejoda> :D
06:13:54FromDiscord<ElegantBeef> Yea i mean i wasnt exact, just paraphrasing
06:14:10FromDiscord<ElegantBeef> The first line is the type of error and why it happened the others are the mismatches
06:14:45FromDiscord<Ondrejoda> i must say that nim has waaaaay better error messages than c++ or zig or nim
06:14:55FromDiscord<ElegantBeef> Nim has better errors than nim? 😄
06:15:00FromDiscord<Ondrejoda> (edit) "nim" => "python"
06:15:15FromDiscord<Ondrejoda> i meant python 😄
06:15:47FromDiscord<Ondrejoda> zig errors are horrible
06:15:50FromDiscord<ElegantBeef> Depends on where you're at/what you're doing, eventually you'll hit `indention errors`
06:15:51FromDiscord<Rika> nim has better errors than zig?
06:15:53FromDiscord<Rika> no way
06:16:00FromDiscord<Ondrejoda> In reply to @Rika "nim has better errors": oh yes it does
06:16:06FromDiscord<ElegantBeef> Was going to say Zig is proud of it's error messages
06:16:09FromDiscord<Rika> @ElegantBeef indentation errors
06:16:10FromDiscord<Ondrejoda> at least that's my opinion
06:16:25FromDiscord<ElegantBeef> Remind me why you added me as a friend? 😛
06:16:41FromDiscord<Rika> because i was gonna dm you about a question but you werent the right person
06:16:46FromDiscord<Rika> (i thought you were)
06:16:58FromDiscord<ElegantBeef> Damn i'm never the right person
06:17:05FromDiscord<Rika> god damn i was just being honest
06:17:27FromDiscord<Ondrejoda> one more thing about zig, i think that zig is just more painful C↵||that's my opinion, not yours||
06:17:28FromDiscord<ElegantBeef> I'm just joking of course
06:18:10FromDiscord<Rika> oh totally same opinion there
06:18:24FromDiscord<Rika> i dont understand how no overloading is better but oh well
06:18:25FromDiscord<Rika> opinions
06:18:55FromDiscord<Ondrejoda> yeah, that's is a really bad thing about zig
06:19:51FromDiscord<Ondrejoda> plus it's not even 1.0
06:19:58FromDiscord<Ondrejoda> which nim is way past that
06:20:20FromDiscord<Rika> well
06:20:29FromDiscord<Rika> i'd argue nim and zig are roughly the same stability
06:20:45FromDiscord<Ondrejoda> ¯\_(ツ)_/¯
06:42:55*k0mpjut0r joined #nim
06:45:10*Vladar joined #nim
06:54:53ForumUpdaterBotNew thread by Hypnos97: Hello all , see https://forum.nim-lang.org/t/8051
06:56:14PrestigeWasn't this posted a few days ago?
06:59:50narimiranPrestige: https://forum.nim-lang.org/t/8032 ?
07:00:25narimiranyeah, 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:21FromDiscord<Airbus5717> Today I considered nim over d for one reason↵JavaScript target↵And I'm going to start today learning it
07:35:46FromDiscord<Airbus5717> Even tho I am a slow learner
07:35:57FromDiscord<Airbus5717> I hate learning new langs
07:36:08FromDiscord<ElegantBeef> But nim is magical, so you'll love learning it
07:55:00ForumUpdaterBotNew 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:56FromDiscord<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:36FromDiscord<ElegantBeef> It's in the compiler https://github.com/nim-lang/Nim/blob/8ccde68f132be4dba330eb6ec50f4679e564efac/lib/system/sysstr.nim#L234
08:27:18FromDiscord<quarternion> @ElegantBeef Thanks. I messed up the case when searching. I typed `SetLengthStr` 🙂 I brought my csharp habit unconsciously
08:28:10FromDiscord<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:11FromDiscord<Rika> What kind of conditions warrant a magic proc
09:07:53FromDiscord<Airbus5717> Bruh the syntax is kinda confusing
09:10:59FromDiscord<Rika> Depends on the programmer
09:11:06FromDiscord<Rika> I found it very intuitive at the start
09:11:13FromDiscord<Rika> What are you confused by?
09:12:31*narimiran joined #nim
09:28:23Oddmongervar as ref in function paremeters
09:31:06FromDiscord<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:17Oddmongernamed members mandatory when passing a tuple as parameter,but optionals when it's an object
09:32:43Oddmonger{.byaddr.} to have a true reference on a type
09:34:21Oddmonger@Recruit_main707 yes i know ref is not the C `&`, but it's disturbing at first encounter
09:36:42FromDiscord<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:55FromDiscord<Rika> That’s why it’s dependent on the programmer
09:52:38FromDiscord<kunitoki> hey here, can the nim compiler detect use after move ?
09:52:48FromDiscord<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:28FromDiscord<Rika> In reply to @kunitoki "hey here, can the": I believe so when using arc yes
10:13:36FromDiscord<kunitoki> it doesn't seem the case
10:13:50FromDiscord<kunitoki> maybe i just got implemented wrong the =sink
10:13:59FromDiscord<kunitoki> it's not clear from the documentation
10:15:13FromDiscord<kunitoki> sent a code paste, see https://play.nim-lang.org/#ix=3o6x
10:15:59FromDiscord<kunitoki> sent a code paste, see https://play.nim-lang.org/#ix=3o6z
10:16:08*lritter joined #nim
10:16:58FromDiscord<kunitoki> sent a code paste, see https://play.nim-lang.org/#ix=3o6A
10:17:30FromDiscord<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:11FromDiscord<kunitoki> https://play.nim-lang.org/#ix=3o6D i have this, it seems to work in the playground
10:20:18FromDiscord<kunitoki> but locally it does
10:20:51FromDiscord<kunitoki> sent a code paste, see https://play.nim-lang.org/#ix=3o6E
10:21:08FromDiscord<kunitoki> it seems like i'm deallocating twice
10:22:33FromDiscord<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:02FromDiscord<kunitoki> in the playground it works as it's not using `--gc:arc`
10:36:48*aeverr joined #nim
10:43:23FromDiscord<Rika> what nim version?
10:43:34FromDiscord<Rika> is your local, i mean
10:45:23FromDiscord<kunitoki> 1.4.8
10:46:09FromDiscord<Rika> huh
10:46:50FromDiscord<kunitoki> i converted the example to use a `ptr UncheckedArray[float]` instead of `ptr float`
10:46:54FromDiscord<kunitoki> but same issue
10:47:51nphgshould the compiler warn/error if one implements `=destroy` but not `=copy`?
10:48:08FromDiscord<kunitoki> i was wondering in fact if i had to implement =copy as well
10:48:23FromDiscord<kunitoki> or if you miss to implement one of the triad it explodes
10:48:39FromDiscord<Rika> so does it work with =copy implemented?
10:48:47FromDiscord<kunitoki> like the rule of 3 or 5 or 7 (i lost the number) in c++
10:49:49nphg`=sink` is documented as optional
10:50:07nphgso, the other two should be enough
10:50:29FromDiscord<kunitoki> yeah it works !
10:51:46FromDiscord<kunitoki> it is not exactly clear from the documentation that forgetting to implement =copy you might crash
10:55:59FromDiscord<kunitoki> I would say that if i want a sink, the compiler could have been preventing that i got a copy
10:56:51FromDiscord<kunitoki> Is there a way to force a move to be honored?
10:57:17FromDiscord<kunitoki> And error if i can't?
10:58:41FromDiscord<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:55FromDiscord<kunitoki> (edit) "know" => "now"
11:00:12FromDiscord<Rika> i think
11:00:12FromDiscord<Rika> sent a code paste, see https://play.nim-lang.org/#ix=
11:00:15FromDiscord<kunitoki> (edit) "Byt" => "But"
11:00:18FromDiscord<Rika> or did it have a =
11:00:20FromDiscord<Rika> i forgot
11:00:23FromDiscord<Rika> try both
11:03:29FromDiscord<clyybber> @kunitoki The source gets cleared out by the compiler
11:03:42FromDiscord<clyybber> You dont have to do it in =sink
11:04:07FromDiscord<clyybber> You can use --expandArc:procname to inspect the generated code
11:05:36*Vladar quit (Quit: Leaving)
11:05:36FromDiscord<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:52FromDiscord<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:20FromDiscord<kunitoki> thanks `clyybber` !
11:10:26FromDiscord<kunitoki> now we are talking
11:10:28FromDiscord<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:38FromDiscord<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:52FromDiscord<kunitoki> i like this 😄
11:11:05FromDiscord<clyybber> glad to hear :D
11:11:45FromDiscord<kunitoki> yeah, i'm a +20 years C++ developer and recently i've been looking in Nim. it's absorbing !
11:11:59FromDiscord<kunitoki> lot to be discovered still
11:12:17FromDiscord<kunitoki> but it's a fun process 😄
11:13:24FromDiscord<Rika> nice
11:13:27*arkurious joined #nim
11:26:26*tane joined #nim
11:30:03FromGitter<gogolxdong> How to define a ERC20 token contract with nim-web3?
11:30:30FromGitter<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:33FromDiscord<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:05Oddmongerfor me, the real PITA with nim is «foo (…)» vs «foo(…)»
12:12:09FromGitter<gogolxdong> Do we have to deployContract for interacting with a contract?
12:13:23FromDiscord<Rika> In reply to @Oddmonger "for me, the real": ive never really encountered that issue, why do you think its an issue?
12:13:53FromGitter<gogolxdong> or how to constrcut a contratc instance from strandard ERC20 abi and known address
12:15:58Oddmonger@Rika : because the first time i've encountered it, i've spent hours for understanding the error message
12:16:29Oddmongerfinally, i rewrite it (without the space , lucky) and compare the two lines
12:17:49Oddmongeri like nim, but a language shouldn't be influenced by invisible glyph
12:18:47FromDiscord<Rika> a space is visible
12:18:58FromGitter<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:18FromDiscord<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:13FromDiscord<Rika> (i am on devel)
12:22:25Oddmonger@rika : ok it seems to work, but why did it said «may be the space before…»
12:22:38FromDiscord<Rika> wdym?
12:23:25Oddmongeryour (int,int) instead of (float,float) has been detected, so why does the compiler speak about space before '(' ?
12:23:39Oddmongeri'm not on devel so i cannot try
12:24:38nphgnim 1.4.8 has the same behaviour. And the compiler detected (int, int) instead of float
12:26:13Oddmongerwith nim 1.4.6 i have the same message
12:28:37Oddmongerso 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:39FromDiscord<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:14FromDiscord<Rika> oh, i guess literals dont become floats
12:30:20FromDiscord<Rika> got used to that from another language
12:30:31FromDiscord<Rika> mb
12:51:59*Cthalupa quit (Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in)
12:59:01FromDiscord<enthus1ast> hi folks, any idea why on a FreeBSD (FreeNAS) clang does not find any headers? (for example limits.h)
12:59:36FromDiscord<enthus1ast> or do you have a clue how to make FreeBSD nim friendly?
13:00:18*Cthalupa joined #nim
13:05:34FromDiscord<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:02FromGitter<bung87> hey , I create a 1024 mysql connection pool , when I run concurrent requests only work around 100 requests , any help ?
13:40:10FromGitter<bung87> max_connections | 10240 | ⏎ | mysqlx_max_connections | 10240 |
13:47:04*narimiran quit (Ping timeout: 265 seconds)
13:48:10Prestige@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:58FromDiscord<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:32FromGitter<bung87> @Prestige https://github.com/bung87/amysql/tree/master/experiments test_concurrent_server.nim test_concurrent.nim
13:56:16FromDiscord<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:25FromGitter<bung87> it's runnable code , but you need setup database first.
13:58:59FromGitter<bung87> am planning add my framework to TechEmpower, but currently only plaintext and json passed.
13:59:02FromDiscord<quarternion> @enthus1ast where are headers located? Is it somewhere in `/usr/local/`
13:59:23FromDiscord<enthus1ast> this is the question...
14:01:07FromDiscord<enthus1ast> sent a code paste, see https://play.nim-lang.org/#ix=3o7m
14:04:19FromDiscord<quarternion> At least you can use `gcc` 🙂
14:05:32FromDiscord<enthus1ast> then i think i must change the build.sh script
14:05:51FromDiscord<enthus1ast> (for building nim from source)
14:06:16*crem1 joined #nim
14:06:22*crem quit (Remote host closed the connection)
14:06:23FromDiscord<enthus1ast> nope same 🙂
14:06:34FromDiscord<quarternion> Or can you install `clang` from `pkg`
14:09:14Prestigehm I'm not sure @bung87 - you have a loop creating the connections, does it just stop part way through?
14:11:49FromDiscord<enthus1ast> sent a code paste, see https://play.nim-lang.org/#ix=3o7s
14:18:57FromDiscord<quarternion> This is strange. Is it due to freenas customization.?
14:19:26FromDiscord<quarternion> BTW, have you update the local pkg catelogue by running "pkg update"
14:19:38FromDiscord<enthus1ast> unfortunately i do not know, i'm not that familiar with freebsd
14:19:50FromDiscord<enthus1ast> In reply to @quarternion "BTW, have you update": yes
14:21:00FromGitter<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:41PrestigeWhat's the error?
15:47:12*narimiran joined #nim
15:50:41*Guest43465 joined #nim
15:52:20FromGitter<bung87> https://pastebin.com/B18r2p43
16:22:43FromDiscord<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:28FromDiscord<enthus1ast> @quarternion des i've enable the repos. But yes maybe I should start useing jails
16:43:37FromDiscord<enthus1ast> (edit) "des" => "yes"
16:51:04ForumUpdaterBotNew 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:01FromDiscord<Mustache Man> I noticed Meros (MerosCrypto) was written in Nim. would its creator happen to be active in here?
17:17:07FromDiscord<Mustache Man> (edit) "I noticed Meros (MerosCrypto) was written in Nim. would its creator ... happen" added "(or any contributors)"
17:17:50FromDiscord<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:27FromDiscord<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:57FromDiscord<garett> I think any proc can potentially be a closure?
18:59:44FromDiscord<garett> Or is that only the case when the `{.closure.}` pragma is applied?
19:13:06*lritter quit (Ping timeout: 240 seconds)
19:19:20FromDiscord<Varriount> @garett The Nim compiler will usually convert a proc to a closure automatically.
19:20:51FromDiscord<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:57FromDiscord<garett> Does such a closure have an implicit `=destroy`?
19:35:52*Guest40726 quit (Quit: Guest40726)
19:36:09*Guest40726 joined #nim
19:46:00FromDiscord<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:18FromDiscord<j-james> What exactly does that mean?
19:47:13*narimiran joined #nim
19:56:35FromDiscord<ElegantBeef> what's the line?
20:03:25FromDiscord<j-james> `var rect = Rect(x: posX - 25, y: posY - 25, w: 50.cint, h: 50.cint)`
20:05:26ForumUpdaterBotNew 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:01FromDiscord<ElegantBeef> Unless Sdl2 exports a `Rect` type there is no rect in that scope
20:17:55rockcaveraI 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:23ForumUpdaterBotNew Nimble package! presto - REST API framework for Nim language, see https://github.com/status-im/nim-presto
20:24:31FromDiscord<ElegantBeef> Might just be how the VM works in that regard, what's the odd behaviour
20:32:58rockcaveraElegantBeef, 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:03FromDiscord<willyboar> @ElegantBeef probably I wouldn't make it for the nim this month
20:42:15FromDiscord<ElegantBeef> Ah, it's fine
20:42:28FromDiscord<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:05FromDiscord<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)