Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
suzuki
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
suzuki
4y ago
> If you have an interface with a single method, or something with a single varying piece of behavior, please strongly consider accepting a function instead. Agreed. And if you prefer methods to functions, you can define methods on such
2.
▲
by
suzuki
5y ago
It is a "mojibake" of 三個和尚沒水喝[1]. [1] https://en.wikipedia.org/wiki/Three_Monks
3.
▲
by
suzuki
6y ago
From a Japanese perspective, it also sounds very unlikely. Go with UTF-8 strings is successful nowadays in Japan.
4.
▲
by
suzuki
6y ago
I agree with you. I wish Python 3 had strings as byte sequences mainly in UTF-8 as Python 2 had once and Go has now. Then things would be kept simple in Japan. Python 3 feels cumbersome. To handle a raw input as a string, you must de
5.
▲
by
suzuki
6y ago
I have written almost the identical Scheme interpreters in Ruby and Crystal: [1] and [2]. The biggest difference I have felt between them is the absence of good old Object, which can represent everything at runtime, from Crystal. I had to
6.
▲
by
suzuki
6y ago
IANAL, but I believe you cannot put "(c) Your Name 2020" on Shakespeare's works in Japan and other countries. Their copyright acts protect the moral rights of authors[1][2]. So I think Zen's file headers would be viola
7.
▲
by
suzuki
6y ago
Now the abstract sequence type of "LINQ in Go" https://github.com/nukata/linq-in-go can be written as type Enumerator(type T) func(yield func(element T)) and the "Select" method can be writte
8.
▲
by
suzuki
6y ago
You are absolutely right. I have written Scheme interpreters in both languages. Compare https://github.com/nukata/little-scheme-in-ruby/blob/v0.3.0/... # Cons cell class Cell include Enumerable
9.
▲
by
suzuki
6y ago
I totally agree with you. I hope we still have a chance to do it well with PyPy.
10.
▲
by
suzuki
6y ago
I have just updated my Scheme interpreter in Crystal ( https://github.com/nukata/little-scheme-in-crystal ), which I used on the above benchmark test, along to Crystal 0.34. The release notes of Crystal 0.34 say "Ha
11.
▲
by
suzuki
6y ago
Crystal is comparable to Java in performance. I am impressed with it. See https://github.com/nukata/little-scheme#performance and https://github.com/nukata/little-scheme#performance-on-the-t...
12.
▲
by
suzuki
6y ago
In my experiment, the Crystal version ( https://github.com/nukata/little-scheme-in-crystal ) was 38x faster than the Ruby version ( https://github.com/nukata/little-scheme-in-ruby ) and comparable to
13.
▲
by
suzuki
6y ago
I timed each implementation in solving 6-Queens[1] on a meta-circular Scheme[2] (i.e. each Scheme interpreter ran a meta-circular Scheme interpreter to solve 6-Queens). Results are shown in [3]; the order of speed is observed as follows: Go
14.
▲
Show HN: Scheme with first-class continuations implemented in various languages
(github.com)
4 points
by
suzuki
6y ago
|
1 comments
15.
▲
by
suzuki
7y ago
Good point! I'm looking forward to generics in Go.
16.
▲
by
suzuki
7y ago
You can write your own LINQ in Go with a very short program. See https://github.com/nukata/linq-in-go for example. Here is a self-contained excerpt: type Any = interface{} type Enumerator func(yield func(element
17.
▲
Show HN: A Little Scheme in TypeScript
(github.com)
2 points
by
suzuki
7y ago
|
0 comments
18.
▲
Show HN: Cyg-Git Makes Cygwin's Git and GCC Usable from Go
(github.com)
3 points
by
suzuki
7y ago
|
0 comments
19.
▲
by
suzuki
8y ago
This is a small interpreter of a subset of Scheme. It implements the same language as https://github.com/nukata/little-scheme-in-python (and also its meta-circular interpreter, https://github.com/nukat
20.
▲
Show HN: Scheme with first-class call/cc in 700 lines of Go code
(github.com)
1 points
by
suzuki
8y ago
|
1 comments
21.
▲
Show HN: Tower of Meta-Circular Interpreters of Scheme
(github.com)
4 points
by
suzuki
8y ago
|
0 comments
22.
▲
How to Implement Scheme with Call/cc in Python
(github.com)
3 points
by
suzuki
8y ago
|
0 comments
23.
▲
Show HN: Wokring with Files in Golang LINQ
(github.com)
3 points
by
suzuki
8y ago
|
0 comments
24.
▲
Show HN: Scheme with first-class continuations in 300 lines of Python
(github.com)
3 points
by
suzuki
8y ago
|
0 comments
25.
▲
by
suzuki
8y ago
This LINQ implementation is unique in that it is not related to any particular data structure. The LINQ code in C# found at https://docs.microsoft.com/dotnet/api/system.linq.enumerable... can be written in Go with
26.
▲
Show HN: An Experimental 'LINQ to Objects' in Go
(github.com)
1 points
by
suzuki
8y ago
|
1 comments
27.
▲
by
suzuki
8y ago
If you had used WSLGit ( https://github.com/andy-5/wslgit ), you could use Cyg-Git ( https://github.com/nukata/cyg-git ) instead. It provides a "Git for Windows" virtually for Go and VSCode
28.
▲
by
suzuki
8y ago
Thank you. I appreciated especially the pattern matching feature of C# 7 while programming the interpreter. For example: /// <summary>Evaluate a Lisp expression in an environment.</summary>
29.
▲
by
suzuki
8y ago
Thank you. This Lisp is a translation of my other Lisp in 1200 lines of Dart ( https://github.com/nukata/lisp-in-dart ), which is, in turn, a digest or refinement of my old L2Lisp in Java ( https://github.com&#
30.
▲
by
suzuki
8y ago
I wonder if it might be unfair to include the byte-compiled results (with .fast and .elc files) of CLISP and Emacs Lisp to the table.
More ›