Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
omaranto
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
421.
▲
by
omaranto
9y ago
This article was "reprinted" from the original at Quanta Magazine. The original article has the correct answer of q(q-1)^3. (It was probably corrected after Wired "reprinted" it.) https://www.quantamagazine.or
422.
▲
by
omaranto
9y ago
I thought that they were amazing because they were just like Perl's. Are there any differences?
423.
▲
by
omaranto
9y ago
I like Dan Grossman's HN Replies ( http://www.hnreplies.com ) for that: it gives you email notifications of comment replies.
424.
▲
by
omaranto
9y ago
Don't worry, it's not required.
425.
▲
by
omaranto
9y ago
I did mean rhyming with "meh", not a long "a" at all! In IPA, I'd say it's ɛ, like the vowel in the English word "bed". So it really sounds like "a" to you? Huh.
426.
▲
by
omaranto
9y ago
Does "français" really sound like "frahn-say" to monolingual English speakers? It has always sounded more like "frahn-seh" to me, but that may be because I also speak Spanish. There's a recording of the w
427.
▲
by
omaranto
9y ago
Oh, that looks nice. I'm guessing this in TXR Lisp ( http://www.nongnu.org/txr/ ), and that TXR is your project.
428.
▲
by
omaranto
9y ago
Could you give some examples of one-liners you feel might be more elegant in Awk than in Perl? It might be fun to get a thread going where people try to give clean Perl versions.
429.
▲
by
omaranto
9y ago
On the other hand, sin(x-y)sin(x+y) = sin(x)^2 - sin(y)^2.
430.
▲
by
omaranto
9y ago
I did try with speed 3. Do you mean that: (declaim (ftype (function (fixnum fixnum) fixnum) foo) (optimize (safety 0) (speed 3)) (defun foo (m n) (* (1+ m) n)) should have produced the optimized code (without any g
431.
▲
by
omaranto
9y ago
In the case of BlueJ this is not surprising: it's made by the same people and in fact this frame-based editor has been incorporated into BlueJ (this is mentioned briefly in the paper).
432.
▲
by
omaranto
9y ago
Could you show a way to get that code to be generated without any declarations in the body of the function? I tried something like: (declaim (ftype (function (fixnum fixnum) fixnum) foo) (optimize (safety 0))) (defun foo (m n) (*
433.
▲
by
omaranto
9y ago
Maybe it's worth pointing out that to get that code like that from SBCL it's not enough to declare that m and n are fixnums, you also need to promise the compiler that the multiplication won't overflow: (defun foo (n m)
434.
▲
by
omaranto
9y ago
Plenty of implementations of dialects of Lisp have compilers that produce machine code. I would even say that for Common Lisp implementations it is more common to have a compiler than to not have one. There are several great Scheme compiler
435.
▲
by
omaranto
9y ago
I'm not so sure, and however wrote the Wikipedia page seems to agree with me. The first sentence is "In computer programming, a parser combinator is a higher-order function that accepts several parsers as input and returns a new p
436.
▲
by
omaranto
9y ago
Is that really how the term is used? I would have naively thought that among your examples only 'then' and 'thenDependent' are parser combinators , and that 'string("foobar")', 'char', 
437.
▲
by
omaranto
9y ago
Just because it's standard procedure in America doesn't mean it can't also be against "American values".
438.
▲
by
omaranto
9y ago
One thing that annoyed me when I looked at Go years ago was that it seemed like strings where basically the only data type of unlimited size that was supported as map keys. I think that only types for which equality is defined in the langua
439.
▲
by
omaranto
9y ago
I like how people's perception of Project Euler depends on their background: programmers tend to say it's math heavy, mathematicians tend to say it's mostly about programming.
440.
▲
by
omaranto
9y ago
Who or what is Hastings?
441.
▲
by
omaranto
9y ago
Compiled languages can have REPLs too. Common Lisp and Haskell come to mind.
442.
▲
by
omaranto
9y ago
I take it this website did display text for other people. I wonder what it said... I only got a series of alternating dark and light grey rectangles to scroll through, without any text. Thinking maybe there was a problem with the CSS and th
443.
▲
by
omaranto
9y ago
"I could care less" is an idiom, it means the same thing as "I couldn't care less". (This may seem somewhat odd, but it's perfectly natural once you know it started out as sarcastic.)
444.
▲
by
omaranto
9y ago
Why do you feel the current Julia module system does not support modular application building?
445.
▲
A program that accepts exactly any desired finite set, in the right universe
(jdh.hamkins.org)
87 points
by
omaranto
9y ago
|
18 comments
446.
▲
by
omaranto
9y ago
I'm Mexican and everything you said about Spanish Spanish seems to me to also hold for Mexican Spanish. I wouldn't be surprised if someone Swedes showed up now saying the article is also wrong about Swedish. :)
447.
▲
by
omaranto
9y ago
It's used outside of programming in, say, mathematics. :)
448.
▲
by
omaranto
9y ago
On an old netbook (remember those?) Vim would lag just entering text in insert mode when I was editing LaTeX files (and only LaTeX files as far as I could tell). Slowness of LaTeX syntax highlighting is a known problem (the help files have
449.
▲
by
omaranto
9y ago
The documentation could use a section explaining what Howl has to offer over other text editors than are extensible using Lua, such as Textadept ( https://foicica.com/textadept/ ).
450.
▲
by
omaranto
9y ago
Similar tools that use Python as the query language: - The Pyed Piper: https://code.google.com/archive/p/pyp/ - Puffin: https://github.com/kespindler/puffin
More ›