Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
flavio81
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
451.
▲
by
flavio81
9y ago
+1 on Peter Norvig's remark on design patterns.
452.
▲
by
flavio81
9y ago
> I've been waiting for a non-Clojure lisp to make some headway. Immutability Common Lisp welcomes you, as awesome as ever since 1994. > Immutability is mostly a fad Inmutability is good. What i don't like is mandatory inm
453.
▲
by
flavio81
9y ago
> What makes this particularly suspicious is the fact that, in the past, Lisp programmers have claimed to recover the advantages of other statically typed languages in a Lisp setting, but there have always been huge caveats, like “the sy
454.
▲
by
flavio81
9y ago
> Most lisp docs will tell you to use macros only when necessary One also declares variables when necessary, and one also creates arrays when necessary, etc. But imagine a programming language that doesn't support arrays. It would
455.
▲
by
flavio81
9y ago
> Yes, DSLs are typically easier to read, but only after you come to understand the primitives of the language. Quoting user quotemstr here: "Every program is a DSL. What do you think you're doing when you define types and fu
456.
▲
by
flavio81
9y ago
> as a project grows and grows you end up inventing your own little dialect of the language which is opaque to any 3rd party reading your code unless they take the time to unravel your macros. This is bad use of macros, or an ugly macro
457.
▲
by
flavio81
9y ago
Really easy. I even did it as a kid (12 years old.)
458.
▲
by
flavio81
9y ago
> One important subtlety is that after the DAC (which is just sample-and-hold) there's a Sallen-Key low-pass filter tuned at about 16kHZ, You mean IC54 and IC56? I noticed them on the circuit but didn't know it was tuned SO LO
459.
▲
by
flavio81
9y ago
I would love to have a FPGA that i could drop inside my DX7 and replaced the OPS operator IC for a more advanced (more nuanced sound, purer sine waves) version !
460.
▲
by
flavio81
9y ago
Just in case somebody wants to know what is a DX7... The DX7 was the first affordable fully digital synthesizer on the market. It appeared in 1983 in a world of mostly-analog synthesizers that had polyphony limited to 8 voices (at hugely
461.
▲
by
flavio81
9y ago
> And rightly so: the DX7 presets were abominably tacky. Agree, but once you learn to program it, you can really get very good sounds. I'm a satisfied programmer!
462.
▲
by
flavio81
9y ago
> Also DX7 had sampling rate of 49096 Hz, 12-bit "floating-point" DACs etc etc. Note that the output wasn't 12-bit. There was a 12-bit DAC chip, but additionally to those 12 bits there are additional bits that are fed to
463.
▲
by
flavio81
9y ago
> There's a high performance C++ (with neon simd acceleration) implementation at [0] DX7 fans (like me) already know your implementation, it is famously used by the Dexed software. Thanks raphlinus, for making the world a better pl
464.
▲
by
flavio81
9y ago
> The main purpose is this impl is it to run prolog-in-lisp 1000x faster than the fastest lisps (like SBCL) This is very interesting. I thought that the prolog implementations done in Common Lisp were fast! So now you can have not only
465.
▲
by
flavio81
9y ago
Congratulations to you and your team for inventing what i'd call Neural Network Trolling (NNT), and thus giving us humans a way to escape the tyranny of automated decision systems. The consequences for the future can be enormous, serio
466.
▲
by
flavio81
9y ago
TL;DR: 1. Lumo runs ClojureScript without the need for a JVM. It relies on Node.js and Google V8. 2. ClojureScript compiler is self-hosted, thus: 3. Now you can compile ClojureScript without the need for a JVM. As a bonus, enjoy shorter sta
467.
▲
by
flavio81
9y ago
No, i'm not wanting to raise a language war; i just want to point out which direction Clojure should follow to keep improving.
468.
▲
by
flavio81
9y ago
I agree with you (and i'm surprised at people downvoting my post). Thus, i repeat: Clojure is an excellent (and for me, preferred) alternative to Java on the JVM. However i would have liked to see it progressing into a language where y
469.
▲
by
flavio81
9y ago
> Providing a way of writing portable Clojure code is the motivation for reader conditionals.* Yes, this is a great idea. Reader conditionals are available in Common Lisp as well, however in CL, unlike Clojure, there is a big (some woul
470.
▲
by
flavio81
9y ago
> I do think that once you come to terms with the problems of ADTs, you are on your way to not needing all the static type verification, but leave that to later. Excellent thought. Also, as a side note, people that criticize Clojure for
471.
▲
by
flavio81
9y ago
I never said Clojure wasn't productive, i'm pointing out that it is too tied to the underlying platform. ClojureScript is an excellent replacement for Javascript, however code is not 100% compatible between Clojure and ClojureScri
472.
▲
by
flavio81
9y ago
> I mean, why was I unhappy as a programmer after 18 years and said, "if I can't switch to something like Common Lisp, I'm going to switch careers". Why am I saying that? I'm saying it because I'm frustrated
473.
▲
by
flavio81
9y ago
Very good slide here: https://github.com/matthiasn/talk-transcripts/raw/master/Hic... Caption: "The problems of programming" And you can call them problems, and I'm going to call them the
474.
▲
by
flavio81
9y ago
Scheme is good, easy to learn and flexible; don't get me wrong: i just wanted to remark that it isn't very portable. It isn't difficult to jump from Scheme to Lisp and viceversa; they are similar in many aspects. If you want
475.
▲
by
flavio81
9y ago
This is the best HN post i've read today. You should expand it into a blog post. I also agree - context and state are important and useful, because many real-life problems or processes rely on such a model and thus translate naturally
476.
▲
by
flavio81
9y ago
Yes, they exist and have been used for decades; two well known examples are Common Lisp and Scheme. For example you can do functional, imperative and OO programming in Common Lisp, and it brings extensive features for working in all these t
477.
▲
by
flavio81
9y ago
> You can transpile ClojureScript, Elm, Reason, PureScript and many other languages to it. Yet -- surprise! It is still in use. Do you honestly think this is just inertia? No, it isn't inertia -- one important reason is that creati
478.
▲
by
flavio81
9y ago
> Overall, the reason Javascript still exists and is viewed as a serious language is all because it has a monopoly on the browsers. Basically, this. ClojureScript and others are simply the efforts of sane, experienced developers that do
479.
▲
by
flavio81
9y ago
>* If that's the future, we are screwed as an industry.* Agree 100%. However, i find Javascript pretty good for quick and dirty "MVPs".
480.
▲
by
flavio81
9y ago
> found Lisp and scheme (I'm lumping them together for their similarities) (...) there are many, many different implementations You are lumping them together, as you mention, but they are very different precisely on this regard: Sc
More ›