Better HN
topnewbestaskshowjobs
Log inSign up

binaryfinery

393 karma · joined Jul 1, 2010 (16y ago) · 186 submissions

Submissions

comment 15y ago · link · parent

FTFA: "Want more? Check out the HTML History API Demo and MDC's Manipulating the browser history documentation. Facebook has blogged about their use of this stuff, and Flickr has been doing it for months on their lightbox view."

So, its not even news. Unless, I suppose, the reader learned javascript in 2001 and feels they don't need to keep up on new things. That's the HN crowd is it?

Fuck, I've been learning javascript for a week and I know how to do this.

comment 15y ago · link · parent

A sliding UI is worth #2 HN spot? Wow.

comment 15y ago · link · parent

As can many other languages. However, when I use .NET, I find myself wishing for maven and all the libraries immediately available. Without the VM, there would be no point in having the source. However, even with a great VM, other languages fall short of Java, IMHO. YMMV.

There are also areas where the Java VM totally sucks, frankly. How is it that we only have decent IO after more than 10 years? Sun and now Oracle hold the Java community hostage with the VM and runtime. Time to move on.

comment 15y ago · link · parent

The power of Java is not the VM, or even the system runtime, but the open source libraries available for it. It is time to create a "new language" whose compiler will accept Java, and whose VM implementation is unencumbered by legitimate patents. Hm. If Dalvik isn't it, then something similar will be created. I, for one, would like to help. Anyone else up for it?

comment 15y ago · link · parent

FTFA: "Let an ultraintelligent machine be defined as a machine that can far surpass all the intellectual activities of any any man however clever"

comment 15y ago · link · parent

The Singularity.

http://mindstalk.net/vinge/vinge-sing.html

I think Vinge explains it better than Kurzweil.

comment 15y ago · link · parent

Been there too mate, though I dealt with it in different ways at different times. In the first few cases I felt obligated to stay - I'd given my word, right? But the bullshit just meant that I just ended up contributing to the toxic environment by being an asshole out of resentment. I began to wonder if it was just me. Others certainly insisted it was. About six years ago I got a therapist and a psychiatrist. Best thing I've ever done. It was clear after talking to a professional that the situation was toxic. I got myself onto a smaller team within that company with some awesome people and really enjoyed myself. Unfortunately the toxicity remained, our lead quit, and we instructed to do what our lead would not. I'm quite proud that our team said "no", and said that the plan we already had was the right one. We were all let go. Ok, that was the best thing I've ever done.

My advice, then, if you are up for it, is to imagine what would light you up at this company. What would get you excited about it again? Figure that out, and do it. If you really are that good, then have faith in yourself. Give yourself a shot. Give your partners a shot. And if it doesnt work, quit. Unless this company is curing cancer its just not that important.

PS What amazes me about toxic environments is not the number of toxic assholes (actually quite small), but that most everyone else chooses to be enablers for these people.

PPS I did go on meds, but as another poster says here, it can take a while to find the right one - one can make you wired, another lethargic. The best thing to do is exercise and eat right; but the meds can help you get started (IMHO).

comment 15y ago · link · parent

http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/ind...

IBM has it wrong too then. In each of the examples provided, they dont "make the variable in the calling frame actually point to an entirely new object"

What actually happens is that the object (or value) that is pointed to by the reference is changed. Specifically, if you took the addresses of a and b before the call, and then after the call, you would see that the addresses have not changed. It is the contents that have changed. This is what happens it C++ in all cases. The only difference between C++ and Java is that Java is always pass by reference for objects and always pass by value for primitives.

Pass-by-reference does not mean "I can change the variable in the caller to now point to a new object". It means, if I modify the properties of the parameter, it is modifying the same object that the variable references. In contrast, if you do this in C++:

class Foo; void bar( Foo x ) { x.value++; } void main() { Foo y(0); bar(y); }

You will discover that y's value remains 0. That is pass by value.

class Foo; void bar( Foo &x ) { x.value++; } void main() { Foo y(0); bar(y); }

This is pass by reference. y.value is now 1. So now if this is Java:

class Foo; void bar( Foo x ) { x.value++; } void main() { Foo y(0); bar(y); }

Then y.value is now 1 - just like the pass-by-reference case in C++. So either IBM has it wrong, or you have it wrong.

comment 15y ago · link · parent

Proof is in the pudding. Here are your showcase NOLOH sites:

http://www.noloh.com

http://www.ecrimetools.com/

http://www.theprotectornetwork.com/

http://evolve108.com/#/section=home

For comparison, here are some websites put together by companies that ycombinator has funded, and which, I believe, are html/javascript without the middleman.

http://heroku.com/

https://posterous.com/

http://dailybooth.com/

http://www.justin.tv/

http://www.songkick.com/

http://www.scribd.com/

comment 15y ago · link · parent

Perhaps I misunderstand the whole thing then. Tell me is this C++ code "pass by reference" or not?

class Foo;

void Bar( Foo& somefoo) { ... }

comment 15y ago · link · parent

In which case there is no such thing as passing by reference. Ever. In C++ when you "pass by reference", what actually happens is that the address of the thing is taken, and a pointer is generated, and then that pointer is passed by value. Do you see? Any argument you put forth to the contrary will involve language specific features and conventions of C++. Your will have to claim that because the C++ compiler does this for you, that makes it special. In Java there are primitives and objects. Primitives are only passed by value. Objects are passed by reference. If you pass an object as a parameter, and then modify a property of the parameter, then it is the original object that is modified. This, in fact, is the same as when you pass an Object in C++ by reference. In contrast, in C++ you can also pass an object by value: the entire object is copied onto the stack.

class Foo; void modify( Foo& x) { x.setBar(1);} ; <- pass by reference in C++.

class Foo; void modify( Foo x) { x.setBar(1);} ; <- pass by reference in Java.

Java spares you the & because Java only passes by reference.

Again, to argue the contrary, simply because it passes an object pointer by value, automatically, is to argue that C++ never passes by reference because it too takes the address automatically.

The fact is that Java passes by reference exactly as C++ does. However, even if this were not the case, it would also be completely acceptable for Java to refer to what it does as pass by reference simply because it chooses too. These things are object references. If I pass a java object reference, is it acceptable to say I'm passing by reference? If Java people want to say it is, then it is. Will the world end, for example, because the word "heap" means two different things in computer science? http://en.wikipedia.org/wiki/Heap OMG! Who is right?

My point is basically summed up here: http://xkcd.com/435/

You are where the physicist is standing. You insist that Java biologists are using your terms wrong while oblivious to the mathematician. You have your abstractions. Java has theirs.

Of course, maybe you're the chemist, and I'm the physicist (I still write assembly) and the hardware guys are the mathematicians. Whatever.

As for the insulting tone, yes its a character flaw. When someone makes a statement like "I'm really tired of hearing folks (incorrectly) state [whatever]", its insulting. Its especially insulting when its wrong. In an ideal world I'd be able to respond without resorting to responding in kind, but I'm flawed. Sorry. You're still wrong.

comment 15y ago · link · parent

Assembly and C are low level languages. Javascript is high level language. The claim appears to be based on the fact that it is the lowest level available in the browser as if this somehow makes it comparable to assembly language, the lowest language available on computers. It is a straw man argument. Saying that they server "equivalent" purposes is bollocks. Using your flawed logic, one could say that because javascript is also the highest level language supported natively by all browsers that it therefor serves the same purpose as HAL in 2001.

The fact that various companies have sprung up that can take a language and generate javascript from it doesn't make javascript comparable to assembly.

Normally one takes a high level language and compiles it to a lower level language. However, it is not the case that simply compiling one language into another automatically dictates that one is higher than the other. In this case, it is done because javascript is the only language available, and some people don't want to learn it. I suspect that most people are put off learning javascript because the first time they tried it it was a PITA. Especially, it didnt do the same thing in IE as it did in Chrome. So people wrote frameworks like GWT and NOLOH so they could use languages that were familiar to them. I understand why: its easier to solve one unknown at a time. Presented with two problems: a) I don't know javascript and b) browsers are shitty, people decided to tackle problem (b) and ignore problem (a) by writing libraries in their familiar language. Ironically they probably now know more about javascript than anyone else.

I'm opting to deal with problem (a) and solve problem (b) by using jQuery. YMMV.

As for the advantages of something like NOLOH, yes, sure there are many advantages to using what is essentially big enough to be called middleware. However I suggest that the advantages initially presented by its ease of use will be quickly outweighed by all the things it can't do, or that it demands you do "its way". Perhaps NOLOH is the worlds first middleware that doesnt have this problem, or perhaps its the 2010 version of MFC. The problem is, by the time you find out its the latter, its too late. The risk of that discovery is greater than the learning curve of javascript and modern frameworks. Unlike assembly language.

comment 15y ago · link · parent

Wouldnt it be faster to have the log_id in a variable so you don't have to do a select and an update? In fact wouldnt it be faster to just store 48 hours and delete the oldest 24? Is it going to kill you to have 47:59 hours of logs?

comment 15y ago · link · parent

Same here on regular consoles. We did use lua and once UnrealScript and the reduction in iteration time to seconds was worth any loss of speed in the short term (i.e. discover the game, then downcode what you need to later).

However, times have changed. The kind of games i'm interested in are ubiquitous in nature. I want to interact with it on the console, the iPhone, the PC, and on the web. I want to write tools that are cross platform. The browser is the ultimate cross platform.

comment 15y ago · link · parent

I think its becoming increasingly less necessary to learn something else. I think javascript is, after a decade or so, finally coming into its own. I agree that one should use a library that lets someone else deal with the inevitable bullshit of browser compatibility. The question is then, "what language should I use"? I used GWT for example, since I know Java, and I assume there are people who will find noloh easy to pick up because they already know the language. However, javascript is a high level language, so references to assembly and C are straw men. Noloh and GWT add yet another layer of abstraction on top of an already complex system. They offer little advantage beyond familiarity, and prevent comprehension of the system as it really is.

comment 15y ago · link · parent

Totally agree. Started with assembly language, then C, C++, C#, Java. I'd been dreading doing anything in the browser, and was playing with GWT and other esoteric things. But I'm finally getting my head around javascript and its just a heck of a lot of reward for very little effort. Its fun!

comment 15y ago · link · parent

Right, because sarcasm is soooo unnecessary.

comment 15y ago · link · parent

No the real problem is that you fail to understand that Java gets to call these things what ever it likes because language has context. And your example fails to compare apples to apples. In Java Integer is an object, but int is not. You are confusing Java things with C++ things. As you can see, Java is not C++, and so your C++ terms and definitions do not apply here. Thank you for playing. Move along.

comment 15y ago · link · parent

"Without restriction". Not that that matters. If a license doesnt have a term, then its irrevocable. Oracle can always change the license for future releases.

You must bear in mind that this is open source. Oracle does not own this. It doesn't appear to be aware of this.

comment 15y ago · link · parent

Passing an object by reference is the same thing as passing an object reference by value. It is just semantics. Its not even splitting hairs. Its demanding that his specific definitions are somehow more correct than any other.

comment 15y ago · link · parent

On the contrary: the software is called "hudson", and the license explicitly grants the right to deal in the software without restriction. Those rights include the rights to distribute and publish, but "including" doesnt mean "only". In any case, how would one publish this software without using the name "hudson"? Does this license imply that prior to publishing the software we have to replace every instane of the letters h u d s o n with something else? That would not be "without restriction".

There are several licenses written that say "you may not use our name to promote your version of the software" or something like that. MIT is not one of them.

Oracle is welcome to fork it and give it a tougher license. Dont expect it will see many commits after that tho.

comment 15y ago · link · parent

Because it needs to be said. PHBs look at the iPhone and its success, and see that it uses ObjectiveC, and jump on the bandwagon. Someone who has actually used ObjectiveC and other languages needs to point out that Emperor Steve's new clothes were just stolen from a pantomime wardrobe in 1986.

comment 15y ago · link · parent

Which would be a valid point if Objective-C had evolved since 1986. The C family has evolved since then, C++, Java, C# v1 - C# v4. Objective-C gained properties in v2 and a host of ways to break encapsulation but its hardly evolved. The tools are even worse. XCode Fanbois rejoice at "new features" that I've had in SlickEdit since 1993.

You've hit the nail on the head with regard to my complaint.

comment 15y ago · link · parent

>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,

>package hudson;

You might own the trademark Oracle, but you just licensed the use of it to everyone.

comment 16y ago · link · parent

I love "next gen platforms" based on technology from 1986. At least it doesn't use punch cards, I guess.

comment 16y ago · link · parent

Linky?

comment 16y ago · link · parent

Well, I don't know much, but I do know that memcache has a limit of 1MB per value. So that fact that he attributes this to be a problem with AppEngine tells me two things: 1. He doesnt read technical specs (forget the manual, just the basics of "what this library does"). 2. His complaint in this case is completely invalid and entirely his own fault. This leads me to believe (on an albeit small samples size) that the rest of his complaints are invalid. Here is someone who begins a project without understanding the tools available, and when he encounters their limits he then blames the hosting environment. I expect he will have a rude awakening.

http://code.google.com/p/memcached/wiki/FAQ#What_is_the_maxi...

comment 16y ago · link · parent

No mate, that's not what he asked. He asked:

3. Third-party apps that are exclusive to Android.

And followed it up with this:

"At this point, I’m guessing, Android fans are ready to exclaim that the fact that Android supports things like home screen replacements (or other system-level tools, such as touchscreen keyboard replacements) — and that iOS does not — is precisely why they prefer Android, and/or consider iOS to be an unacceptable toy, or what have you. But, again, that’s not the argument I’m making. I’m talking about third-party developer exclusives — and the only ones Android has are ones that Apple doesn’t want."

And yet you provided:

4 system enhancements (keyboard, media player, homescreen, email labeller)

4 apps available on the iOS

1 possibly genuinely killer app, but that falls into the geeky automation category

1234567