profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/wasamasa/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Vasilij Schneidermann wasamasa Germany https://depp.brause.cc GitHub sucks

kanaka/mal 7868

mal - Make a Lisp

emacs-evil/evil 2021

The extensible vi layer for Emacs.

jorgenschaefer/circe 336

Circe, a Client for IRC in Emacs

emacs-csharp/csharp-mode 126

A major-mode for editing C# in emacs

tali713/esxml 39

An elisp library for working with xml, esxml and sxml.

wasamasa/chip8.el 36

CHIP-8 emulator for Emacs

Fuco1/sallet 19

A type of light spherical helmet

wasamasa/breadline 6

CHICKEN Scheme bindings to GNU Readline

startedwasamasa/form-feed

started time in 14 hours

pull request commentjorgenschaefer/circe

circe-network-defaults : correct libera nickserv mask and challenge

I have added :nickserv-identify-challenge "\C-b/msg\\s-NickServ\\s-IDENTIFY\\s-\\S-+\\s-<password>\C-b" in my entry for libera.chat in circe-network-options. That is more in line with the Freenode definition. You could also think about switching the Freenode definition to "This nickname is registered" for orthogonality.

aagon

comment created time in 6 days

issue commentjorgenschaefer/circe

Any way to surface "Buffers with unread messages" ?

@jorgenschaefer How do I disable circe touching my modeline? image

Disabling tracking-mode doesn't hide the above.

bradens

comment created time in 6 days

pull request commentkanaka/mal

Java truffle native image

Confirming the native image works on my machine too!

\o/ Thanks for checking :D

@mmcgill I am trying this out locally. When running gradle build I get:

$ gradle build

> Configure project :
/private/tmp/mal/impls/java-truffle/build/classes/java/main:/private/tmp/mal/impls/java-truffle/build/resources/main:/Users/borkdude/.m2/repository/org/graalvm/truffle/truffle-api/21.1.0/truffle-api-21.1.0.jar:/Users/borkdude/.gradle/caches/modules-2/files-2.1/org.organicdesign/Paguro/3.2.0/c437a15a2eb0a1f3efbdbf995c7ee8c988201963/Paguro-3.2.0.jar

> Task :compileJava FAILED
/private/tmp/mal/impls/java-truffle/src/main/java/truffle/mal/step3_env.java:9: error: package org.graalvm.polyglot does not exist
import org.graalvm.polyglot.Context;

followed by lots of other similar errors. What should I do to fix this?

Apologies, I didn't think through the implications of excluding the graal-sdk dependency of truffle-api, which is there specifically to ensure compilation on JDKs other than Graal. I added that as a hack to work around classpath issues in Eclipse after importing the Gradle project, There's almost certainly a more correct way to accomplish the goal, so I'll remove the exclusion.

mmcgill

comment created time in 7 days

pull request commentkanaka/mal

Java truffle native image

Confirming the native image works on my machine too!

mmcgill

comment created time in 7 days

pull request commentkanaka/mal

Java truffle native image

@mmcgill I am trying this out locally. When running gradle build I get:

$ gradle build

> Configure project :
/private/tmp/mal/impls/java-truffle/build/classes/java/main:/private/tmp/mal/impls/java-truffle/build/resources/main:/Users/borkdude/.m2/repository/org/graalvm/truffle/truffle-api/21.1.0/truffle-api-21.1.0.jar:/Users/borkdude/.gradle/caches/modules-2/files-2.1/org.organicdesign/Paguro/3.2.0/c437a15a2eb0a1f3efbdbf995c7ee8c988201963/Paguro-3.2.0.jar

> Task :compileJava FAILED
/private/tmp/mal/impls/java-truffle/src/main/java/truffle/mal/step3_env.java:9: error: package org.graalvm.polyglot does not exist
import org.graalvm.polyglot.Context;

followed by lots of other similar errors. What should I do to fix this?

mmcgill

comment created time in 7 days

pull request commentkanaka/mal

Java truffle native image

Sorry for the stupid question, but since when are step B to E a thing?

They're totally not :) I was trying to stick with Mal's pedagogical approach, and add some Truffle-specific optimizations in stepwise fashion so that readers could follow along. Hopefully I haven't muddled things too much in the process.

mmcgill

comment created time in 7 days

issue commentkanaka/mal

GraalVM native image compilation of mal

@borkdude I've submitted a PR. All steps AOT compile for me now.

borkdude

comment created time in 7 days

PR opened kanaka/mal

Java truffle native image

This PR addresses #568, fixing issues that prevented the compilation of GraalVM native images for the java-truffle Mal implementation.

In addition, a make-native.sh convenience script has been provided for those who wish to try building native images themselves. I have not changed the Makefile or run script to use native images, as each step takes almost a minute to build on my machine.

+60 -10

0 comment

8 changed files

pr created time in 7 days

issue commentkanaka/mal

GraalVM native image compilation of mal

Looking forward to inspect the changes and learn more!

borkdude

comment created time in 8 days

issue commentkanaka/mal

GraalVM native image compilation of mal

Success! Step E AOT compiles now, only took a few minor changes.

~/repos/mal/impls/java-truffle$ time ./run ../tests/fib.mal 30 10
Times (in ms) for (fib 30) on java-truffle:  [186 47 25 21 26 21 24 30 30 24]

real    0m2.886s
user    0m3.126s
sys     0m0.444s
~/repos/mal/impls/java-truffle$ time ./mal ../tests/fib.mal 30 10
Times (in ms) for (fib 30) on java-truffle:  [143 40 17 17 19 16 17 18 18 17]

real    0m0.333s
user    0m0.316s
sys     0m0.123s

I'm hopeful that I've found all the trouble spots. I'll get the rest of the steps in shape. I'm thinking I'll also update the build to (optionally?) produce a native image that gets used to run the tests.

Thanks for trying this out, @borkdude!

borkdude

comment created time in 8 days

issue commentkanaka/mal

GraalVM native image compilation of mal

@mmcgill Cool! Please keep me posted.

borkdude

comment created time in 9 days

issue commentkanaka/mal

GraalVM native image compilation of mal

Well, good news and bad news :)

Good news: I've got a native image of step2_eval (though I had to add a missing @TruffleBoundary and then tweak some code to work around a SIGSEGV during compilation that might warrant another bug report if I can manage to provide a smaller reproducing case).

Bad news: Getting past your error required deleting all the other steps. I don't know anything yet about how GraalVM's native compilation works, but hoped that maybe some sort of early reachability analysis would mean that all the duplicate code gets ignored when building from a particular step. That doesn't seem to be the case :(

So, following the Mal implementation pattern with each step in its own file might significantly complicate the production of native images in a straightforward way.

It would be awfully neat, though. I'll think on it a bit, and in the mean time see if I can get stepE_macros to AOT compile. Worst case, maybe I push a branch w/ just step E to my fork.

borkdude

comment created time in 9 days

issue commentkanaka/mal

GraalVM native image compilation of mal

Hi @borkdude! Thanks for sharing this. I never got around to trying native image compilation, so I'm not surprised it doesn't work yet.

I'll see if I can narrow the problem down. Hopefully it turns out to be fixable without significant rework :)

borkdude

comment created time in 9 days

issue openedjorgenschaefer/circe

Support Emacs 28's emojis

From the NEWS file:

Smileys can now be rendered with emojis instead of small images when using the new 'emoji' value in 'smiley-style'.

As smiley.el seems to be - per Gnus - a part of GNU Emacs these days, it might be a not entirely bad idea to integrate it in Circe?

created time in 10 days

GollumEvent

PR opened kanaka/mal

Reduce core_ns in self hosting to a list of symbols

This simplifies a bit previous steps and prepares a future merge request removing the macro? exception.

+13 -73

0 comment

7 changed files

pr created time in 10 days

PR opened kanaka/mal

Print a stack trace for uncaught exceptions in self-hosting

An uncaught exception in the self-hosting implementation causes the interpreter to display the EVALed ast for each EVAL level until the exception, something similare to a stack trace. This does not cost much and may help a lot debugging the self-hosting step.

On the other hand, remove try* from step0 where it serves no useful purpose.

Because of indentation level, this diff is better viewed with the git -b command line option.

+333 -244

0 comment

9 changed files

pr created time in 10 days

PR opened kanaka/mal

Move step9 test of map as exceptions from deferrable to optional

Self-hosting is not requiring this anymore.

+4 -4

0 comment

1 changed file

pr created time in 10 days

issue commentkanaka/mal

Tests don't work on native Windows

@kanaka I ran into the same issue. It is easy to overcome by using WSL (at least in my use case), but on a broader level shouldn't the tests be updated to rely on Python 3 since Python 2 is no longer supported?

AP2008

comment created time in 11 days

issue openedyoshiki/yaml-mode

Blocks break highlighting

Issue

a: "test1"
b: |
  test2
c: "test3"

yaml-mode-issue

As you can see, highlighting stops working right after the block.

The problem occurs for all blocks in every document I tested.

Am I the only one seeing this ?

Environment

  • Emacs 27.2
  • yaml-mode 0.0.15

created time in 11 days

issue commentkanaka/mal

GraalVM native image compilation of mal

By request of Thomas Wuerthinger, I also logged an isuse here: https://github.com/oracle/graal/issues/3448

borkdude

comment created time in 11 days

pull request commentkanaka/mal

Mal implementation using Truffle/GraalVM

@borkdude Oh I know! We use babashka here at work a fair bit. Thank you for your excellent work on that.

Also, @mmcgill is on my team at work. He will likely get back to you when he has some free cycles. If you haven't already figured out the problem in the meantime :smile:

mmcgill

comment created time in 12 days

pull request commentkanaka/mal

Mal implementation using Truffle/GraalVM

@kanaka Created an issue to track it. I might look into it. I've been looking into the Truffle framework a bit and curious about the optimizations.

A bit of context:

I'm the author of http://babashka.org, a fast native Clojure interpreter for scripting. It's built without any relation toTruffle, but it is compiled to native using GraalVM native-image, so it has the fast startup time (a few milliseconds).

It would be awesome to get babashka on par, performance-wise, with something like mal on truffle.

mmcgill

comment created time in 12 days

issue openedkanaka/mal

GraalVM native image compilation of mal

Hey @mmcgill, relaying a message from @borkdude who tried to build native with native-image and ran into some issues: https://gist.github.com/borkdude/e0e12997ce3a7b09b44f15769add85a9 (tweet for reference: https://twitter.com/borkdude/status/1400149389654597632)

If either of you are interested in working this further, can one of you open a mal issue for tracking and discussion? Thanks.

Originally posted by @kanaka in https://github.com/kanaka/mal/issues/528#issuecomment-853269739

created time in 12 days

pull request commentkanaka/mal

Mal implementation using Truffle/GraalVM

Hey @mmcgill, relaying a message from @borkdude who tried to build native with native-image and ran into some issues: https://gist.github.com/borkdude/e0e12997ce3a7b09b44f15769add85a9 (tweet for reference: https://twitter.com/borkdude/status/1400149389654597632)

If either of you are interested in working this further, can one of you open a mal issue for tracking and discussion? Thanks.

mmcgill

comment created time in 12 days

pull request commentkanaka/mal

Mal implementation using Truffle/GraalVM

Announced: https://twitter.com/bus_kanaka/status/1400102029834477568

mmcgill

comment created time in 12 days

pull request commentkanaka/mal

Reader Macro Expansion Test Step 8

Investigating macro and quasiquote expansion is difficult. I will not discuss the large test, but the short test should definitely be included in step1 for each reader macro.

wgmyers

comment created time in 13 days

pull request commentkanaka/mal

Mal implementation using Truffle/GraalVM

\o/

Thanks for all your feedback!

I don't have a Twitter account (that I use), so feel free to announce :)

mmcgill

comment created time in 13 days