HNHacker News
TopNewBestAskShowJobs

gngeal

987 karma · joined March 2, 2013

submissionscomments
gngeal··on Exploiting a Go Binary
Huh, there goes my plan to write a dynamic assembler in Go...
gngeal··on Canadian anti-piracy outfit pirates photos for its website
They host nothing except links.

That was precisely my point. ;) (Basic math logic...)

gngeal··on Canadian anti-piracy outfit pirates photos for its website
They should vet everything they host.
gngeal··on The Reliability of Go
Actually a language compiler is more complicated than a web server when speaking about the data-structures and the algorithms used

That would depend on how much of the web environment you want to reproduce and what language we're talking about. The original Oberon fit into some 5500 lines of code, if I'm not mistaken. That's sort of smaller than Apache httpd. It's even smaller than nginx and lighttpd. And we're still talking about pretty weak languages, have you seen some of the self-hosting metacompiler stuff? (META-II, TREE-META, OMeta etc.) Don't forget that the design of the reference Go implementation is actually pretty close to the Oberon tradition of making things simple.

gngeal··on The Reliability of Go
All of these compilers or JIT interpreters are implemented in C or C++ (which are open languages with ISO standards).

Technically, if I'm not mistaken, Go is (currently!) implemented in Plan 9 C, which is not the same thing as ISO C.

Also, Go is very different from .NET and Java. For starters, it was published in source pretty soon after it had been announced. You have your freedom right there.

gngeal··on The Reliability of Go
Without Go, you'd only ogle Google.
gngeal··on Windows NT Kernel Contributor Explains Why Performance is Behind Other OS
It's not just the form generation. I've given some thought to how one might work with a MVCC/MGA system such as the one you have in PostgreSQL and Firebird to make an interactive system with tabular display that would keep the beneficial properties of these transactional architectures (optimistic concurrency) and still work the way that people expect from "business apps with data grids". Among other things, this implies data edit conflict resolution etc. The problem is that even if the way of going about this is straightforward, I'd never, ever want to write this even twice. Not just because it's extra work, simply because generating the updating transaction in the manner recommended by the designers of these RDBMS systems (a snapshot transaction to populate the UI and a read-committed transaction to post the edits) is error-prone.

Also, why would an extra layer of 'meta' make it harder to debug and decrease flexibility? I would have thought that it would enforce more structure by centralizing certain functionality, thus making it correct-by-design instead of relying that you'll follow conventions in multiple places consistently, and increase flexibility by separating aspects that you'd otherwise have to "weave-in" throughout the code and later change in multiple places.

gngeal··on Windows NT Kernel Contributor Explains Why Performance is Behind Other OS
You know, this is where conciseness comes in handy. Another suspicion that I have (in addition to the one I've voiced elsewhere here) is that complex, inflexible languages almost force people to write stuff "by hand". What exactly is the reason for a simple, small generative layer to be so complex that it can't beat hand-written stuff for two dozen tables? I'd understand if you were talking about Java and Cobol, for example, but I'd think that such languages as Ruby, Smalltalk, and Lisp will have the threshold for "now it's worth it to be generic" quite a bit lower. I'm not sure where exactly, but certainly lower.
gngeal··on Full Stack Developers: Renaissance Men of The 21st Century
You're right, I think; compilers, machine code, operating systems, every single part of the computer down to the silicon (really, understanding the germanium doping that allow the transistors to work) including the electrical engineering, then the physics, and even chemistry that allows it to happen—that's really all part of the "full stack.

I think the problem is that people avoid these things because they think that they are complex. I'd argue that they are not: it's just that the SW ecosystem commonly used in practice is all too bloated which may create this impression. (HW as well, compare x86 with something nice, for example MIPS :-)) Many people would probably be surprised how small and simple can many useful things actually be.

(Also, I have a growing suspicion that the complexity of the current HW/SW ecosystem is partly driven by their independent development, and partly by having to implement legacy stuff - case in point, you need a complex GPR allocator to generate efficient x86 code, and you need complex register-renaming HW in the CPU to actually process x86 code quickly. Simply raising the GPR count and redesigning the ISA would alleviate both sources of complexity. I'm growing increasingly fond of all those 1970's/1980's actual "full-stack" projects.)

Oh, and what computers use germanium doping? I'm not conversant with current technological processes, but the last time I checked, most microelectronic components used mono-crystalline silicon for bulk stuff, SiO2 for insulation, aluminum or copper for wiring, and P, In, As, Ga etc. for channel dopants. Is there some new heterogeneous SiGe technology in use that I'm not aware of?

gngeal··on Windows NT Kernel Contributor Explains Why Performance is Behind Other OS
"Or creating an abstract-database-driven-xml-based UI framework to automate the creation of tabular data when you have under a dozen tables in the application."

I'm not an experienced programmer, and I'd use that approach anyway, simply because it makes sense (is there any alternative that isn't worse?). What does that mean? (Oh, and I'd skip XML. I abhor violence.)

gngeal··on Windows NT Kernel Contributor Explains Why Performance is Behind Other OS
I recently realized, e.g., that the HotSpot JVM is the R.M.S. Titanic, and invokedynamic (or any change in bytecode) is the iceberg. That's probably a reason why we're still waiting for lambdas, in-memory transactions, etc. It's too large to evolve quickly.
gngeal··on Food Practices Banned in Europe But Allowed in the US
There's a lot of water in animal bodies. I guess it's like trying to light a log of very wet wood, if not worse.
gngeal··on Traffic From Syria Disappears From Internet
Well, one could build an atheist web site at http://here.sy :-)
gngeal··on US officials to Delhi court: Can’t summon Facebook, Google
To the cynic in me, all this just seems like Facebok and Google have not yet learnt to play with the the political big wigs.

To the cynic in me, all this just seems like Facebook and Google have learned just fine how to play with the political big wigs...as in how a cat plays with mice.

gngeal··on What are Fortran and Cobol used for today?
One thing that for years made Fortran stand out is that the language explicitly assumes all arrays passed in to a subprogram have no overlaps.

There's a HUGE number of languages that don't allow aliasing in this way. I wasn't thinking about "how to improve C", I had APL, J, K, Q etc. in mind, as well as languages that implement mass array processing with similar semantics in terms of a more conventional syntax.

gngeal··on Go and Rust – objects without class
If you think of a type as a set of possible values, then a subclass is actually a supertype—a superset of the possible values of its parent class—and likewise a superclass is a subtype.

Nope. A subclass is usually (not always!) a subtype, not the other way round. Or, more specifically (and accurately), most statically-typed class-based OO languages treat subclasses in their type systems as subtypes by default, i.e., they assume that a subclass instance can act as an instance of its superclass, LSP-wise. This, I believe, is as accurate statement as one can make (on this level of generality).

The “is-a” relationship is saying “for all instances I of X, I is an instance of Y” which is essentially the definition of superset. That is what the Liskov Substitution Principle is about.

It's a definition of a superset, if Y is the superset and X is the subset.

In C++ and other languages with support for object-oriented programming, a subclass is not necessarily a supertype: virtual functions can throw “I don’t make sense in this derived class”.

That's a part of why I believe that static typing doesn't make too much sense when it comes to OO languages (with (sub)classes). If static typing is supposed to take care of subtype assignability statically and the semantics of the behaviour of derived classes can break the LSP assumptions, static typing becomes sort of worthless.

gngeal··on Last of a Breed: Postal Workers Who Decipher Bad Addresses
I wonder if they sing it for a fee, too...
gngeal··on Last of a Breed: Postal Workers Who Decipher Bad Addresses
That's because programmers still write code with off-by-one errors!
gngeal··on What are Fortran and Cobol used for today?
Why? Any objective reason?
gngeal··on Google changes Palestinian location from 'Territories' to 'Palestine'
"How could Google avoid taking a stance? Either they call it one thing or the other."

Perhaps avoiding taking a stance could take the form of following the current practice of major players (UN and others)...?

gngeal··on Are you a psychopath?
I like metalanguages more than I like languages, and I guess that fits nicely with me having a schizoid personality disconnected from reality, as my mental health specialist says. So yes, there could be a link.
gngeal··on After 25 years in jail, the Internet blew my mind
"science and technology have been stagnant for the past 50 years."

Exactly, especially the continued use of old drugs, lack of modern genetics, continued use of Bakelite and iron instead of aiming to develop newer materials such as composites and carbon fibers and modern alloys is appalling. And we still don't know how old the universe is, if there are planets at all outside the Solar system at all, we still have to wait for the images of outer planets, nobody really knows how to fight cancer, people around the world are starving because the green revolution has never happened, treating complicated medical cases is difficult due to the lack of X-ray tomography and MRI, sailors still navigate using a sextant because a global satellite navigation is completely inconceivable and innocent people rot in jail even though DNA evidence could prove their innocence at least in some cases.

gngeal··on After 25 years in jail, the Internet blew my mind
The latter is unlikely, as the oldest person still alive was born in 1897.
gngeal··on Lessons learned defying Joel Spolsky with Django
I fail to see why one can't manipulate parsed SQL's AST.

I think that this is the "every problem in CS can be solved by another layer of indirection" part. You're basically sidestepping the issue of SQL not providing the functionality in the first place.

gngeal··on If this were a pill, you’d do anything to get it
But those weren't doing house calls and were under guard. :)
gngeal··on Lessons learned defying Joel Spolsky with Django
"The only problem I see, is we can't rewrite SQL."

I believe that the phrase you're looking for is "lack of compositionality".

gngeal··on NASA has three smartphones orbiting the earth as mini-satellites
Anyway, almost all modern rockets don't use fins.

...they don't start working until you're fast enough (quite high above the ramp, which is a sensitive area where you really need it) and they stop working once you leave the atmosphere (which is all too soon for an orbital carrier). Why bother with them?

gngeal··on NASA has three smartphones orbiting the earth as mini-satellites
If you can deal with slight decreases in thrust, you can also do thrust vectoring with injecting water or other suitable liquid into the nozzle in proper places. Could be mechanically simpler than gimbals in some cases.
gngeal··on Massive deposit of lithium found in Wyoming could meet all U.S. demand
What exactly is a "regular luxury car"? It sounds like an interesting designation for any article. If it's regular, is it still a luxury?
gngeal··on In the Lava Mountains
I seriously thought that this was going to be about the unbreathable air and destroyed environment in and around Norilsk...
← PreviousPage 12 of 16Next →