HNHacker News
TopNewBestAskShowJobs

friendly_chap

1,561 karma · joined September 21, 2012

submissionscomments
friendly_chap··on Protests in Ukraine
I have high hopes for you Americans. "land of the free and the home of the brave"
friendly_chap··on Protests in Ukraine
They are at the moment, in an ideal world they should not be.
friendly_chap··on Protests in Ukraine
In "democracies" similar to the Hungarian one you can chose who robs you, there is no good option.

They are all the same, maybe one party called A the other B but the same people are behind all parties, and they form a strong inner circle.

They just give you an illusion of democracy, really.

friendly_chap··on Protests in Ukraine
People are waking up all over the world. I wish the best for your nation. Never give up.
friendly_chap··on Protests in Ukraine
We have these kind of riots in Hungary (pretty close to Ukraine) as well. They are not really revolutions, but they are a good indicator that the people are extremely fed up with current government policies, which may lead to a revolution.

Exciting times to live in, hopefully the people will be able to get rid of the corrupt ruling class.

EDIT:

Just to give you bit of context on corruption... in the UK where I currently live, politicians are going into prisons for faking a couple of thousands of pounds as expense and profiting from that... A couple of thousands...

Compared to that, a couple of years ago, a guy called Bajnai Gordon was the prime minister in Hungary, who is well known by everyone for his act of destroying the whole agricultural economy of eastern Hungary. He did stole all the money from one of the largest companies at the time. Multiple farmers committed suicide, etc.

Years after that, he became a prime minister. Truly mind blowing. Those people are evil, and have cheeks, they deserve to spend the rest of their lives in prisons.

If you are interested about (the politically correct version of) the story, search for "Hajdu-Bet" here:

http://en.wikipedia.org/wiki/Gordon_Bajnai

friendly_chap··on An example of fast numerical computation using Haskell
Unless bare metal changes to something which matches the functional approach better. Or just simply changes and higher level concepts protect you because you are not tied to implementation details.
friendly_chap··on Go 1.2
Yes, OCaml is really similar to Haskell (it is an ML after all), without purity. But there is no support for multicore, the implementation is not really being improved etc, so I decided against using it.
friendly_chap··on Go 1.2
No. Having a nice, feature rich type system doesn't make a language overcomplicated. See Haskell's one.

I would argue that having a bad type system definitely can make a language overcomplicated, full of edge cases and dark spots.

friendly_chap··on Go 1.2
I have never investigated D due to fears of becoming unmaintained.

There is more to a language than just the language itself, especially when you use it in a business setting.

But you made me curious now.

friendly_chap··on Go 1.2
Let's take a basic list operation, map.

Map takes a transforming function and a list, and transforms each element.

type MyString string

func NewMyString(s string) MyString{return MyString(s)}

a := []string{"A", "B", "C"}

If you want to create a []MyString from []string, now you have to loop over that and transform by hand, with generics you could do map(NewMyString, a).

friendly_chap··on Go 1.2
I am a heavy user of Go, I use it in my job and for side projects as well, for years now.

The lack of generics in Go takes away most of the fun from coding after a couple of month. Despite what is being said, interfaces do not lessen the pain.

With a better type system, taking ides from Haskell (ADT, generics done well, ability to implement interfaces for a type outside of its package etc) Go could be the perfect "dirty Haskell" for me, but now it is just a meh language with a half assed implementation.

That being said, it is still a much better choice then a lot of overcomplicated languages out there.

EDIT:

The biggest practical problem with not having generics is the fact you do not have access to list (slice in Go) manipulation functions. This means you have to implement them yourself, on the fly, for the given type when you need it. This does increase the time it takes to implement something, but also can introduce a lot of bugs as well - you can't rely on (almost guaranteedly) bug free implementations of existing functions.

Of course this runs much deeper than just the list type, but on day-to-day basis I feel this to be the biggest pain. But the rabbit hole is deep: we could get into how the multiple returns values are just a really inconvenient (not composable) workaround of not having a generic tuple type...

friendly_chap··on Science has lost its way, at a big cost to humanity
This is just way too true. I know someone (anecdote alert) learning at a really prestigious university in a medical field and she told me multiple times that they intentionally cheat the results to match the expected output.

By cheating I mean... flat out lying. I don't know the implications of this (how far misinformation can get) but it seems like a wrong culture and attitude, especially for science.

friendly_chap··on US bugged Merkel's phone from 2002 until 2013, report claims
Hope is all we have got, my friend.
friendly_chap··on US bugged Merkel's phone from 2002 until 2013, report claims
So how can politicians prevent a holocaust exactly? I thought they caused it in the first place.
friendly_chap··on US bugged Merkel's phone from 2002 until 2013, report claims
Hypocrites indeed.

Hopefully humanity will come up with a way to replace these parasites called politicians.

I believe not even too many years later we will remember this era of humanity as the darkest of the dark ages.

friendly_chap··on Show HN: Haquery – jQuery for Haskell
As a beginner I got into Haskell for the basics - generics done right, ADTs, typeclasses, very nice syntax, crazy good list operations etc

My reaction to monads & transformers was: "I never asked for this."

I got used to them in a couple of weeks but I know multiple people personally who couldn't grasp them in months. I try to provide them with a toolkit to flex their muscles on and be productive with.

friendly_chap··on Show HN: Haquery – jQuery for Haskell
Seems like we are on the same page, I also test drived this library with a static site generator =).

I was really surprised that there are no more templating languages for Haskell given the availability of the mighty parsec.

I am following you on github, stay in touch.

friendly_chap··on Show HN: Haquery – jQuery for Haskell
I will check your repo too. If you have problems due to similar naming let me know and I will change it.

Regarding the selector DSLs, I also went with the string solution, however I translate all selectors to a recursive ADT which could be used directly.

Maybe we should unite our powers ;)

friendly_chap··on Show HN: Haquery – jQuery for Haskell
Thank you! I definitely agree with you regarding the idiomatic solutions.

However, the only defense I can come up with (not that I really want to excuse myself) is this is part of an effort (Hakit) to make Haskell web development accessible to HS beginners. I was a beginner myself when I started Hakit, a web toolkit, and I was overwhelmed by the seemingly complex Haskell APIs. So I tried to build a complete toolkit while forcing the users learning as few Haskell concepts as possible, without writing exceedingly ugly code.

I will surely try to make this more appealing to Haskell ninjas too though.

friendly_chap··on Show HN: Haquery – jQuery for Haskell
Hi, author here.

Maybe "jQuery for Haskell" is not too descriptive: it is a pure Haskell html dom manipulation tool, mainly useful for templating and/or scraping.

It uses the same selectors and API as jQuery, the only deviations are due to immutability (eg. if you modify a selection, the original graph will not be updated of course, so you have to use "alter" or something similar).

Edit:

Feel free to send a pull request or suggest any changes. The time I poured into the library was mainly focused on getting even the most complex nested selectors to work, because I felt that is the lion's share of the work.

friendly_chap··on Game On Ladies - A man logs in as his wife's character in a videogame
If that's irony, then well played!
friendly_chap··on America the great, yea right
TLDR:

A guy brainwashed by American propaganda as a child realizes America has problems too. Then writes a self-important article about it.

friendly_chap··on Before I Die I Want To
If the site still doesn't load you can fix it by issuing

$ ab -n 1000000 -c 500 http://beforeidieiwantto.org/

friendly_chap··on Why monopolies make spying easier
I could imagine this article being talked about in the preschool, to teach little fellas, but on HN?

Of course it is easier to subvert 1 company than to subvert... well n>1.

friendly_chap··on 1984, Hungarian Edition
The theoretical foundations for math and CS is very strong, however, most newgrads has no real world experience neither particularly useful practical skills.
friendly_chap··on 1984, Hungarian Edition
I don't think I ever mentioned anything about knife fights on this forum. I also use no local rhetoric. I just wrote what I see on the country side. If you think it is a rhetoric to trick voters into voting then I am glad - you must be very far away from the problems these voters experience, and that's fine.

You live in Budapest you say. That's an entirely different place then the rest of the country.

The amount of poverty and suffering people endure in the country side is almost unimaginable. Unfortunately I can imagine it because I grew up in it.

PS:

I have been at knife fights unfortunately. That can happen when you want to drink an orange juice in a pub here.

PS2:

How do you like the Hungarian language? I am a natural language geek. What do you think how does it sound? Any thoughts appreciated.

friendly_chap··on 1984, Hungarian Edition
Thank you for taking the time to write these replies, I appreciate it. I agree on certain points, but I still hold my opinion of that you were tricked by the media which demonized the Jobbik.

I personally know multiple politicians who are members of the Jobbik. None of them want to burn Romas. None of them even blame them, they blame the government.

friendly_chap··on 1984, Hungarian Edition
> if people don't vote Fidesz that Jobbik will win - and we all know what fascists they are!

Sure, they are born evil people. They would sacrifice their own children just to kill others - anyone who differs in skin color.

Am I right?

There were multiple cases of Jobbik supporters rallying in Roma populated cities, for various reasons. Nobody got hurt. Nobody will. How fascist are them then exactly?

friendly_chap··on 1984, Hungarian Edition
> Maybe there are 0 beaten Jewish people per year now, but only because there were 0 Jewish people left in Hungary after the WW2

You don't know what are you talking about. "Today, the population of Jews live in Hungary is around 120,000". [1]

[1] http://en.wikipedia.org/wiki/History_of_the_Jews_in_Hungary

friendly_chap··on 1984, Hungarian Edition
I would never do that, that's a felony. I am a law abiding citizen.

They can send me to prison for 3 years for that. Does anyone know anyway what historical event I can't deny beside the holocaust?

Just so I know, I don't want to break the law!

← PreviousPage 10 of 14Next →