Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:38
    sogaiu commented #1010
  • Aug 17 06:00
    Techcable opened #1010
  • Aug 17 05:50
    pepe commented #1009
  • Aug 17 05:50
    pepe closed #1009
  • Aug 17 01:21
    sogaiu commented #1009
  • Aug 16 17:39

    bakpakin on master

    Remove stack inversion code for… Merge branch 'master' of github… (compare)

  • Aug 16 17:21

    bakpakin on master

    Remove stack inversion code for… (compare)

  • Aug 16 16:27
    bakpakin commented #1009
  • Aug 16 16:23
    bakpakin commented #1009
  • Aug 16 16:22
    bakpakin labeled #1009
  • Aug 16 15:21
    sogaiu commented #1009
  • Aug 16 15:21
    sogaiu commented #1009
  • Aug 16 12:12
    pepe opened #1009
  • Aug 16 03:26
    bakpakin commented #1001
  • Aug 16 00:19

    bakpakin on master

    1.24.0 update. (compare)

  • Aug 15 01:20

    bakpakin on v1.24.0

    (compare)

  • Aug 15 01:20

    bakpakin on master

    Prepare for 1.24.0 release. (compare)

  • Aug 14 20:40

    bakpakin on master

    Add win32 ffi example. (compare)

  • Aug 14 20:21

    bakpakin on master

    Allow binding pre-loaded symbol… Fix FFI for reference return va… (compare)

  • Aug 14 17:37

    bakpakin on ffi-win32

    (compare)

sogaiu
@sogaiu:matrix.org
[m]
unless you wrap like you described
llmII
@llmii:matrix.org
[m]
that's why my first thought was array-wrapping a string, keeps things simple to be just a single parse call
sogaiu
@sogaiu:matrix.org
[m]
well...
yes :)
llmII
@llmii:matrix.org
[m]
hehehe, I thought you were about to mention an edge case where doing so means breaking everything lol
sogaiu
@sogaiu:matrix.org
[m]
:)
llmII
@llmii:matrix.org
[m]
thanks sogaiu, @pepe
pp
@damnpepe:matrix.org
[m]
you are welcome
llmII
@llmii:matrix.org
[m]
um pp *
pp
@damnpepe:matrix.org
[m]
same one, the former is french tho
llmII
@llmii:matrix.org
[m]
hehe, I see, still getting used to matrix, and tab complete selection, good to know they're both you
pp
@damnpepe:matrix.org
[m]
indeed
anyway, this part of Janet is the one I like a lot. Not that I am using it that often, but there is something calming in the knowledge that it exists :-). And is not that hard to use, when needed
llmII
@llmii:matrix.org
[m]
wonder what's a good way to collect and display a parsing error for end user purposes from the parse function, but yep pp having the parser available like that, emitting values but not evaluating, is awesome 😀
2 replies
llmII
@llmii:matrix.org
[m]
pp: got to thinking about it, the context stuff, saw an example of that somewhere actually, very useful, as to do-file... could spawn it in another fiber with a deadline and between limiting context so they basically only get def/var and specials and maybe something you want to insert, and setting a deadline (no infinite while loops), can possibly prevent that
by prevent that, I mean, prevent arbitrary code exec
I'm unsure if the deadline for a spawned coroutine will work if all that is done is blocking actions
llmII
@llmii:matrix.org
[m]
ev/with-deadline won't work for that, as I feared, might be better to just start a process to read the config, or start a thread really
(ev/with-deadline 5 (ev/thread (fn [] (while true ())))) works 😁
llmII
@llmii:matrix.org
[m]
only issue I guess is there's no way to kill a thread like that that I know of
llmII
@llmii:matrix.org
[m]
that said, I'd guess dofile and the like are ok where things can be trusted, but using the parser is the best bet for stuff that the user supplies and you don't want to trust... not sure what to do about the ability to have hung threads if someone inserts a "while true" loop, sort of I guess want a way to say "stop running the script if it takes too long", processes have better support in this case than threads, since such can be killed if it runs away
llmII
@llmii:matrix.org
[m]
oh well, configuration file parsing can be done with parse, doing it with nice error messages can be figured out later, just have to think on how to use the parser to do multiple values instead of array-wrapping possibly
llmII
@llmii:matrix.org
[m]
that's of interest indeed, if I could prohibit fn defn defmacro and variants that'd pretty much make flycheck do great for checking for errors without having to worry about arbitrary execution
saikyun
@saikyun
@pepe thanks for mentioning the error message problem, haha. I got a similar error in freja, which was easier to find thanks to your mention of it :)
3 replies
made it easier for me to look through recent janet commits
sogaiu
@sogaiu:matrix.org
[m]
pp: presumably he means this
as there was saikyun/freja@bea027e that referred to debug/stacktrace
saikyun
@saikyun
yeah what sogaiu said :)
pp
@damnpepe:matrix.org
[m]
you should I insist
I hoped to be funny
And thanks sogaiu as always!
saikyun
@saikyun
:D
pp
@damnpepe:matrix.org
[m]
There are some improvements to the numarray example. But they are in C, so I would love to get any feedback. 🙏
pp
@damnpepe:matrix.org
[m]
janet-lang/janet#894 there I meant
pp
@damnpepe:matrix.org
[m]
bakpakin: can you please check PRs on the mendoza? They are mostly typos and formatting. Also I would like to change circlet to spork/http and separate watching from the library code, if you are OK with these changes
2 replies
pp
@damnpepe:matrix.org
[m]
If anyone here has some upward facing triangles, I would be glad here https://lobste.rs/s/2poljt/neil_bohemian_rhapsody_for_five_channels
I would also be glad for any feedback :-)
llmII
@llmii:matrix.org
[m]
pp: I don't have an account there but I did a quick read when I was groggy and it seemed interesting, you've put a lot of work into things that's for sure. I can't say I actually understand reactive streams but I believe when I reread it I'll get the gyst even if I wouldn't know of something to directly apply it to. I found it interesting you used jhydro and spun up an encrypted netrpl ordeal (I still haven't found a way to use netrpl, which probably hints more at my lack of imagination and my approach to things being solve some things that are necessary for my needs in the long run)
tionis
@tionis:matrix.org
[m]
I'm having issues using a table with keys that are arrays i mean something like that:
@{@[1 2] 1 @[2 3] 4}
is there a way to make this work?
bakpakin
@bakpakin:matrix.org
[m]
Don't use arrays as table keys, use tuples
arrays are mutable, so comparison is done just with pointer comparison
tionis
@tionis:matrix.org
[m]
i figured it was something like that and also tried it with tuples and it still didn't work, but now when i tried it it worked, must have had a typo somewhere from my previous tries
thanks!
tionis
@tionis:matrix.org
[m]
As I'm always asking some pretty basic Janet questions, I wanted to ask if this is even the right channel/wanted here?
sogaiu
@sogaiu:matrix.org
[m]
tionis: there is a help channel: https://gitter.im/janet-language/help
tionis
@tionis:matrix.org
[m]
Ah perfect, now I won't spam this channel anymore 👍
sogaiu
@sogaiu:matrix.org
[m]
tionis: fwiw, i think it's not necessary to use do inside each if the desire is to use more than one form. in that was not so clear, here is an example.
ah i see you've moved on...never mind me :)