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
<Cadey> not to mention things like the version and other metadata are actual variables
<Araq> :⁠-)
<Cadey> it's first-class too
<Cadey> so it's going to work without having to install extra stuff
<Cadey> i kinda wish the package story for nimble was a bit more robust than "hope people's git repos don't go down"
<Cadey> but that's a hard problem to solve in general
<dom96> all it takes is for someone to create a service that forks all repos periodically
<dom96> put it together with ipfs and you might not even need a server ;⁠)
From IRC (bridge bot)
@FromIRC
<Araq> or: convince github that "delete repo" is an anti-feature
awr1
@awr1
@mratsim fixing that issue is in fact a form of borrow checking
:P
Mamy Ratsimbazafy
@mratsim
:D
From IRC (bridge bot)
@FromIRC
Mamy Ratsimbazafy
@mratsim
@Araq they are stable but semcheck doesn’t like them
awr1
@awr1
that reminds me i need to work on my nimscript RFC
From IRC (bridge bot)
@FromIRC
<shashlick> That's just calling nim e, if you prefer pulling the whole compiler in check out https://github.com/Serenitor/embeddedNimScript
awr1
@awr1
my RFC concerns that
i haven't finished it though
i think the situation with embedding nimscript into anapplication could be a bit better
From IRC (bridge bot)
@FromIRC
<disruptek> sometimes, when building my code which hashes a simple enum for use as a table key, i get this error: Error: unhandled exception: /home/adavidoff/git/Nim/lib/pure/collections/hashcommon.nim(33, 9) length > counter [AssertionError]
<disruptek> i will dig deeper tomorrow. :⁠-/
<shashlick> @zacharycarter had done some work on embedded nimscript as well
liuxiaodong
@gogolxdong
How to generate a symbol in a proc to the top level of a module?
liuxiaodong
@gogolxdong
generate a symbol and inject to the first level of the module
liuxiaodong
@gogolxdong

I'm trying to achieve this

buildHtml tdiv:
    input(value := localAreaName)

:= means declare a module level variable

From IRC (bridge bot)
@FromIRC
<fov60> is there a way to get fields as a list?
Shield
@ShieldHero
it looks like the discord bridge is down since sunday, did anybody notice?
zetashift
@zetashift
godot-nim could be forked but what's wrong with making a separate branch for it?
Mamy Ratsimbazafy
@mratsim
@fov60, you can iterate on the fields but you can’t get them as a list in a runtime proc, in a macro yes
awr1
@awr1
@gogolxdong not quite sure what you're doing but you probably need a template or macro instead of a proc
awr1
@awr1
i don't know if you can do it without hacks
specifically because https://forum.nim-lang.org/t/643
it depends largely on where buildhtml is
liuxiaodong
@gogolxdong
seems have to generate the code for a macro.
From IRC (bridge bot)
@FromIRC
<alexander92> hm, where is lq
<alexander92> coming from
From IRC (bridge bot)
@FromIRC
<PMunch> How do I install a devel package with nimble?
<Araq> nimble install foo@head or something
<PMunch> Aah
<PMunch> @
<Araq> or @#head, can't remember
<PMunch> Tried to fix the jsonschema issue by the way, but now I'm faced with Error: unhandled exception: invalid format string [ValueError] from compiler-0.20.2/compiler/commands.nim(59, 64)
From IRC (bridge bot)
@FromIRC
<PMunch> Ah nice, installing compiler@#head, pulling the devel branch of Nim into the nimlsp subdirectory, and building with Nim devel it now all works
<alexander92> so, if i want to use it from e.g. my ide
<alexander92> what should i do? write a plugin that talks with your lib with a socket?
<PMunch> Well, hopefully your IDE already has a LSP plug-in
From IRC (bridge bot)
@FromIRC
<PMunch> Otherwise you need to write a LSP client. It will start nimlsp when it detects that it's running a Nim file, then it will send messages over stdio to the nimlsp process
<alexander92> so, one nimlsp process for the whoel project
<alexander92> right