Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
richard_shelton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
31.
▲
by
richard_shelton
8y ago
I have more uses for Python than the author, but one of these uses is really obvious: Python as C code generator. Python + C is a very powerful combination: metaprogramming, special constructs etc. Basically, with Python you can get rid of
32.
▲
by
richard_shelton
8y ago
Thank you! I agree that just using of pattern matching may be not enough. But, instead of Visitor Pattern, I would use generic traversal "strategies" (combinators). My ideal is a DSL with first-class term rewriting rules + user de
33.
▲
by
richard_shelton
8y ago
Well, it's another "Java-related compiler textbook". And this edition has a coauthor (Jens Palsberg) who is responsible for all OOP/Java-related things in the book. I recommend to read original ML edition even for Java d
34.
▲
by
richard_shelton
8y ago
I guess things you've mentioned are widespread inside the Java community. But let's consider the things that have more global impact to compiler writers. For example, Scala LMS is a very interesting and promising recent project. T
35.
▲
by
richard_shelton
8y ago
In fact, it's a rather old question: what is better 1) a declarative approach with pattern matching or 2) Visitor pattern from OOP world. Ok, better for what? Let's take a practical example: AST transformations inside a compiler.
36.
▲
by
richard_shelton
9y ago
if I understand correctly, you're the author of decompiler for StarFlight game. The most famous game written in Forth. And maybe most popular piece of Forth software of all times. So I think you surely know more about Forth than many m
37.
▲
by
richard_shelton
9y ago
I have programmed for years with Forth and I really think it was not a wasting of the time for me. I had very interesting Forth-related job, I became more proficient in PL design/compilers-related things because of Forth. Alas, I don&#
38.
▲
by
richard_shelton
9y ago
I'm glad that you've mentioned Kaissa, the famous chess program from Soviet Union. Kaissa was developed in 1972. Before that, in 1963, there was ITEP (ИТЭФ) chess program and in 1965 this program won in the international computer
39.
▲
by
richard_shelton
9y ago
I would not say that this approach is definitely a failure. Let's consider the following possible uses of it. 1. UNCOL-like language. Now we have LLVM IR and this is basically the same old UNCOL with all its bad points. Still, due to h
40.
▲
by
richard_shelton
9y ago
Yes. Or we can aim for a software FM synth with analog feel in sound of Synclavier and versatility of FS1r :) By the way, Yamaha FS1r is the only hardware FM synth that I currently have. Several years ago I've implemented singing synth
41.
▲
by
richard_shelton
9y ago
Yes, Alles synth is mostly known by its additive synthesis. But don't you hear some classic FM timbres in the video? Please check this pdf too: http://retiary.org/ls/obsolete_systems/Alles_synth_1977.pdf
42.
▲
by
richard_shelton
9y ago
And if you want to see and hear how musicians used FM synthesis in pre-Yamaha era then I would suggest to check this video with famous Laurie Spiegel playing in real-time on Alles synth: https://www.youtube.com/watch?v=NChqE
43.
▲
by
richard_shelton
9y ago
Really? Good to know! Maybe one day a few stubborn sound designers will replace Yamaha modules from their rack with these FPGA replicas :)
44.
▲
by
richard_shelton
9y ago
Thank you! Didn't knew that about LFO. And I just found your wiki page [1], it's very informative. So I would like direct any curious reader there :) [1] https://github.com/google/music-synthesizer-for-android
45.
▲
by
richard_shelton
9y ago
In DX7 the actual sound was made with custom LSIs. I.e. there is no CPU involved. And no multiplication inside, Japanese engineers used log/exp sine tables instead. Also DX7 had sampling rate of 49096 Hz, 12-bit "floating-point&qu
46.
▲
by
richard_shelton
9y ago
Thank you for the answer! I understand that separation of the grammar and semantics has its benefits. You can use the same grammar description with different semantic rules sets etc. It's, indeed, a clean and interesting approach. But
47.
▲
by
richard_shelton
9y ago
I really liked what was done in STEPS project. I learned a lot from their repors. For example, this Ian Piumarta's paper is absolutely beautiful [1]. I also spent a lot of time learning oMeta [3] system by Alessandro Warth. And, honest
48.
▲
Python version of Star Trader (1974), classic BASIC game
(github.com)
4 points
by
richard_shelton
9y ago
|
0 comments
49.
▲
by
richard_shelton
9y ago
I think the truth is somewhere in the middle. Look at complex CAD systems and editors. They focused on the visual side and still provide some kind of command line for scripting the things. Even in pure visual programming systems like PD you
50.
▲
by
richard_shelton
9y ago
Yeah... Just an another example: https://www.youtube.com/watch?v=Xpr8pvSgqI8
51.
▲
by
richard_shelton
9y ago
An interesting approach! But old META II (mentioned in the original article) system and its derivatives are looking more practical to me. I think, it's more effective to have two simple DSLs, one for parsing and another one for tree tr
52.
▲
by
richard_shelton
9y ago
I never heard about Hannu Rajaniemi, but I like sci-fi genre and first 2 books of his trilogy already translated to Russian, so I'll definitely read them. Thank you! I was a bit surprised that you've connected the term sobornost w
53.
▲
by
richard_shelton
9y ago
Well, there were characters like Czar Zet Eightieth and Princess Motorola 6845 in the book. You hardly may found something about Соборность in Soviet tech journals, more likely -- synergy, emergence and stuff like this :)
54.
▲
by
richard_shelton
9y ago
I remember another Polish journal: Horyzonty Techniki dla Dzieci ( https://pl.wikipedia.org/wiki/Kalejdoskop_Techniki ). I was reading Russian translated version of it under the name Горизонты техники для детей. I don&#
55.
▲
by
richard_shelton
9y ago
I prefer not to call it "logic programming" from the point of learning the language. Too many textbooks start from explaining that "Socrates is a man" or talk about Robinson's resolution. And, as a result, student d
56.
▲
by
richard_shelton
9y ago
Honestly, I don't think that "concatenative" is a good term here. I prefer to call it a special case of combinator-oriented programming. You may see examples of this approach in vector languages like APL, FP and in functional
57.
▲
by
richard_shelton
9y ago
I think, it depends on how you use Python. 1. "Executable pseudocode", almost a toy language to explain few algorithms in your article. 2. Sysadmin tool. Replacement for shell, a way to write quick throwaway scripts. 3. "A mo
58.
▲
by
richard_shelton
9y ago
In the beginning of 80s there was a concept called "Programming is the second literacy" [1] introduced by Soviet computer scientist A.P. Ershov. Nowadays it's obvious that there is a huge demand in special programming tools n
59.
▲
by
richard_shelton
9y ago
Don't give me wrong, I'm not protecting this idea. But I don't like some alternatives either, like banning the access to "enemy media". And it's more shameful when some democratic country doing it. I think, the
60.
▲
by
richard_shelton
9y ago
It would be nice to have a superoptimizer for Z80 in a form of web tool. You provide a C expression to it and the tool will return in turn the shortest code sequence. Demosceners would love it. Superoptimization: https://en.wikip
More ›