Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 19 11:24
    pepe closed #98
  • Jan 19 11:24
    pepe commented #98
  • Jan 19 10:07
    pepe synchronize #98
  • Jan 19 09:50
    pepe commented #98
  • Jan 19 09:46
    pepe edited #98
  • Jan 19 09:45
    pepe opened #98
  • Jan 19 00:07

    bakpakin on master

    Update for 1.14.1 (compare)

  • Jan 18 23:25

    bakpakin on master

    Add event loop docs. Merge branch 'master' of github… (compare)

  • Jan 16 16:38

    bakpakin on master

    Add janet.kak editor support Merge pull request #96 from pep… (compare)

  • Jan 16 16:38
    bakpakin closed #96
  • Jan 16 16:38

    bakpakin on master

    Update index.mdz Merge pull request #95 from uvt… (compare)

  • Jan 16 16:38
    bakpakin closed #95
  • Jan 16 16:38

    bakpakin on master

    Tweaks to functions doc Merge pull request #92 from sog… (compare)

  • Jan 16 16:38
    bakpakin closed #92
  • Jan 16 16:37

    bakpakin on master

    Add :h, :h*, :h+, :H to built-i… Merge pull request #94 from sog… (compare)

  • Jan 16 16:37
    bakpakin closed #94
  • Jan 16 16:37

    bakpakin on master

    Add column and line captures to… Add articles Merge pull request #97 from pep… (compare)

  • Jan 16 16:37
    bakpakin closed #97
  • Jan 16 16:37

    bakpakin on master

    Tweak jmp* docs Merge pull request #93 from sog… (compare)

  • Jan 16 16:37
    bakpakin closed #93
andrewchambers
@andrewchambers
but im probably way underestimating the work involved haha
sogaiu
@sogaiu
on a related note perhaps, there is this: https://github.com/swlkr/askjanet
Michael Camilleri
@pyrmont
Forums are coming to GitHub (link).
7 replies
andrewchambers
@andrewchambers
nice
Levi
@LeviSchuck
there goes a bunch of disqus instances
andrewchambers
@andrewchambers
I personally would love a renaissance of mini self hosted servers using just sqlite3 and circlet lol
self hosted forum, pastebin, image hosting w.e.
But it makes sense for janet to just use github as part of the web presence I guess while it is officially hosted there.
Levi
@LeviSchuck
The lightness and fastness of the fossil scm stuff is really neat.
I'm still impressed with how performant HN is.
Matthew Carter
@ahungry
I hate disqus ever since I noticed how it added around 200 download requests on my blog
I had wrote this awhile ago as a drop in replacement (clojure backend): https://github.com/ahungry/com.ahungry.comments - similar concept to a real small backend that just persists in sqlite3 db
200 download requests of tracking pixels and ad stuff
Levi
@LeviSchuck
I really dislike how much junk the marketing team at my employer throws into google tag manager to bloat the site I work for.
sogaiu
@sogaiu

@bakpakin would like to be able to link to the sections within the janet docs but afaict the dom nodes lack ids (e.g. suppose i wanted to refer to "Compiling and running from source" at: https://janet-lang.org/docs/index.html).

is that sort of thing easy to add?

Josef Pospíšil
@pepe
I haven'ŧ checked the actual code, but from my experience with mendoza, it should be easy. If I got it right :-)
sogaiu
@sogaiu
@pepe oh cool -- any hints where i might look?
Michael Camilleri
@pyrmont
Are you asking if there's a way to add links to docstrings or asking how to link locally within the docs?
Michael Camilleri
@pyrmont
If it's a local link with the documentation pages themselves, it's @link[local-path][displayed-text] (e.g. @link[/api/array.html][Array API]).
sogaiu
@sogaiu

i think what i'm asking for is there to be a way to link to headers -- specifically that those "targets" get created automatically.

the use case is trying to send someone a link that points to something within a page. in the old days this was done using the value of the name attribute in an anchor tag (i.e. <a name="...") as a fragment identifier(?), but these days i think it's more common(?) to use the value of an id attribute in a node (assuming there is one) as the fragment id.

so by default if the title from headers (the 1-6 # things) were converted to a suitable string and used as a value for the id attribute (assuming no collisions) of the appropriate node, may be that would work.

perhaps that can be done some how by modifying this: https://github.com/bakpakin/mendoza/blob/master/mendoza/markup.janet#L73-L75

as that's used here: https://github.com/bakpakin/mendoza/blob/master/mendoza/markup.janet#L117

am i making sense?

3 replies
sogaiu
@sogaiu
oops :)
should have used a defn there
here's a better example:
repl:1:> (defn a| [] 1)
<function a>
repl:2:> (a|)
parse error in repl around line 2, column 4: mismatched delimiter

so docs at: https://janet-lang.org/docs/syntax.html say:

Janet symbols are represented as a sequence of alphanumeric characters not starting with a digit or a colon. They can also contain the characters !, \@, $, %, ^, &, *, -, _, +, =, |, ~, :, <, >, ., ?, \, , as well as any Unicode codepoint not in the ASCII range.

but some of these might lead to difficulties in some circumstances (e.g. |, @, ~, ,)

possibly it's good to have either a warning about that or may be not mention some of them?

sogaiu
@sogaiu
so in the example above, the defn leads to defining something with name a and not a| iiuc
may be it's just a matter of updating the list to not include some
sogaiu
@sogaiu

i'm looking through the abstract machine page at: https://janet-lang.org/docs/abstract_machine.html -- it looks like there have been some changes since it got put together.

i think i've tracked down most of the changes and i've summarized them here: https://gist.github.com/sogaiu/381b12f4e7c981146d8af0979258315d

iiuc the table at the web page is generated from: https://github.com/janet-lang/janet-lang.org/blob/master/content/docs/gen-asm-table.janet

i don't think i understand stuff enough yet to fill in the names of the operands nor the descriptions (i think i figured out the number of operands though via the use of disasm). i can make an attempt, but if anyone happens to know of a good way to figure that sort of thing out, please share :)

matrixbot
@matrixbot
@subsetpark:matrix.org But this is the new integration?
Zach Smith
@subsetpark
Nope, that's the old one too
uvtc
@uvtc:matrix.org
[m]
@subsetpark , what do you mean by "old one"?
Z. D. Smith
@subsetpark:matrix.org
[m]
Sorry @uvtc - was trying to figure out the matrix integrations with this Gitter. There’s a new one and an old one live at once, so it takes some experimentation to discover which one you’ve joined
I see you discovered for yourself, judging from the other rooms :)
John Gabriele
@uvtc
It seems like there's three choices (though maybe "Matrix rooms (matrix.org)" and "Gitter rooms (matrix.org)" are the same)?
I'm back using the gitter.im page and things work better.
sogaiu
@sogaiu
i hope i never have to understand these details: https://matrix.org/docs/guides/types-of-bridging
sogaiu
@sogaiu

it's a work-in-progress, but based on the peg docs from the website, i've put together a tutorial meant to be used by evaluating the code from it: https://gitlab.com/-/snippets/2053876

i added things to it that may not be on the website (yet) including:

  • line
  • column
  • int
  • int-be
  • uint
  • uint-be
  • peg/find
  • peg/find-all
  • peg/replace
  • peg/replace-all

and updated some of the explanations (e.g. error's argument is now optional)

i tried to add example code for every construct along with expected evaluation results.

it also has:

  • a slight remixing / reordering of the text from the peg part of the site
  • some sample code that applies the constructs
  • links to repositories that use janet's pegs
  • links to references

if anyone takes a look i'd be happy to hear what you think -- i'm planning to rearrange a bit and possibly split it up

(i may try to file some PRs for the site to address some of the missing pieces based on some of this work)

goto-engineering
@goto-engineering
Very cool! I think PEGs are awesome, but they were definitely weird and scary to me at first.
So kudos for the write up
sogaiu
@sogaiu

@goto-engineering thanks for the feedback

i am definitely still fuzzy on some of their aspects!

Michael Camilleri
@pyrmont
@sogaiu: This is excellent. I'm still going through it but it's really helping flesh out my understanding.
sogaiu
@sogaiu

thank you for the kind words :)

i hope it (or a sucessor) can be made easier to approach (e.g. chunked, rearranged, etc.)

please don't hesitate in pointing out things that could use improvement / deletion / etc.

yunfan
@yunfan
hi, i had just saw the publish news of gnu libmicrohttpd, is it possible to invoke it directly?
Michael Camilleri
@pyrmont
@yunfan: This is a better question for #janet-language/help. This channel is for questions relating to the Janet website.
yunfan
@yunfan
sorry
Andrew Owen
@yumaikas
@bakpakin https://github.com/janet-lang/janet-lang.org/blob/master/content/docs/index.mdz#L21-L26 I'd send in a PR for this part of the website to update the docs to indicate how to download just the C++ build tools?
bakpakin
@bakpakin:matrix.org
[m]
Yeah, I mentioned Visual Studio because it seemed more straight forward but the build tools are easy and smaller
Andrew Owen
@yumaikas
Ok. Right now working on the flashy raylib example to make it calmer, then I might dig into that
bakpakin
@bakpakin:matrix.org
[m]
Im sorry for the epilepsy inducing demos
Andrew Owen
@yumaikas
No worries, it's not something most people think about