Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jpcooper
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
181.
▲
by
jpcooper
6y ago
Why is it undefined behaviour?
182.
▲
by
jpcooper
6y ago
I have failed to fully grasp this article. Is this definition of objects as defined by the set of functions which work on them any different from type classes in Haskell?
183.
▲
by
jpcooper
6y ago
A more general pillar of functional languages is referential transparency, which does not rule out mutability. It simply means that a function’s output is determined by its input alone. Have a look at Clean, uniqueness types and linear type
184.
▲
by
jpcooper
6y ago
Someone a few days ago shared a stack-based VM he’s building in C++. Quite interesting. He also has a C version on his GitHub. https://news.ycombinator.com/item?id=25243084
185.
▲
by
jpcooper
6y ago
Would you use this for compiling database queries on the fly? I worked on a query engine once, written in Scala and Java, where we’d generate Java from a query and then compile and load the bytecode into a single flat function. I wonder how
186.
▲
by
jpcooper
6y ago
Thanks. Will have a read.
187.
▲
by
jpcooper
6y ago
Looks really interesting. What do you plan to use this for?
188.
▲
by
jpcooper
6y ago
What was so good about Enterprise Objects Framework? I don’t know much about Rails either, by the way.
189.
▲
by
jpcooper
6y ago
Seemed to be fine at Walmart.
190.
▲
by
jpcooper
6y ago
https://youtu.be/DJklHwoYgBQ
191.
▲
by
jpcooper
6y ago
Hash maps are not functors similarly to how sets are not functors. That is because they do not preserve function composition.
192.
▲
by
jpcooper
6y ago
It’s when the camera closely follows the back of the protagonist.
193.
▲
by
jpcooper
6y ago
Interesting, but it was native Flash and second-person perspective.
194.
▲
by
jpcooper
6y ago
That wasn’t the one I was thinking of, sadly. The graphics were even worse.
195.
▲
by
jpcooper
6y ago
Does anyone remember the skiing game with terrible graphics whose only control was the space bar? Where is it these days?
196.
▲
by
jpcooper
6y ago
You are wrong. In the U.K., which drives on the left and is in Europe, it is not expressly forbidden to undertake (pass on the left) anywhere, including motorways. This is independent from the legal requirement to remain in the left-most la
197.
▲
by
jpcooper
6y ago
https://www.flightgear.org/
198.
▲
by
jpcooper
6y ago
Does anyone know why xsv and Pandas are so good compared to GNU sort?
199.
▲
C++ Expression Templates
(en.wikipedia.org)
2 points
by
jpcooper
6y ago
|
0 comments
200.
▲
by
jpcooper
6y ago
Profile mentions .se. Swedish keyboard layout, meant to press apostrophe, still had shift held from writing R, then by accident pressed key to right of apostrophe to obtain colon? On further thought this works similarly for US layout.
201.
▲
by
jpcooper
6y ago
That may be the case for Rust. I am not sure what the implications of unsafe are for the type system. In any case, the unsafeness of unsafePerformIO and importing an FFI function as a pure function are not reflected in the type in Haskell.
202.
▲
by
jpcooper
6y ago
That clarifies things. Thanks for the in-depth explanation.
203.
▲
by
jpcooper
6y ago
There’s no guarantee that you’re not calling unsafePerformIO in Haskell, which a lot of outwardly pure libraries do. In fact, wouldn’t STM be doing this under the hood? Even the FFI in Haskell allows you to import a function without the ret
204.
▲
by
jpcooper
6y ago
Actually what exactly is the member of staff doing on the DLR that is necessary, other than answering tourists' questions and putting a triangular key into a receptacle at every stop and then turning it? I have not been able to figure
205.
▲
by
jpcooper
6y ago
Orson Welles did a brilliant film adaptation of The Trial. Worth checking out.
206.
▲
by
jpcooper
6y ago
There are two possibilities in C++. I am not sure what the situation is in Java. It is possible to define a pointer to an object whose contents may not be changed. This is done with ‘const * type object’. If you want a pointer whose value m
207.
▲
by
jpcooper
6y ago
Could you explain why? I don’t really know JS.
208.
▲
by
jpcooper
6y ago
Thanks for the explanation.
209.
▲
by
jpcooper
6y ago
So a key is stored in the unused portion of memory pointers which should match the key associated to the memory it points to. I couldn’t figure out from the article where the key is stored in the corresponding memory. Can anyone explain?
210.
▲
Show HN: Computing Exact Odds for Betfair.com's Exchange Hi Lo in Ptime/Pspace
(github.com)
6 points
by
jpcooper
6y ago
|
0 comments
More ›