Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dmytrish
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
361.
▲
by
dmytrish
13y ago
I heard that programming in ATS is as hard as hell and when Haskell is hard to learn but joy to use, ATS is just hard to use. Can somebody who actually programs/programmed in ATS elaborate on this?
362.
▲
by
dmytrish
13y ago
AFAIK, you can manually specify all of the optimizations done by LLVM during JIT compilation. I think it's not hard to disable most of them for fast compilation, but yes, it still may be too heavy for an instant use.
363.
▲
by
dmytrish
13y ago
It looks like LLVM was designed for JIT compilation from the start.
364.
▲
by
dmytrish
13y ago
Also, GHC from version 7.6.1 supports a flag to defer type errors until run time[1]: -fdefer-type-errors. This is not support for dynamic types, but still gives even more flexibility in type-error handling. [1] http://ghc.haskell
365.
▲
by
dmytrish
13y ago
When I looked at Nimrod it seemed very raw to me: REPL malfunctions and crashes, the whole language seems to be more an enthusiast effort than a production-quality tool. Rust is very raw too, but it already looks pretty solid.
366.
▲
by
dmytrish
13y ago
It's already been said that Java is a very heavy dependency for a simple desktop application. Rust compiles to native code, that's the advantage over Java.
367.
▲
by
dmytrish
13y ago
Another example of UTF-16 brokenness: it is byte-order dependent, that is, programmer must care about big-endian vs little-endian encoding of 16-bit numbers. This caused another hack: using non-text BOM (Byte-Order Mark) symbols to denote w
368.
▲
by
dmytrish
13y ago
Codex Seraphinianus of programming? I think it's a true piece of postmodern art.
369.
▲
by
dmytrish
13y ago
There is a lot of oldschool guys who are very professional developers in their fields, but who are reluctant to change their OS. I don't think the latter is good or wise, but they are still very knowledgeable in their field. E.g. it&#x
370.
▲
by
dmytrish
13y ago
That's good, but http://xkcd.com/1200/ is very relevant here. Writing a keylogger for X Window is just a few lines of shell script, assuming `xinput` is installed. X Window system just was not designed for running
371.
▲
by
dmytrish
13y ago
I did a bit of OSDev two years ago: https://github.com/EarlGray/COSEC It's still a very incomplete system: it loads, sets up IDT/GDT, uses several simple drivers for keyboard, timers, serial interfaces, probi
372.
▲
by
dmytrish
13y ago
And don't forget that you can still set the remote environment variables, use stderr output of the remote command, pipe it and so on: $ ssh remotehost "arecord | gzip -c" | gunzip -c | aplay records raw pcm stream an
373.
▲
by
dmytrish
13y ago
Generally, yes. An experienced Haskell guru can optimize the heck out of everything (see [1], for example), sometimes even beating C. But still there is a lot of traps, a lot of situations where high-level nature of the language makes writi
374.
▲
by
dmytrish
13y ago
There is[1] a `pure` attribute in GCC extensions to C and C++: int square (int) __attribute__ ((pure)); But I can't say how smart is the compiler in handling those attributes. [1] http://gcc.gnu.org/onlinedocs&
375.
▲
by
dmytrish
13y ago
There's a phrase attributed to Stalin: "Killing a person is a crime, killing millions is statistics". It's sad how relevant (s/killing/spying/g) it still is.
376.
▲
by
dmytrish
13y ago
That's one of important virtues of DDG for me, I think knowing this will help me switch.
377.
▲
by
dmytrish
13y ago
I think Haskell handles the combinations explosion with its polymorphic types and higher-order abstractions. There are many, many types, but there are also abstractions over types. Java/C++ do not get that. `sort :: Ord a => [a] -&g
378.
▲
by
dmytrish
13y ago
<i>Web is almost entirely about I/O</i> — I think it's not quite correct, the web is half about IO and half about parsing, and parsing is where Haskell shines. Haskell does not avoid IO because it's an unfort
379.
▲
by
dmytrish
13y ago
If Samsung ships binaries produced from this code to customers and this code is derivative from GPL code, they _are_ in violation of the GPL.
380.
▲
by
dmytrish
14y ago
This may be interesting for you: https://github.com/kachayev/fn.py - this library allows to use Scala-style underscore arguments in Python code (and much more).