by

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
<abm> xi editor usable when
Kaushal Modi
@kaushalmodi
shashlick: I don't use any auto complete, actually
The inbuilt hippie-expand works just fine
Benny Elgazar
@Bennyelg
How's the integration of nim & sublime ? which is more stable with nim? vs-code or sublime
Rubi
@codenoid
sublime
Bung
@bung87
vscode good enough
From IRC (bridge bot)
@FromIRC
<PMunch> Interesting, the TOML specification got an ABNF definition. So now I can run abnfgen to generate random TOML documents that I can test the TOML parser against
Bonta Vlad
@BontaVlad
Spacemacs is fine for working with nim, check nim-lang/nim-mode#159 for debugging nim-mode in emacs
From IRC (bridge bot)
@FromIRC
<pigmej> just M-x customize-variable and customize nimsuggest-options no need to manually edit files
<Araq> "Note that the provider name GitHub is case sensitive (e.g. not Github)." sure, document your bugs
<Araq> maybe some day a Github will arrive that's different from GitHub
From IRC (bridge bot)
@FromIRC
<stefanos82> lol
Alexander Ivanov
@alehander92
GiThuB E!!Rprise
From IRC (bridge bot)
@FromIRC
<TheLemonMan> are you having a stroke?
Alexander Ivanov
@alehander92
you're being very case sensitive lemon man
From IRC (bridge bot)
@FromIRC
<stefanos82> more like a hiccup TheLemonMan lol
<TheLemonMan> you surely mean 7h313m0nm4n
<stefanos82> remember the google incident?
<stefanos82> with the unicode G letter in a domain name?
<TheLemonMan> that's punycode domain
Alexander Ivanov
@alehander92
they do this + "free eth" for each tweet of elon musk
From IRC (bridge bot)
@FromIRC
<PMunch> I think parsetoml should support 0.5.0 of the TOML spec now :⁠)
<TheLemonMan> nice.bat
Kaushal Modi
@kaushalmodi
PMunch: That's awesome!
Thanks! I think on the TOML repo, you can request listing parsetoml as 0.5.0 compliant parser
The readme needs to be updated.. still says "Currently it supports v0.4.0 of the TOML specification."
Brent Pedersen
@brentp
anyone have an example of setting the version in a .nimble file from a version defined in the source of the project so I don't need to update the value in 2 places?
Matt Haggard
@iffy
Can I test if a tuple has a key?
Kaushal Modi
@kaushalmodi
@iffy Interesting, I never had to find that out. But now I am curious too.
From IRC (bridge bot)
@FromIRC
<Araq> when compiles(tup.maKey)
Kaushal Modi
@kaushalmodi
Araq: awesome! thanks
type
  Person = tuple
    name: string
    age: int
let person: Person = ("Peter", 30)
echo compiles(person.age) # true
echo compiles(person.foo) # false
Matt Haggard
@iffy
Thanks!
Kaushal Modi
@kaushalmodi
works for compiles(person[0]) and so on.. too
wondering.. how to get number of fields in a tuple
From IRC (bridge bot)
@FromIRC
<TheLemonMan> you can also use a concept (I think)
Kaushal Modi
@kaushalmodi
I've yet to get into concepts
From IRC (bridge bot)
@FromIRC
<TheLemonMan> I've sent more than 100 PRs, nice
Kaushal Modi
@kaushalmodi
TheLemonMan +1
Araq: still tinkering with that compiles snippet ..
type
  Person = tuple
    name: string
    age: int
let person: Person = ("Peter", 30)
echo $compiles(person.age) & "\t| using tuple type name: " & $compiles(Person.age)
echo $compiles(person.foo) & "\t| using tuple type name: " & $compiles(Person.foo)       # invalid field
echo $compiles(person[0])  & "\t| using tuple type name: " & $compiles(Person[0])
echo $compiles(person[1])  & "\t| using tuple type name: " & $compiles(Person[1])
echo $compiles(person[2])  & "\t| using tuple type name: " & $compiles(Person[2])     # invalid field.. tuple has only 2 fields
that outputs:
true    | using tuple type name: true
false    | using tuple type name: false
true    | using tuple type name: false
true    | using tuple type name: false
false    | using tuple type name: false
so "by name" reference outcome is the same whether I use the tuple type or tuple var
but the field index reference works correctly only with tuple var
Ray Imber
@rayman22201
Hey look, another new language that has a bunch of "innovative" features that Nim has had forever : Kit Programming Language https://news.ycombinator.com/item?id=18023598
Vindaar
@Vindaar
@kaushalmodi number of fields in tuple -> typetraits.arity, so for your example type(person).arity
Kaushal Modi
@kaushalmodi
@Vindaar Cool! thanks
any comment about why Person[0] doesn't work? should it work?