Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 05:07
    sogaiu commented #112
  • 04:57
    fimmtiu opened #112
  • Mar 06 14:59
    pyrmont commented #652
  • Mar 06 14:49

    bakpakin on master

    Use :in instead of :generate in… Merge pull request #106 from so… (compare)

  • Mar 06 14:49
    bakpakin closed #106
  • Mar 06 14:49

    bakpakin on master

    Update error peg special docs Merge pull request #105 from so… (compare)

  • Mar 06 14:49
    bakpakin closed #105
  • Mar 06 14:48

    bakpakin on master

    Update default-peg-grammar table Merge pull request #109 from so… (compare)

  • Mar 06 14:48
    bakpakin closed #109
  • Mar 06 14:46
    bakpakin closed #652
  • Mar 06 14:46
    bakpakin commented #652
  • Mar 06 02:02
    pyrmont commented #652
  • Mar 06 01:09
    andrewchambers commented #652
  • Mar 05 10:01
    pyrmont opened #652
  • Mar 05 01:35

    bakpakin on master

    Add group-by and partition-by t… (compare)

  • Mar 02 15:35

    bakpakin on master

    Update janet. Merge branch 'master' of github… (compare)

  • Mar 02 08:02
    bakpakin commented #647
  • Mar 01 23:48
    skuzzymiglet opened #647
  • Mar 01 07:31
    andrewchambers opened #111
  • Feb 28 21:43
    bakpakin closed #645
Saikyun
@Saikyun
so thanks again
pp
@damnpepe:matrix.org
[m]
you are welcome! yumaikas- brought it to my attention not that long ago (just in time I needed them)
Saikyun
@Saikyun
@pyrmont as you say, those are two different problems :) for me, it's all about being able to reload "namespaces". in my case, I have a render loop in main.janet, and it depends on various files. in those files I want to make changes and have them come through to the render loop. wrt: evaluating in different environments -- an environment and/or fiber per netrepl connection might make sense? :) not sure what problem you want to solve
Michael Camilleri
@pyrmont
@damnpepe: Perhaps you might know the answer to this question. If you have a stream created by net/connect, is there a way to check whether there's anything to read in the stream?
pp
@damnpepe:matrix.org
[m]
to read it is only way I know of
Michael Camilleri
@pyrmont
And that consumes it, right?
pp
@damnpepe:matrix.org
[m]
it does yes
Michael Camilleri
@pyrmont
Hmmm.
pp
@damnpepe:matrix.org
[m]
but I do not see scenario, where it could be problem
can you please share yours (as you seem disapointed 😀
Michael Camilleri
@pyrmont
I'm trying to test various things with a stream to a netrepl connection from an ordinary REPL. I have two functions, recv and send which read from and write to the stream respectively. The problem is that if I read from the stream when there's nothing there, it will block.
pp
@damnpepe:matrix.org
[m]
yes, but with the ev it is not that big problem?
in my mental model I tied ev and net as tight as my old mind allowes
Michael Camilleri
@pyrmont
Well, I'm in the REPL and I don't see anyway to cancel the blocking. I guess I could tweak the recv function to have a timeout.
pp
@damnpepe:matrix.org
[m]
that is other way around indeed
Michael Camilleri
@pyrmont
The problem is that I'm using spork/msg to create the receiver (and the sender) and the make-recv and make-send functions don't have the capacity to do timeouts.
I guess those functions aren't exceptionally complicated so I could just tweak them.
pp
@damnpepe:matrix.org
[m]
yep
Saikyun
@Saikyun
@pyrmont do you have a specific example for repling / blocking problem?
don't know if it will help you, but this is how I manage to get netrepl + loop to work together: https://github.com/Saikyun/text-experiment/blob/main/src/main.janet#L217-L235
the ev/sleep call makes it so that the netrepl gets a chance to do its thing :)
when thinking about it, a generator might have been cleaner, haha. anyway :)
Michael Camilleri
@pyrmont
I've got it working now :)
I'm running the netrepl server in a separate process so it's OK for recv to block, just not indefinitely :)
Saikyun
@Saikyun
ah right, in my case I couldn't run netrepl in a separate process / thread, due to having to run raylib calls on main thread
Michael Camilleri
@pyrmont
Ah. Yeah, I'm just trying to play around with some of the stuff that I helped add to run-context and spork/netrepl.
I was trying to get Conjure to work with it but I am not having much luck and am trying to see if something's broken in the implementation (I don't think it is but wanted to double check).
pp
@damnpepe:matrix.org
[m]
lol
dogfooding
Michael Camilleri
@pyrmont
Well, sort of :)
More like bearpoking :P
pp
@damnpepe:matrix.org
[m]
😀
no danger I would say
not from Janet codes, they are helpful only
Michael Camilleri
@pyrmont
Or like that scene in 80s action movies where they have to cut the right wire to defuse the bomb while the wrong wire will explode.
pp
@damnpepe:matrix.org
[m]
oh the adventures of SW development
why it was funny for me: I finished Chidi, very proud father. Then I put it to work in the good-place website and found a lot of the rough edges
some parts got total overhaul
Michael Camilleri
@pyrmont
Yeah, this is not acting the way that I expected.
Which is a bit weird because it runs OK when testing.
pp
@damnpepe:matrix.org
[m]
one of the famous last sentences 🙂
Saikyun
@Saikyun
haha, I just deployed customer facing code to prod, so definitely feel that ^^;
pp
@damnpepe:matrix.org
[m]
lol
Lue
@luewd:matrix.org
[m]
I got some ordered tables working
was pretty easy. idk what's the most efficient but I found dict of key to index + array of keys + array of values the easiest to implement
1 reply
andrewchambers
@andrewchambers
nice
andrewchambers
@andrewchambers
super strange
im on my laptop and pretty printing is working here
maybe a different version of janet...
hmmm