Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Mar 03 2017 15:52
    @dom96 banned @Octopoda7
  • Feb 12 2017 23:57
    @dom96 banned @zzz125
  • Dec 23 2016 19:43
    @dom96 banned @Izrab
From IRC (bridge bot)
@FromIRC
<FromDiscord_> <DeltaPHC> I know there have been recent efforts to make things safer, so I'm kinda wondering where things are at
<FromDiscord_> <DeltaPHC> I'm thinking that threading can still throw a wrench in things, but let's ignore that for a sec :⁠P
From IRC (bridge bot)
@FromIRC
<shashlick> Not bad - 1250 words in 3 hours
<Zevv> you're a slow reader!
<xace> shashlick: do you have a link to your blog or do I have to wait until the article is completed?
From IRC (bridge bot)
@FromIRC
<shashlick> First draft really
<shashlick> I will post it after some time for review
<shashlick> Hope to get it on the nim lang blog, let's see
Mamy Ratsimbazafy
@mratsim
@deech you can use astToStr if you need the field names
From IRC (bridge bot)
@FromIRC
<FromDiscord_> <me2beats> let me clarify pls - is this the official Nim discord server?
<FromDiscord_> <Shield> Yes
<FromDiscord_> <me2beats> thanks
liuxiaodong
@gogolxdong
koch --latest nimble also works for my issue , thanks.
From IRC (bridge bot)
@FromIRC
<shashlick> What are you seeing
Aditya Siram
@deech
IIUC method is a runtime dispatch construct so some type information must be kept around at runtime, is there any documentation that specifies what and when that happens?
liuxiaodong
@gogolxdong
the error has gone.
Vindaar
@Vindaar
@deech the only place I'm aware of that mentions RTTI at all is the typeinfo module: https://nim-lang.github.io/Nim/typeinfo.html
I'm off to bed now. Good night :)
From IRC (bridge bot)
@FromIRC
<xace> could someone help explain what happens on this line: https://github.com/kitsunyan/pakku/blob/1f6a5c6188a80bab511f56cb36eae824765c89d6/src/feature/syncinstall.nim#L312 # my understanding is that editorEnv is a string variable. What happens when you just put the string variable like that?
From IRC (bridge bot)
@FromIRC
<xace> oh, nvm now i see that it's part of a if-statement
liuxiaodong
@gogolxdong
D:\Nim\lib\system\jssys.nim(53, 6) Error: 'getCurrentException' is not GC-safe as it accesses 'lastJSError' which is a global using GC'ed memory
when compile nimx with task nake js
Luke Parker
@kayabaNerve
Use except Exception as e
From IRC (bridge bot)
@FromIRC
<owl_000> what enum {.pure.} pragma does? i added {.pure.} and can't find any differences.
<owl_000> and is enum values can be only string?
Zachary Carter
@zacharycarter
owl_000: pure forces you to address enum values as EnumName.EnumValue
From IRC (bridge bot)
@FromIRC
<Zevv> .pure. enums allow for names to collide
Zachary Carter
@zacharycarter
to allow for ^
From IRC (bridge bot)
@FromIRC
<Zevv> @zacharycarter: you're not forced to qualify
Zachary Carter
@zacharycarter
oh? I thought you were
From IRC (bridge bot)
@FromIRC
<Zevv> only for non-unique values
Zachary Carter
@zacharycarter
ah okay
From IRC (bridge bot)
@FromIRC
<livcd> good morning
<livcd> @gogolxdong: you around?
Zachary Carter
@zacharycarter
I think the best thing to do is for an enum named FooEnum prefix all values with fe so like feFoo feBar etc...
From IRC (bridge bot)
@FromIRC
<Zevv> that is soo C
<lqdev[m]> but it doesn't cause as many problems as in C (namespacing)
Zachary Carter
@zacharycarter
I don't really mind if some C patterns are baked into Nim
but others cough Zevv take offense for some reason :P
like when you use const FOO_BAR = 1
I have a feeling that makes Zevv twitch / cringe
From IRC (bridge bot)
@FromIRC
<FromDiscord_> <Shield> you gotta scream those consts
<Zevv> oh no I love that
<Zevv> I'm a C man, and too old to ever change
Zachary Carter
@zacharycarter
lol
From IRC (bridge bot)
@FromIRC
<Zevv> I hate it that nim has no proper preprocessor to abuse
<Zevv> all this fiddling with macros, bah
Zachary Carter
@zacharycarter
hahaha
Alexander Ivanov
@alehander92
you can kinda do it with source filters
liuxiaodong
@gogolxdong
@livcd yes
From IRC (bridge bot)
@FromIRC
<Zevv> wow lets make an m4 compatible source filter
Alexander Ivanov
@alehander92
+ term rewriting macros