Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
phaedrus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
63 ms
·
511.
▲
by
phaedrus
14y ago
As a programmer I find constructivism is my default position if I think of math intuitively; perhaps that's why I butted heads so much with many of my math teachers. But, your argument actually makes me less sure of my agreement with it: i
512.
▲
by
phaedrus
14y ago
Again, you're not getting the point. Constant time != "fast", it just has to do with how the operation scales with N. The point, though counter intuitive, is that the constant time of the list operation is larger than the linear time of
513.
▲
by
phaedrus
14y ago
This reminds me of P and N silicon; the negative frequency light is like hole current. (N silicon has "extra" electrons. P silicon has "missing" electrons that leave "holes", and you can have current where it's the holes that are moving.)
514.
▲
by
phaedrus
14y ago
I spent about ten years working on Markov based chat programs. I gave up on themwhen I realized that no matter how sophisticated your statistical model it will never be more than a statistical analysis of text, unless it includes some rich
515.
▲
by
phaedrus
14y ago
Re: to it never goes well... I'm one of your aforementioned "College kids [with a] part-time project" to do an MMO, now graduated and working a day-job while trying to finish a game any game. Let me give you some insight into why we deci
516.
▲
by
phaedrus
14y ago
I was under the impression the accepted reason for Mars losing water was it being carried off by solar wind due to Mars' lack of a strong magnetic field, that lack in turn being caused by its smaller size making its outer core not remaining
517.
▲
by
phaedrus
15y ago
This is great. But it would be nicer if the algorithm to randomly place the new messages would attempt to not obscure the most recent ones; sometimes I was trying to read a really interesting message and it got covered up before I finished
518.
▲
by
phaedrus
15y ago
I've been looking for an alternative to Ubuntu because I'm unhappy with how paternalistic Canonical has been leaning in the latest Ubuntu releases. This may be a great time to switch to Kubuntu.
519.
▲
by
phaedrus
15y ago
I ran into this same problem recently: while looking for a legitimate and very specific car book on Amazon, all of the top hits were strange 3rd party offers to sell the book at ridiculous markup, over $200 for a $30 book. At the time I t
520.
▲
by
phaedrus
15y ago
Io has a similar distinction. In the Io language, := is syntax sugar for newSlot and = only means updateSlot. So if you accidently = a slot that doesn't exist, it doesn't new-up a magic global, it raises an error.
521.
▲
by
phaedrus
15y ago
Me too. I added a 3rd snake that was black and controlled by the computer. Also made it so the levels wrapped so if you went off one edge you appeared on the other side. The unintended consequence was you could get into the scoreboard and
522.
▲
by
phaedrus
15y ago
He's not advocating "auto everywhere", he just said it will make the STL algorithms easier to use (which it will). The other benefit of auto is for generic code (code in templates) where you might not necessarily know what the return typ
523.
▲
by
phaedrus
15y ago
Well it's Io but you're still correct, I could fix that by letting enums "decay" into Numbers. In fact, I originally had that happen accidentally and I actually considered it a bug. The reason I considered that a bug was that I made a d
524.
▲
by
phaedrus
15y ago
C++ function to compare two enums: bool operator ==(SomeEnum left, SomeEnum right) { return left == right; } In my bindings (in C++): LM_BIND_NONMEMBER_OP(SomeEnum, (==)) In Io script: if( obj property == SomeEnumInstance, doStuff()) The ==
525.
▲
by
phaedrus
15y ago
First, because I knew Io and not Lua. I had gotten interested in Io years before. Io was actually my first dynamic language, not Python or Ruby or Javascript. I stopped using Io for a few years when I moved on to other things, but _why's
526.
▲
by
phaedrus
15y ago
I'm currently working on a game engine that is a mix of C++ and Io. Here are some things I learned: - By far the most time spent in cross-language calls is in functions that take two integers and return a boolean. What's up with that? En
527.
▲
by
phaedrus
15y ago
The striking thing about this is not just that it works but that it works so well . That I did not expect.
528.
▲
by
phaedrus
15y ago
I'm using Io in a serious project, it is the scripting language I chose to use for my games. Io's expressiveness and reflection has allowed me to make lots of mini-DSLs to simplify game scripting tasks. I'm very happy with the performance
529.
▲
by
phaedrus
15y ago
This simple formula produces an interesting sound in your a1k0n.net player: (t % 1000) & t Multiplying the whole thing by t adds to it. Edit: t >> (t % 8) also produces an interesting sound; changing the number 8 changes the pi
530.
▲
by
phaedrus
15y ago
I wanted to say i % 6 but that fails for i=0.
531.
▲
by
phaedrus
15y ago
I think this is a common occurrence with government IT spending too. I worked as an electronics engineer for a short time as a contractor. They paid huge sums for some software archiving / source control / versioning program that can't actu
532.
▲
by
phaedrus
15y ago
I recently used category theory to clarify my thinking on a difficult type-conversions problem I had in some C++ code that needed to generically handle many different combinations of const/non-const and value/reference/pointer to another.
533.
▲
by
phaedrus
15y ago
I was about to say the same thing. Since Io represents the program as an expression tree of messages, you can write macros to operate on the message tree, and they work for Io's syntax as easily as Lisp macros work for Lisp syntax.
534.
▲
by
phaedrus
15y ago
I wrote a library that makes C++ callable from script languages, but instead of parsing headers it uses C++11 template metaprogramming and type inference, so it always parses exactly what the types are because it runs in the same compiler a
535.
▲
The Fine Art of Dwarf Fortress (about the ascii portraits in the NYT article)
(6thfloor.blogs.nytimes.com)
2 points
by
phaedrus
15y ago
|
0 comments
536.
▲
by
phaedrus
15y ago
Careful I admitted I was bored doing purchase orders of parts (supposed to be an engineering position) in a previous job and the manager went nuts, got in multiple shouting matches with me ("this project is the most interesting work that's
537.
▲
by
phaedrus
15y ago
rm is like a knife where the handle has a sharp edge too...
538.
▲
by
phaedrus
15y ago
I hadn't been aware of ChaiScript until now, but its C++ binding techniques are similar to what I developed for my LikeMagic project, a (mostly-)language-independent C++ script language binding project, with Io as its first backend language
539.
▲
by
phaedrus
15y ago
Close but I think you have your orders understated. A normal programmer faces O(n^2), while a great programmer achieves O(n log n). Really bad programmers do O(k ^n) amount of work to achieve the same, with k>2.
540.
▲
by
phaedrus
15y ago
When my wife and I moved out of our apartment a few years ago, after most of the stuff was moved out including the computers, we happened to need to look up a phone number. It literally did not occur to us that there was even a way to lo
More ›