HNHacker News
TopNewBestAskShowJobs

richard_shelton

151 karma · joined April 29, 2017

Also known as "true-grue" or Peter Sovietov.
submissionscomments
richard_shelton··on Historical recreation/restoration of original Forth on the IBM 1130
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't think that Forth is very relevant today in the professional SW development. But it's still a great teaching tool. I would like to see, for example, a PL design course where first pages would be about META II and Forth implementations.

Modern programmers need more examples of beautiful, miniature software architectures. Tools like Forth are especially interesting, because they show us that even a single developer may do great handcrafted things and he doesn't need to depend on third-party tools, IDEs, frameworks for it. Charles Moore haven't invented Forth from scratch, he "synthesized" it from some really great ideas of 50-60s, like Lisp, B5000, APL etc. Moore took only those parts, which were good components (simple to implement, understand, combine) to build his own independent tool. N. Wirth uses the similiar approach, by the way.

Maybe today we could repeat the same synthesis/minimisation process with some modern ideas/technologies to create a beautiful tool for a modern programmer - lone craftsman. Or maybe the whole "tool-making" (see Whole Earth Catalog etc) movement is just a thing from the past?

richard_shelton··on A 'Brief' History of Game AI Up to AlphaGo
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 chess match. See details here: https://chessprogramming.wikispaces.com/ITEP+Chess+Program#S...

By the way, the first computer game in USSR was made in 1957 on computer Strela-1, the author is Yuri Pervin. It was a variant of Dominoes board game in the player vs computer mode. The game was described in "Problemi Kibernetiki", issue 3, pages 171-180.

richard_shelton··on LIL, the Little Implementation Language (1974)
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 help of the large companies and with supporting only a subset of possible processor architectures this "LIL" variant is quite popular.

2. An assember with algebraic syntax. This is really good thing to have, much more readable than all those cryptic mnemonics. Here are few interesting examples: DSP assemblers [1] and [2], low-level DSLs [3]. I'm using algebraic notation in my own compilers. There is a trivial mapping between low-level term-based IR and C-like algebraic assembly source (in some cases you even don't need to have a separate simulator, just compile the code with C compiler).

[1] http://www.analog.com/media/en/dsp-documentation/processor-m...

[2] http://worrydream.com/bkasm/

[3] https://cr.yp.to/qhasm.html

richard_shelton··on Yamaha DX-7 synthesizer clone written in SuperCollider
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 synthesis after reading Yamaha's patent on FS1r. The synthesis was implemented on a specialized multicore chip and we even showed the result to Yamaha representatives. They liked the sound, but they were not interested in the chip. Anyway, it's a different story :)

richard_shelton··on Yamaha DX-7 synthesizer clone written in SuperCollider
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
richard_shelton··on Yamaha DX-7 synthesizer clone written in SuperCollider
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=NChqEEz31eE
richard_shelton··on Yamaha DX-7 synthesizer clone written in SuperCollider
Really? Good to know! Maybe one day a few stubborn sound designers will replace Yamaha modules from their rack with these FPGA replicas :)
richard_shelton··on Yamaha DX-7 synthesizer clone written in SuperCollider
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/blob...

richard_shelton··on Yamaha DX-7 synthesizer clone written in SuperCollider
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" DACs etc etc. Most of software versions of DX7 don't take these nuances in account which makes some DX7 purists upset :)

If you, as a DX7 clone developer, want to make happy these 2 or 3 people too, please, use fixed point calculations, resampling, real ROM data and so on :)

richard_shelton··on Ohm: Parsing Made Easy
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, as I understand, Ohm still has no support for context-sensitive grammars, which is more important to have in many cases, than proper left recursion handling.

And oMeta had another nice feature: meta-rules (higher-order rules) which is absent in Ohm, if I understand correctly.

Ohm tries to be very user-friendly, but at the price of droping the functionality. So in this case Ohm is not a modern replacement for oMeta (which had the AST transforming features -- very important for making compilers!).

I'm not trying to be negative and I really wish a big success to your team!

richard_shelton··on Ohm: Parsing Made Easy
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, honestly, now I see nothing really new in Ohm. Basically, it's just some tweaking of the same tech. Moreover, Ohm was made for isolated parsing task. For me it's a step back. My point is that the parsing alone is not very interesting thing, for making DSLs you need to have other tools too. In the Ian Piumarta's paper we had a minimalistic program transformation system [2]. Remember original META II [4]? It was a compiler-compiler (metacompiler), not just a parser generator. I'm really curious to know why the authors decided this time to limit themselves by only parsing.

[1] http://www.vpri.org/pdf/tr2010003_PEG.pdf

[2] https://en.wikipedia.org/wiki/List_of_program_transformation...

[3] http://www.vpri.org/pdf/tr2008003_experimenting.pdf

[4] http://www.ibm-1401.info/Meta-II-schorre.pdf

richard_shelton··on Ask HN: Why does visual programming suck?
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 can type algebraic expressions in textual form. And in text-based systems you may have lots of 2d tables (Smalltalk), graphs of modules, semantic colors (colorForth) etc.

Imagine GUI editor where the user can type the code on the left side and also can move and edit widgets with cursor on the right side. And editing of both sides is working in live mode. My point is that we need to have the best of both worlds to be really productive.

richard_shelton··on Going underground: the Moscow metro
Yeah... Just an another example: https://www.youtube.com/watch?v=Xpr8pvSgqI8
richard_shelton··on Growing a Compiler (2009)
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 transforming like it was done in Cwic and TREE-МЕТА, which are grew from original META II (self-described in a few lines of code).
richard_shelton··on A Soviet vision of the future: the legacy and influence of Tekhikia–Molodezhi
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 with my originial message. In fact Odoevsky' tale is not only about mechanics or optics, it has philosophical meaning too and one can relate things like sobornost to it. But I think not many even Russian critics think so deep about this old tale.

Early ideas of Odoevsky and slavophiles made a base for a philosophy of Russian cosmism [1]. Just a few famous names related to this philosophy: Nikolai Fyodorov [2], Konstantin Tsiolkovsky [3] (one of the fathers of rocketry and astronautics), Alexander Bogdanov [4] (father of systems theory), Vladimir Vernadsky [7] (noosphere).

I also suggest to read The Cybernetic Manifesto [6] by Valentin Turchin [5] (the author of programming language Refal) for more modern view on sobornost-like things.

[1] https://en.wikipedia.org/wiki/Russian_cosmism

[2] https://en.wikipedia.org/wiki/Nikolai_Fyodorovich_Fyodorov

[3] https://en.wikipedia.org/wiki/Alexander_Bogdanov

[4] https://en.wikipedia.org/wiki/Konstantin_Tsiolkovsky

[5] https://en.wikipedia.org/wiki/Valentin_Turchin

[6] http://pespmc1.vub.ac.be/MANIFESTO.html

[7] https://en.wikipedia.org/wiki/Vladimir_Vernadsky

richard_shelton··on A Soviet vision of the future: the legacy and influence of Tekhikia–Molodezhi
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 :)

richard_shelton··on A Soviet vision of the future: the legacy and influence of Tekhikia–Molodezhi
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't know if this journal was popular in Poland, but we, kids from USSR, liked it very much!

And I still remember the chapters of В Стране Микроников, или Секреты компьютера by Мирослав Томаля. This book was published in the journal. Sorry, I found no Polish or English sources about the book and the author. The book was about the kids who by some magic got inside the computer. Basically the story is the same as in The Town in the Snuff-box by Vladimir Odoyevsky. But with a lots of details about how computer hardware works. Today I could suggest this book to kids and some curious front-end web developers! :)

richard_shelton··on Esoteric programming paradigms
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 doesn't know what to do with this language.

Declarative is a vague term, but for me it means mostly a way to compactly describe your problem in domain-specific terms. There are some languages in which you can produce compact code, like APL or J. But declarative for me means readable too. And there are cases, when in Prolog one can write a more compact and readable code than in Haskell. In Prolog you can describe just the essence of the problem. Not always, of course.

Another interesting thing about Prolog that it's a small language. It means that it has only few internal parts that make it alive (The complexity of many Prolog implementations is a result of fighting for perfomance). I really like small languages (like Oberon or Forth, for example), because it's possible to learn how they work internally. And the knowledge of this inner working helps to understand the language better. There is nothing "logical" inside Prolog, just a few powerful imperative constructs.

The author of "Prolog Under the Hood An Honest Look" says:

"Prolog, billed as "logic programming", is not really. You may be disappointed if that's what you expected to find. On the other hand, having backtracking, unification, and recursion inside one computer language leads to something very powerful and special."

And I, personally, like Prolog terms very much!

richard_shelton··on Esoteric programming paradigms
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 world too (see Henderson's book, SICP and so on). The author of Joy (the language which spawned the whole "concatenative" activity) clearly was inspired by Backus's FP. Here we have stack combinators and we can emulate them even in Python, thanks to closures.

square = code(dup, op("*"))

Add a bit of syntactic sugar and you'll get "concatenative", or, better stack combinator-oriented language.

As for Prolog, I really appreciate that the author is calling it "declarative" not a "logic" language. It's more important to learn about backtracking and unification (powerful variant of pattern matching) than about something like Horn clauses. For anyone who wants to learn Prolog better (and it's worth it, Prolog is one of most beautiful PLs around!) I recommend this article: http://www.amzi.com/articles/prolog_under_the_hood.htm

richard_shelton··on Programming as a Way of Thinking
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 modern Lisp". Universal language for implementing AI algorithms, DSLs etc.

I, personally, use 3rd variant. I write quite big programs in Python, for example I made few compilers in it. That's why code quality is important for me here.

richard_shelton··on Programming as a Way of Thinking
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 not only for professional programmers (C++, Java..), but for domain experts who use algorithms too (Python, DSLs..).

There is a popular objection that "not everyone should be able to code". But it depends on the "to code" definition. A good example here is with game designers. They may not know how to do low-level coding, work with 3d math or use C++ templates. But still for a really good game designer it's very important to have algorithmic thinking and they need to have a tool for testing their algorithmic ideas on the computer.

As for Python, there is an issue: it's hard to find examples of good style of Python programming (I think only few of us actually learnt Python with help of textbook). Some time ago I was happy to find notes by Peter Norvig about Python and about comparing Python and Lisp. His code is very elegant, see, for example: http://norvig.com/python-lisp.html

[1] http://www.sciencedirect.com/science/article/pii/01656074819...

richard_shelton··on Wikipedia blocked in Turkey
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 main problem is that Internet was not designed for the masses originally. In 90s you could find there mostly scientists, programmers, hackers, writers etc. Here, in Russia, everything was concenrated in Fidonet and we had our own Eternal September [1] (2000-...) when dial-up access become cheaper. So, what to do now? To be honest, I don't know. I'm not promoting segregation either. I think it's pointless to make a modern version of Usenet/Fidonet/... for closed groups of like-minded people.

[1] https://en.wikipedia.org/wiki/Eternal_September

richard_shelton··on Show HN: Z80 Compiler Visualization
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.wikipedia.org/wiki/Superoptimization

I found this long abandoned project which is described in non-English, see the examples on the bottom of the page: http://www.ricbit.com/mundobizarro/superopt.php

richard_shelton··on Wikipedia blocked in Turkey
Yes, I can understand your wondering (I'm a Russian too). When I hear about the waves of Russian propaganda all around the globe I can't stop to ask myself a question: "how we become so powerful?". I'm afraid that nowadays some people tend to call any opposite opinion in their countries as a Russian propaganda. And I can understand that with a lack of good opposition/alternative media people start to read Russia Today, just like we here in Russia read BBC and other Western media, especially when we think that our state media tries to hide something from us.

By the way, do you know what a main evil scheme Kremlin uses to brainwash the citizens, to set them against the West? It's not some made-up, fake news. They made a few websites instead, where anyone can read translated articles about Russia, published in Western media. And that's it. As you understand, it's much harder to find something pro-Russian there to translate, than vice versa.

On a serious note, I think that the only way to fight with the streams of fakes (regardless the country) is a restriction of anonymity on the Internet.

← PreviousPage 2 of 2