~pepe

Liberec, Bohemia

https://pan.earth

I am a loving husband and father, cosmopolitan, programmer, and party animal.

Languages loved: SmallTalk, Ruby.

Now Janet.

~pepe/good-place

Last active a year ago
View more

Recent activity

Re: [Trolley] Fiber and segmentation fault a year ago

From Josef Pospíšil to ~pepe/good-place

After a little more investigation, I have found that the issue is
caused by the environment given to fiber (none in the example you
gave), so when you inherit or set the prototype for the created fiber,
it again works fine.

```
(import trolley)
(def f
  (fiber/new
    (fn []
      (trolley/router {"/:id" print})) :p)) # or :i

(ev/go f)
```

Re: [Trolley] Fiber and segmentation fault a year ago

From Josef Pospíšil to ~pepe/good-place

Just a quick test with slightly changed code works fine. I guess there
is some problem in creating new fiber without correct blocking.

```
(import trolley)
(def f (coro (pp ((trolley/router {"/:id" :root}) "/10"))))
(ev/go f)
```
As I said, I will look into it later, but I suspect, there is
something wrong with Janet itself in this case.

st 19. 5. 2021 v 16:28 odesílatel denis <denis@ecaf.be> napsal:
>
> Hello,

Re: [Trolley] Fiber and segmentation fault a year ago

From Josef Pospíšil to ~pepe/good-place

Hello, thank you very much for trying Trolley.

I am using it in fibers routinely, but I guess there definitely could
be some bug. I am leaving the computer for the vaccine shot in a short
time, but I will try to look into it later tonite and write back.

Cheers Pepe

st 19. 5. 2021 v 16:28 odesílatel denis <denis@ecaf.be> napsal:
>
> Hello,
>
> I'm looking for a simple router library in Janet, and Trolley seems
> very good!

Discuss: remove moondown and multimarkdown 1 year, 5 months ago

From Josef Pospíšil to ~subsetpark/bagatto-devel

Hello.

I think that if we want the best experience for the new users, we
should consider removing the moondown cause the C lib is deprecated
but also multimarkdown as it is a standalone POSIX program, and at
minimum destroys the possibility of running it on windows. I know
markable is not yet windows ready, but it may work in the future.

The moondown I would replace with markable for good, and about
multimarkdown there could be in the manual page about its integration.

If you are sympathetic to this, I am volunteering for this task.

--

[PATCH] Add markable renderer 1 year, 5 months ago

From Josef Pospíšil to ~subsetpark/bagatto-devel

---
 bagatto.janet | 6 ++++++
 project.janet | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/bagatto.janet b/bagatto.janet
index 95979cd..156b115 100644
--- a/bagatto.janet
@@ -1,6 +1,7 @@
(import sh)
(import temple)
(import moondown)
(import markable)
[message trimmed]

[PATCH] Fix #11 bag error without index 1 year, 5 months ago

From Josef Pospíšil to ~subsetpark/bagatto-devel

---
 main.janet | 38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/main.janet b/main.janet
index e818046..4cf06cb 100644
--- a/main.janet
+++ b/main.janet
@@ -19,9 +19,9 @@

(defn- prepare-env [index]
  (-> index
     (dofile)
     (merge-into bagatto)
[message trimmed]