Better HN
topnewbestaskshowjobs
Log inSign up

binaryfinery

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

Submissions

comment 16y ago · link · parent

OP: "I'm pretty sure the Mono people are worried. "

You are saying that Miguel de Icaza is not one of these Mono people, nor is he representative of them.

comment 16y ago · link · parent

Hierarchy of needs: air, food, shelter. If you live in the USA and want food and shelter, you cannot get it without paying the man taxes. Even if you own your own land, you must pay taxes on it.

The counter argument (that one could be a homeless person), is no more useful than pointing out that a slave could choose to die: yes a hard choice, but a choice non the less.

So the creation of a tax system, whereby a person is forced to pay taxes, a percentage of which goes to the rich that hold government debt, is a system where everyone is forced to work by men with guns. That's slavery.

But you can believe that you're not a slave just because there are slaves, or have been slaves, who have even less choices than you do.

comment 16y ago · link · parent

Why the markdown? Objective-C is shitty with shitty tools. Ellison is Jobs' friend. Ellison owns Java. Android is iPhone's rival.

comment 16y ago · link · parent

I shouldn't still be surprised by this shit, but the claims of patent 5,966,702 are basically "There was some data and we normalized it". Seriously. WTF?

Can we start putting questions like these on 1st year bachelors exams, so we can finally prove that someone "reasonably skilled in the arts" can figure it out?

comment 16y ago · link · parent

And in evidence for the "Pretty Sure They Aren't" statement, here's Miguel de Icaza shitting his pants (not):

http://tirania.org/blog/archive/2010/Aug-13.html

comment 16y ago · link · parent

In some ways the Dalvik VM is more different. Its register based for a start.

comment 16y ago · link · parent

I know. I also hope they are using process level security, not class level security, which will completely bypass patent #1. Google people aren't stupid.

comment 16y ago · link · parent

You've not looked at them have you (the VMs)? The JVM is entirely a class-focused JVM. The CLR is a general purpose VM. I can access arbitrary memory in the CLR, but cannot on the JVM. I write as someone who has attempted to build a byte-code assembly file that would allow direct manipulation of binary arrays for the purpose of efficiently loading OpenGL vertex buffers that mix floats and ints. Cant be done in Java or in Dalvik (at least in 2.1). Easily done in CLR. Also, the handling of security and exceptions is different. I've also read all the JSRs with respect to this problem, related problems, generics, stack-based variables etc, and I'm also aware of the optimizations for stack-based elimination in 1.6 and 1.7.

Also, I admit I only read the first patent, but I believe it doesn't apply to Android simply because the Dalvik VM does not apply its security at the object level but the process level, thereby nuking the patent. As for mono, I doubt they would worry since they would simply point out that "class" and "object" have been used for determining security access since at least Windows NT. Or mono can simply turn off object level security and rely on the OS to do it. The whole list is replete with holes and workarounds.

comment 16y ago · link · parent

Please oh please let it be a Java-based iOS SDK instead of the archaic shit we have to use now.

comment 16y ago · link · parent

And needless to say, at least patent 6,125,447 has prior art.

comment 16y ago · link · parent

No I'm pretty sure they aren't. The CLR is totally different to the JVM.

comment 16y ago · link · parent

The JVM bytecode is shitty. It cannot support dynamic languages at the VM level (yet: http://jcp.org/en/jsr/detail?id=292), the support for the C# equivalent of structs has been pushed back, and that makes any kind of hardware acceleration painful. Then theres type erasure - a total hack to get generics.

I think Oracle is being beyond stupid here. If anyone has the power to come up with a language and toolchain to make Java utterly irrelevant, its Google.

comment 16y ago · link · parent

What to do? Read paper or hit next months deadline...

comment 16y ago · link · parent

So far, to fight "Special Interest Groups" we have:

The Bulldawg Nation.

The No Kill Nation (human treatment of pets)

Drunk Nation

LGBTQ Nation

Netroorts Nation

Outdoor Nation

A Woman's Nation

Elevation Nation

Basically Sean has created Facebook, but you give him money for his political campaign fund first.

That said, at least he's trying something.

comment 16y ago · link · parent

Translation: I need to exist stocks into cash before you idiots realize we're in for a severe bout of deflation.

comment 16y ago · link · parent

He made his bed.

comment 16y ago · link · parent

Don't suppose you have a link to a decent tutorial on these features for, say, java?

comment 16y ago · link · parent

A command line java refactoring tool? That would be cool. Is it possible to extend it to other languages? Do you have a link - even if its to a "coming soon" page?

Let me reduce "good ide" to IntelliJ or Eclipse if that helps.

By "formal grammar" I mean that both Eclipse and IntelliJ have full Java parsers. So they can successfully rename a method on an interface, all its implementations and all its uses. This can be done if and only if the tool can correctly identify which text symbols represent a class, interface, variable declaration and method invocation, and further it can infer the type the variable in a method invocation using information from that variables declaration, even though it may be in another file.

That needs a parser. So you are correct in that you don't have to write a formal grammar to do it. You can hand role your parser. I used "formal grammar" to imply a level of complexity. Does vim have a tool of such complexity?

comment 16y ago · link · parent

Not really. But then I'm using eclipse, intellij, bash, gmail etc. Its like linux, but I can sync my iphone :-)

comment 16y ago · link · parent

The real point is that almost the entire vi interface sensibly combines that way to operate on words, lines, paragraphs, regexps etc. Whereas a good IDE works on that which the words, lines, etc represent: i.e. a code dom.

comment 16y ago · link · parent

I don't think the Fed is trying to generate inflation, simply because if they wanted to they could. If you look at their own reports, however, we clearly don't have inflation and aren't going to for a long time. About 20 trillion dollars have been wiped out of the money supply. The trillion dollars of printing so far is like hoping taking a piss will turn a tsunami. And most of that trillion dollars has been taken by the banks and put right back into the federal reserve system. Check out banks' reserves. Any money the Fed has given out hasn't affected spending in any way.

There is a way they could get inflation going: if the government prints money (i.e. not borrows printed money) and gives it away to people, e.g. by lowering taxes a lot. But they can't. And we all know they cant.

comment 16y ago · link · parent

a. Use case? b. Shift-Alt-Arrow Shift-Alt-Arrow Shift-Alt-Arrow Shift-Alt-Arrow Shift-Alt-Arrow Ctrl-X Alt-Arrow Alt-V. So 8 vs 5.

Focusing on what it can do is irrelevant. I've been programming 29 years now. Can't think of a time I've needed to do that.

comment 16y ago · link · parent

Refactoring could be handled by perl, awk, in theory. Or you could, in theory, right a parser to do it. But I don't know of anyone who has. A simple search and replace, on a big code base simply isn't going to work. You want to add a parameter to a method on class Foo, when 20 other classes have that same method name? What about when Foo is an interface, and you have to do it for the 10 classes with that method name that implement Foo, but not the 50 that dont?

  m.foo( bar baz);
Does this foo need to be changed? You can't know without knowing what type 'm' is. Good luck writing an awk script for that. This isn't a debate about whether or not it could be done. Its about whether or not you can do it faster than I type Ctrl-F6.

If such a tool exists that I can run from bash, please let me know. Otherwise you guys have advanced from type-writer to the early dedicated word-processors that existed in the 80s, but no further.

Jetbrains have refactoring tools for C#, Java, Javascript, Python, Ruby, PHP, Adobe Flex, as well as "basic" language support for most others (but no Erlang I'm afraid).

As you say, vi is about editing text. But the author is a member of the Ruby on Rails core team and a core contributor to Ruby projects, and I put it to you that most people using vim dont use it to edit just text: they edit text that happens to be a language with a formal grammar, and structure both with the file, and outside it: i.e. contextual. Hence, a good IDE will always be better than vim.

I also dispute the idea that, given a new language, vim will be better at editing it. My IDE will likely be able to do exactly the same things vim can do, using the keyboard only, and with (on average) the same number of clicks. However, the IDE will most likely be intuitive, obvious, and easy to learn (e.g. by giving visual feedback), meaning that in reality, even though vim could do as much as my IDE for an expert user, for the average user it wont and never will.

comment 16y ago · link · parent

Ctrl-W is "select word" but it expands each time you press it. So if I'm in the middle of a string, and that string is part of a method call:

( "some string" )

And I press Ctrl-W, then at first "some" will be selected, then "some string", then ""some string"" (with the quotes).

So assuming that moving my thumb to Ctrl is free, I did it in the same number of key presses as you. Or its 4 vs 3 if you count the ctrl key. Or its 4 vs 4 if you are in insert mode and have to esc first. [Edit: ok, you have to press delete too, so its 5 vs 3 or 5 vs 4.]

The difference, however, is that Ctrl-W is all you have to know. Its just as fast as all your different combinations even for the worst case, but:

a) its often faster - i.e. just two Ctrl-W's for selecting the text inside the string.

b) it provides visual feedback.

Its just as fast for the expert, but yet its obvious, intuitive, and lends itself to discovery based learning. Once you know Ctrl-W selects a word, there's a good chance a user will learn its advanced features by accident, even if they aren't told.

Goto line: Ctrl-G 10.

Goto first line: Ctrl-Home (standard in most GUI editors)

Goto last line: Ctrl-End (also)

The '=' auto indent feature: Ctrl-Alt-L Enter is "format entire file". Its fast, so why would you ever want to format just a little bit? Ctrl-Alt-L Alt-A Enter is format the entire project. I dont have a binding for indent, because why would I ever want to? Just write code, then let editor make it look pretty in one go with Ctrl-Alt-L Enter.

I assume the "." command is used to say repeat a replace or a find: in which case there are keys for that. I'd like to see some use cases for that other than find and replace.

Editors like IntelliJ, SlickEdit, Resharper, all have powerful keybinding support. SlickEdit has a built in scripting language if you want to go crazy. All have far more commands than are actually bound. SlickEdit has a vi mode even.

So you haven't convinced me that vim offers any advantage over a good IDE.

comment 16y ago · link · parent

I know people who use vim, and are hardcore. Yet anything my hardcore friends can do on vim, I can do in IntelliJ or Resharper. However there are things I use regularly in these tools that vim cannot do.

These questions are asked honestly and sincerely and I'm genuinely interested in reading responses:

At the end of the day, what is the big deal about a modal editor? How does not-having-to-press-ctrl (or alt, meta, cmd, whatever) for the first key give a programmer any advantage? Is it just the number of these commands that are available - and if so, has someone done a count of commands available in products like IntelliJ and Slick-Edit vs vim? What about the stuff that seems to be missing, like contextual refactoring - or are there plugins / scripts for that?

Without any such evidence, it does seem to me that programmers want to use vim because of a reputation that hardcore hackers use it, not because it actually improves productivity.

comment 16y ago · link · parent

"Je n'ai fait celle-ci plus longue que parce que je n'ai pas eu le loisir de la faire plus courte." - Blaise Pascal = "I would have written a shorter letter, but I did not have the time."

comment 16y ago · link · parent

Thats what I thought too, but then I watched some of their movies with my daughters. Not completely horrible. Were very good at demonstrating consequences of actions and cleaning up mistakes. Sonny with a Chance on the other hand is mind poison.

comment 16y ago · link · parent

It does not seem like a perfect investment. The only way it can seem like a perfect investment is if you do not investigate what it is. How many other of your investments are "perfect" do you think? And why would you be worried about inflation?

comment 16y ago · link · parent

"Learn to Code, Quit Job" might be wiser?

comment 16y ago · link · parent

And a really good way to syphon US dollars to help pay down the Japanese national debt. Not like we need profits to stay here.
1234567