Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 04 12:26
    @dom96 banned @acroobat
  • 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
<leorize> they are in there because a moderator published them there
<leorize> @dom96 try looking for the room again, it should show up now
dom96
@dom96:matrix.org
[m]
all I see is my own channel
From IRC (bridge bot)
@FromIRC
<leorize[m]> try just Nim #science
<leorize[m]> * try Nim #science
<leorize[m]> yea, can't search for it with nim science, probably due to that hash
<leorize[m]> I can fix it real quick
<leorize[m]> renamed it, it should show up next to your room now
dom96
@dom96:matrix.org
[m]
cool, works now
From IRC (bridge bot)
@FromIRC
<dom96> let's PM
<dom96> do Matrix-IRC PMs work?
<leorize> yes it does
<dom96> cool
Yehowshua Immanuel
@BracketMaster
does anybody know how I might be able to get the following code snippet to return -1?
var u_word = 0b1111_1111.uint8
echo u_word.int8
Right now I get this: Error: unhandled exception: value out of range: 255 notin -128 .. 127 [RangeDefect]
It seems nim doesn't really do C style casting?
I've more or less got to have this behavior since I'm working on a chip emulator in nim.
Yehowshua Immanuel
@BracketMaster
After some digging - I don't think its possible to do this
Making a functional chip simulator in Nim just got a lot harder
From IRC (bridge bot)
@FromIRC
<ormiret> @BracketMaster: cast does what you want? https://play.nim-lang.org/#ix=3pk3
Yehowshua Immanuel
@BracketMaster
omiret: that link you sent doesn't seem to work?
From IRC (bridge bot)
@FromIRC
<ormiret> sorry, copied the wrong thing... https://play.nim-lang.org/#ix=3qaV
Yehowshua Immanuel
@BracketMaster
thanks!
that's just what I need
ynfle
@ynfle
https://play.nim-lang.org/#ix=3qdv Is there any way to get this to work?
Yehowshua Immanuel
@BracketMaster
that looks a bit odd, what are you trying to do?
tandy
@tandy1000:matrix.org
[m]
for some reason nim isnt detecting my environment variables that ive just set
they do work when echoing from the terminal
i used putEnv() to add it in manualy and it works now
From IRC (bridge bot)
@FromIRC
<dom96> !ping
<NimBot> pong
Yehowshua Immanuel
@BracketMaster
!ping
From IRC (bridge bot)
@FromIRC
<NimBot> pong
Yehowshua Immanuel
@BracketMaster
oh wow!
From IRC (bridge bot)
@FromIRC
<dom96> !lag
<NimBot> 42ms between me and the server.
<dom96> !lag
<NimBot> Unknown.
Yehowshua Immanuel
@BracketMaster
Is Nimbot written in Nim?
From IRC (bridge bot)
@FromIRC
<dom96> of course
<dom96> !lag
<NimBot> Unknown.
<dom96> !eval echo("hello world")
<NimBot> hello world
<dom96> cool, time to move it to the server
From IRC (bridge bot)
@FromIRC
<dom96> grrr
<dom96> strontium.libera.chat NOTICE NimBot :⁠* Notice -- You need to identify via SASL to use this server"
From IRC (bridge bot)
@FromIRC
<dom96> As I thought, SASL required for our server. I'm trying to get an exception