News for hackers. Stuff that matters.

copergi

Re:The JavaScript Problem on Sunday April 27, 2014 @01:16AM (#7654075)
Javascript is weakly typed. And untyped does not mean no type declarations. It means no types, just like it says. Assembly is untyped. Javascript is dynamically typed. Very different. http://en.wikipedia.org/wiki/Programming_language#Typed_vers...

Javascript does not define the implementation details. It does not have to be interpreted, and in fact I don't believe any modern implementation is interpreted. Javascript is generally compiled to byte code which is then run in a VM, or native machine code (V8 at least does this). There is no reason javascript could not have a static type system, there are statically typed scripting languages. It is dynamically typed by deliberate decision, not "we can't do it any other way".

Re:The JavaScript Problem on Sunday April 27, 2014 @01:07AM (#7654062)
>I accept that I will be downvoted for this.

Why would that happen? Ignorantly bashing haskell strawmen is pretty common here. Btw, while you hit two of the biggest ones, you did forget to complain about it being "academic" and thus unusable for "real world" programming. That should be pretty much standard by now.

Re:The JavaScript Problem on Sunday April 27, 2014 @01:02AM (#7654046)
>It's sad that we should expect Haskell users to be chauvinistic about static typing.

We don't expect that. We expect them to recognize that better type systems are better than worse type systems. Which seems pretty obvious when stated that way.

>I have yet to read anyone who advocates for dynamic typing describe static typing as a "flaw".

Try looking on the internet. Every "static vs dynamic" argument has 99% of the dynamic side arguing that static typing is bad because java's type system limits them and doesn't prevent any bugs.

Re:Go's power is in emergent behavior on Sunday April 27, 2014 @12:55AM (#7654031)
>Welcome to the world of languages with type systems that don't suck

Go is not in that world. It isn't even in the same star system.

If there's one thing SLWs hate, it is other SLWs.
He also gets a lot wrong in that talk, so that doesn't seem like a particularly compelling case.
Re:Porting the Go compiler from C to Go on Friday April 25, 2014 @06:51PM (#7649570)
>If anything it's the old "Goto statement considered harmful" that's a little too naive.

No, people who didn't read it and just repeat the title without knowing what he was talking about may be too naive, but the original point was not.

Re:Porting the Go compiler from C to Go on Friday April 25, 2014 @06:50PM (#7649558)
>You can do that with ctags

And I can do it without ctags. That's the point.

>Depends, one proeminent C project doesn't use that: the linux kernel

That doesn't make his statement "depends" at all. A single project not using that style does not contradict it being "pretty common".

Re:Porting the Go compiler from C to Go on Friday April 25, 2014 @06:48PM (#7649551)
Are you sure you aren't confusing it with K&R style with the argument names on a different line? That would indicate old code. Having the return type on a different line is incredibly common, virtually every C project with decent code uses it.
Re:Google+ Is Walking Dead on Friday April 25, 2014 @02:49AM (#7645078)
Odd. I have cookies disabled period, and only enable them for specific domains where I want to log in to something. I still get constant ads on youtube unless I use an ad blocker.
I love that those of us who give a shit about the users can use the mobile trend to push good user-centric design on otherwise unwilling marketing weasels. I just wish they would stop pretending it is in any way unique to mobile users. Almost all that stuff is just ordinary "give the user a site that doesn't suck", and applies to any user, regardless of the device they are using at any particular moment. "Make your menu simple" and "give relevant search results" and "don't put up registration walls to prevent your users from giving you money" have been well known for over a decade. Take this opportunity to push good web design for your entire site, not just for mobile users.
Re:My new favorite vim/tmux bug on Friday April 25, 2014 @01:29AM (#7644903)
The tools in question, and the OS in question, bear little to no resemblance to unix or its tools. Blaming unix for the monstrosities that it inadvertently spawned isn't really fair.
Re:Libressl.org is running apache1 on Thursday April 24, 2014 @11:31PM (#7644612)
That someone was mistaken. How exactly do you think they "struggled to maintain" a fork of software that was barely active in the first place? How does "apache but chrooted by default" constitute "frankenapache" exactly? Given that their struggling was so clear to you, could you point me to something that would make it clear to the rest of us?
Re:What I Wish I Knew When Learning Haskell 2.0 on Thursday April 24, 2014 @06:42PM (#7643574)
You can do whatever you want. But drawing nonsense conclusions won't suddenly become reasonable just because you are defensive about the shootout.
Re:What I Wish I Knew When Learning Haskell 2.0 on Thursday April 24, 2014 @02:12PM (#7641877)
>Please contribute your Haskell regex-dna program

No. I stopped bothering with that cluster fuck like a decade ago. It is a complete waste of time.

Re:What I Wish I Knew When Learning Haskell 2.0 on Thursday April 24, 2014 @02:06PM (#7641835)
>For example, I wouldn't tell someone to write a web server backend in Haskell if it's going to be in production.

You probably shouldn't be giving advice then.

>This is how Galois and Facebook are taking advantage of Haskell

Facebook is using haskell for a high performance, high concurrency server for filtering. You do realize how similar that is to a web server right?

Re:What I Wish I Knew When Learning Haskell 2.0 on Wednesday April 23, 2014 @11:24PM (#7638336)
Linking to the benchmark game as if it means something should be a bannable offense. When you look at something that encourages speed at all costs, that is what you will see. People do low level optimizations like that to gain 0.5% better performance. That does not mean you need to do anything like that to get good performance.
Re:What I Wish I Knew When Learning Haskell 2.0 on Wednesday April 23, 2014 @11:18PM (#7638330)
>The main force holding me back from learning Haskell is the cryptic syntax

Haskell doesn't have a cryptic syntax. The same complaint would be just as (in)valid leveled at any commonly used language. We're not talking APL here.

>There are so many great languages out there nowadays, Clojure, Go, Erlang.

Go does not belong in that list.

>I don't see where Haskell would be a better fit

For writing software. I realize that sounds snarky, but that really is the answer. To see the problem with your question, just turn it around. Where would clojure or go be a better fit than haskell?

Re:What I Wish I Knew When Learning Haskell 2.0 on Wednesday April 23, 2014 @11:12PM (#7638320)
>"hard to explain" or "easy to obfuscate."

I wouldn't call it either of those things. They are so general that people have a hard time getting them. That's all.

>That's what the "mumble mumble endofunctors" joke is getting at: sometimes they're a useful generalization, but more often they're a way to make easy things sound hard, or to make bad teachers sound smart.

That is not at all what the joke is getting at (and that doesn't even make sense).

Re:LibreSSL: FIPS mode is not coming back on Wednesday April 23, 2014 @11:02PM (#7638298)
>Why do you magically trust OpenBSD?

It isn't magical. I've spoken to many of them. I've seen the work they've done over the last 15 years. They earned my trust.

>Much of the projects early funding was via DARPA

No, a relatively small amount was via DARPA, and that funding was pulled due to Theo criticizing the US government. And that was not early in the project, it was like 8 years into the project's life. Doesn't really scream "NSA plants".

Re:IBM Opens Power Microprocessor Architecture on Wednesday April 23, 2014 @10:44PM (#7638248)
You are only looking at a tiny subsection of CPUs, which happen to be the niche intel dominates. CPUs are in a lot more devices than just PCs and laptops.
It is pretty crazy that nobody is will to give you two ethernet on anything sub-$100. You literally have to pay an extra $50+ just for a second NIC.
Re:LibreSSL on Tuesday April 22, 2014 @05:16PM (#7630505)
ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/
Re:LibreSSL on Tuesday April 22, 2014 @02:48PM (#7629554)
11/11/2009 is not 8 years ago. That "better link" is exactly what I was referring to.
Re:LibreSSL on Tuesday April 22, 2014 @02:44PM (#7629530)
Yeah, fuck those openbsd guys and their totally not portable openssh that you can't run on anything but openbsd!
Re:LibreSSL on Tuesday April 22, 2014 @09:03AM (#7627362)
>You can have great software without insulting half the internet

You overestimate how many web hipsters there are. And annoying them is not "being an immature brat". It is precisely to discourage their involvement. Because the mentality behind the web fads are precisely why the entire world of software is layers upon layers of shit stacked on top of each other.

Re:LibreSSL on Tuesday April 22, 2014 @09:00AM (#7627340)
>Count the number of vulnerabilities in OpenSSL over the last few years, relative to the size of its code base. A single vulnerability

You might want to take your own advice. There have been tons of vulnerabilities in openssl, not one.

>LibreSSL inherits all of the undiscovered vulnerabilities in its huge code base.

That would be why it is being gutted and audited. That's the whole point.

Re:LibreSSL on Tuesday April 22, 2014 @08:57AM (#7627332)
>OpenSSL has provided years of free software, supporting thousands of sites and applications.

And has done it so poorly that it has been a security nightmare the whole time. Just because something is given away, doesn't mean the world is obligated to be thankful for it. Giving away crap doesn't make it not stink.

Re:LibreSSL on Tuesday April 22, 2014 @08:54AM (#7627305)
>Portable OpenNTPD seems to have died: https://wiki.archlinux.org/index.php/OpenNTPD

If you follow that through the series of links, you find that it is just an assumption based on one guy who didn't know the project existed thinking unchanged = unmaintained.

Re:LibreSSL on Tuesday April 22, 2014 @08:42AM (#7627261)
>Ain't using CVS potentially an issue here?

No, why would it? If you don't trust the openbsd developers, the don't use their code.

Older ยป