Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DanWaterworth
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
91.
▲
by
DanWaterworth
10y ago
Here you go. It didn't like my stdio.h. Apparently enums and unions aren't supported, but: extern int printf(char *, ...); int main(int argc, char argv[]) { printf("Hello, world!\n"); return 0;
92.
▲
by
DanWaterworth
10y ago
Totally agree, it was a joke.
93.
▲
by
DanWaterworth
10y ago
Time to start sending PRs [1], :P [1] https://github.com/search?utf8=%E2%9C%93&q=language%3Ac
94.
▲
by
DanWaterworth
10y ago
Thanks for providing context.
95.
▲
by
DanWaterworth
10y ago
> PyPy 5.3.0 is twice as slow as Python 3.5.0 for some work I regularly deal with Is this because you are using ctypes or a C extension written against the CPython API? If not, have you filed a bug report?
96.
▲
by
DanWaterworth
10y ago
> Surely it is, if you precisely know all timings and IO and can replay them there's nowhere for non-determinism to creep in. This was my original point, the address space layout information leaks into python land via things like id
97.
▲
by
DanWaterworth
10y ago
You can compile PyPy without its JIT.
98.
▲
by
DanWaterworth
10y ago
Ah, you've caught me out on my sloppy use of English. What I should have said is that the address space layout is a source of non-determinism that would otherwise need to be accounted for in the recording of a program. Further, I hold
99.
▲
by
DanWaterworth
10y ago
Here's a python program that should be deterministic, but isn't without disabling ASLR: print id(object())
100.
▲
Write You a Haskell
(dev.stephendiehl.com)
3 points
by
DanWaterworth
10y ago
|
0 comments
101.
▲
by
DanWaterworth
10y ago
Go's threading primitives are not unmatched. You can do the same in Rust [1], but the gold standard in my eyes is STM in Haskell which allows you to block on arbitrary conditions. [1] https://doc.rust-lang.org/std/
102.
▲
by
DanWaterworth
10y ago
Essentially all but the most used code-paths with be bug riddled. This paper [1] on finding bugs in C compilers by fuzzing is an interesting case-study. [1] http://lambda-the-ultimate.org/node/4241
103.
▲
by
DanWaterworth
10y ago
I think that's true, but I don't like that it's true. What does that say about programming as a profession? Yuck.
104.
▲
by
DanWaterworth
10y ago
That's brilliant. I love that there are people in the world working on "EEG for birds". It might even be my favourite "X for Y" startup idea.
105.
▲
by
DanWaterworth
10y ago
That's basically true.
106.
▲
by
DanWaterworth
10y ago
I consider myself an "advanced coder", whatever that means and so I know that an IRC server is likely to be IO bound. I also know to avoid C, especially multithreaded C. Not because I would be unable to write correct multithreaded
107.
▲
by
DanWaterworth
10y ago
Apparently it didn't have to be C or blazing fast.
108.
▲
by
DanWaterworth
10y ago
I find it hard to believe Sally is so advanced if she writes code that others have difficultly reading. It shouldn't take a year to find someone who writes unmaintainable soup.
109.
▲
by
DanWaterworth
10y ago
EEG?
110.
▲
by
DanWaterworth
10y ago
That's already the case during BST.
111.
▲
by
DanWaterworth
10y ago
I'm surprised that you expected it to. edit: Having looked at Reason more closely, I now see where the confusion came from. Sorry, I didn't mean to deceive you.
112.
▲
by
DanWaterworth
10y ago
This is what I'm doing with plastic [1], though it also has some semantic differences: strict instead of lazy, monads become objects. [1] https://github.com/DanielWaterworth/plastic
113.
▲
by
DanWaterworth
10y ago
There's PyPy. I think the problem with python is the community is especially resistant to breaking changes.
114.
▲
by
DanWaterworth
10y ago
How do you unbox something that could be null? Why not have a separate method on the sequence to define the initial value?
115.
▲
by
DanWaterworth
10y ago
When I was adding for each style loops to my language, plastic [1], I just opted for 'you can iterate over any expression that produces a coroutine'. It shouldn't cause any problems a tracing jit can't fix and it's
116.
▲
by
DanWaterworth
10y ago
> Is CoffeeScript considered a programming language? :O No, technically it's a type of vegetable.
117.
▲
by
DanWaterworth
10y ago
The lens library is more like a dialect of Haskell than a library.
118.
▲
by
DanWaterworth
10y ago
I've also been creating a programming language recently [1]. I'd recommend looking into the pypy tool chain. It makes it pretty easy to hack together a decent interpreter (that JITs). That and rply for the front-end gives you enou
119.
▲
by
DanWaterworth
10y ago
You have my condolences.
120.
▲
by
DanWaterworth
10y ago
Thanks, that's an interesting nuance.
More ›