HNHacker News
TopNewBestAskShowJobs

gngeal

987 karma · joined March 2, 2013

submissionscomments
gngeal··on Wi-Fi SSID Sniffer in 10 Lines of Python
Unless you smelt your own silicon for the transistors and ICs, it's cheating!
gngeal··on JavaScript is Not Web Assembly
"where numbers are boxed doubles on the heap, etc."

Actually, you don't know that. Since doubles are immutable, the runtime can (and does) cheat, including turning many of them into integers. It all boils down to predictable usage patterns.

gngeal··on North Dakota, socialist haven?
"In Belgium, if you have studied engineering at university for 5 years, you get a pay not that much higher than those who immediately start working without university, at least in technical/programming jobs."

And in the US, whatever extra pay you get by virtue of having a degree gets eaten up by the loan debts...

gngeal··on Callbacks are imperative, promises are functional
"Excel is not functional. It is declarative. You declare the relationships between the cells and Excel uses those to propagate changes."

Whereas in functional languages, the functions declare relationships between values and the language uses the evaluation model to propagate the results between function evaluation. Where's the difference?

gngeal··on USPS Discrimination Against Atheism?
I'm just wondering...will France ban pupils from wearing these shoes in schools? ;)
gngeal··on Introduction to Go 1.1
"There's arguments for and against both methods. Back when I first started programming, memory was a luxury (we're talking 80's personal computers here), so it made a great deal of difference. These days, however, choosing an integer type which most closely matches the values stored is largely an academic process which costs developer time"

Actually, memory is even more of a luxury than ever, since your caches have limited size and main memory bandwidth is atrocious, compared to the speed of your execution units. Using 32 bit fields for stuff that safely fits into 16 bits can cost you for that reason alone.

gngeal··on Introduction to Go 1.1
"And as the various comments there show, .Net does it right, and better than any of the methods they list."

.NET has generics? I mean, actual generics, not simple first-order parametric polymorphism with type constructors of the kind (* -> *)? Can you write, say, a generic reader or a generic printer that will work with all types? How would you go about doing that?

gngeal··on Migrated WordGap from Python to Go 1
Sometimes, with smart data structures for specialized cases (persistency, better asymptotic behaviour etc.), it can happen that memory accesses dominate the actual execution. If that happens, and you can't saturate CPU's execution units, the difference between an efficient interpreter and a compiler gets smeared very quickly.
gngeal··on Why Ruby?
"It's a great attitude to have for creating cool new things, I suppose, but it feels like it's moving too fast for me to keep up, is Node.js not cool anymore? What about Backbone? Lua? what the hell is Hadoop? How about a new Lisp?"

As far as the last part is concerned, what about R7RS Small, and later R7RS Large?

gngeal··on Just Use Sublime Text
I've never used any IDE other than Emacs, so I can't comment on that.
gngeal··on Just Use Sublime Text
Honestly, I can't remember finding a recent text editor that couldn't do it, TextAdept being the latest one. Sublime Text definitely has major selling points (in the sense of having advantages compared to other editors) but this is hardly one of them.
gngeal··on Just Use Sublime Text
"at most (not all) things ST beautifully follows the "don't make me think" principle: eg. arbitrary multiple cursors (no other IDE or editor besides Notedpad++ has them yet, no matter how many users requested this for JetBrain IDEs for example"

What do you mean by "arbitrary multiple cursors"? Do you mean the thing that all Scintilla-using applications (which Notepad++ happen to be one of) have?

gngeal··on The PyCon Incident
Well, to be honest, I hope that the fight for feminism hasn't gone so far as to mandate that "there are no psychological and behavioral differences between men and women at all" be taught as The One Truth.
gngeal··on Chrome World Wide Maze
You know, that one also has yet to be seen with a good implementation.
gngeal··on PyCon 2013 Videos
How many people are thinking of an issue for every persion than mentions it?
gngeal··on Introducing "Functional JavaScript"
I edited my post to make it clear that that was a quote. :-) I also think that in case of OOP, it's an incidental outcome. (Efficient code reuse clearly needs more than just to have your program have a message-passing based architecture.)
gngeal··on Introducing "Functional JavaScript"
It's not just recursion, it's calls in general, I guess. (There are other ways of being space-inefficient in functional programs, see the odd versus even streams issue in Scheme.) Are you going to mention tail calls in ES6 in your book, BTW?
gngeal··on Introducing "Functional JavaScript"
Tail calls are not as much about "deep recursion" as they are about continuation-passing style, compositionality, and similar things.

It's like with lazy evaluation. It allows you to write novel kinds of algorithms and data structures, and you can emulate it with helper objects or structures, but it's tedious, muddles the essence of the code, and the implementation without them (the helper structures) would be simpler if the language provided you with lazy expressions.

In other words, repeat with me: loops don't compose. They're not first-class, they're not extensible, they're a syntactic construct.

gngeal··on Introducing "Functional JavaScript"
"Code re-use is the goal. FP and OOP are just means to that end."

I think that both of you are right, to some extent. Code reuse is a goal, because it's better than writing everything anew every time you need some functionality. But it's not a long term goal, because sooner or later, it turns out that the code you have is insufficiently abstract, and you have to replace it with something more generic. I don't think that the level of genericity and abstraction available in mainstream languages is up to the task of making long-time code reuse an appropriate goal. VPRI-style "'runnable math' specifications" seem like the way to go, but how many people program that way?

gngeal··on Voyager 1 has left the solar system
"Seems like we're still not sure it's left due to lack of agreement on what constitutes leaving"

It's like leaving a country by staying in place while the borders are being redrawn on the map. ;)

gngeal··on Inappropriate comments at pycon 2013 called out
"they had nothing to back that up."

You mean that they received an insufficiently broad (or overlapping) range of presentation submissions?

gngeal··on Goodbye, Malcolm
Don't even get me started on this, having been out of scene for a while, I just yesterday found out about Dan Weinreb. ;/
gngeal··on An apology to open source
.cz
gngeal··on An apology to open source
That just shows how ridiculous the laws in UK/US are. Around here, what you're describing would be expressly against the law.
gngeal··on An apology to open source
Perhaps the cleanest and most polite thing people could do with this would be "keep the API, completely rewrite the implementation, throw away the original".
gngeal··on An apology to open source
"That's true if and only if he didn't continue to refine and contribute to the code after entering employment, and specifically, didn't use it at his place of employment."

The same could be applied in reverse: if he wrote a considerable part of the code before entering employment and did use it at his place of employment, what does it say about the employer's right to use it? Or is it "since you're working here now, we can use all you ever wrote exclusively even if you didn't license it to us"?

gngeal··on An apology to open source
Was he also asked by his employer to take down his "final year university project" that this was supposed to be? That sounds a little bit incongruous to me. Or was the "final year university project" also somehow related to his job output preceding in the creation of said final year project?
gngeal··on What Lua scripting means for Wikimedia and open source
Note that GP didn't mention the means in which the yielding was to be invoked.
gngeal··on What Lua scripting means for Wikimedia and open source
Well, two other options for you are using the coco library with stock Lua 5.1.x, or simply using LuaJIT.
gngeal··on What Lua scripting means for Wikimedia and open source
Are you sure about that? I thought that yields across C functions were added in Lua 5.2. Not to mention that in a controlled environment like the runtime that Wikipedia exposes to you, you can take care of avoiding exposing APIs that would allow people to code themselves into a corner like that (if the C calls are leaves, you're OK even in 5.1).
← PreviousPage 14 of 16Next →