News for hackers. Stuff that matters.

senshu

Re:Show HN: A RISC-V core in Racket on Saturday May 01, 2021 @12:20PM (#27007504)
All diagrams were created with Inkscape.
Re:Show HN: A RISC-V core in Racket on Saturday May 01, 2021 @09:37AM (#27006207)
In the "signal-of-vectors vs vector-of-signals" comparison, "vector" refers to the Racket data type used for arrays. It should not be confused with "bit vectors", which are represented as integers (assuming that a bit can only be 0 or 1). While it is theoretically feasible, I would rather not use an array to store bits.

I think that your question assumes a model of computation similar to VHDL or Verilog. The techniques I use in Racket are similar to those used in Clash ( https://clash-lang.org/ ) In VHDL or Verilog, signals are updated in reaction to events. In Racket, I implement signals as lazy data streams: values are "pulled" from signals, which can trigger the evaluation of other signals. This is possible because I restrict my models to synchronous circuits with a single clock domain.

You can read more about it in this post: http://guillaume.baierouge.fr/2021/03/14/simulating-digital-...

I thing it was Borland Turbo C++ 3.0 for MS-DOS. It had syntax highlighting, integrated help with full language and API documentation. Which was useful because I didn't have Internet access back then, at the beginning of the 1990's.

I had to buy a new PC with an Intel 386 CPU, and add "extended memory" to run the IDE. It couldn't run with only 640 Ko of RAM.

I am the author of the question at stackoverflow.

The racket topic on SO does not seem very active, so I thought I could get answers here as well.

I didn't know that. I will fix the README of the project as well.
Definitely. This could be the next step in my exploration of programming techniques to solve this problem. I will have a look at your implementation.
The authors of the Gecode solver could explain it better than me, but I think that -O3 and -O4 perform a first pass that pre-compute variable bounds and values, which could reduce the exploration space significantly.
I agree with that and I definitely will try.

As explained in the first comment, one of the motivations for the project was to learn constraint programming. The tablature generator could be a nice example to compare different paradigms and algorithms.

Author here. TablaZinc is a proof-of-concept tablature generator for fretted string instruments -- such as the guitar, bass, mandolin, banjo, etc.

It is a week-end project that I started for two reasons:

* As a software developer, I was looking for an original case study to learn constraint programming.

* As a guitar player whot is not fluent reading sheet music, I was interested in a tool to rapidly convert existing transcriptions of jazz solos into playable guitar tablatures.

TablaZinc is written in the MiniZinc language. https://www.minizinc.org Feedback from advanced users of MiniZinc and experts in constraint programming will be welcome.

I think I understand what you mean. A trained guitar player would not need such a tool, and a beginner should probably avoid using it :). My original idea was to explore how I could rapidly get playable tablatures of jazz solos from available sheet music that I still cannot read fluently.

> It’s nice that computing the good fingerings takes a while

Actually, a few tweaks and the use of optimization options allowed to dramatically reduce the execution time for my 20-note example.

> Would be good to see some harmony and how the solver would deal with multiple notes at once.

Yes. I think it would take some effort to adapt the current set of constraints but it should be feasible.

> If you’re seriously writing out tabs and need some software, I’ve been using Dorico and it’s pretty damn good

Thanks for the tip. They don't seem to offer a Linux version though.

Re:Show HN: midi @ 3:14, a home-made MIDI keyboard on Friday January 17, 2020 @04:34PM (#22079621)
This article is the first of a series about « midi@3:14 », a home-made MIDI keyboard using a 3x14 Janko layout.
Sozi is a tool that creates animated presentations from SVG documents. Read more at https://sozi.baierouge.fr/

I have created a new repository to share examples that showcase the possibilities of Sozi.

Re:Sozi 19.11 beta is available for testers and translators on Wednesday December 18, 2019 @03:48PM (#21829268)
Sozi is a tool that creates animated presentations from SVG documents. Read more at https://sozi.baierouge.fr/

I need your help to test Sozi 19.11 and update the translations.

Re:Humanoïdes – A Retro Arcade Game on Saturday December 07, 2019 @05:53PM (#21733139)
Humanoïdes is a retro game inspired by Androides, a French arcade game made in the 1980s for the Thomson MO5 personal computer. Androides itself was very similar to Lode Runner.

It currently has only one level, and an editor that you can use to create and share your own levels.