HNHacker News
TopNewBestAskShowJobs

gclaramunt

267 karma · joined March 17, 2009

submissionscomments
gclaramunt··on When your child speaks a language you don’t
tl;dr: being a parent is totally different from what you plan to be as a parent

(and that's actually awesome)

gclaramunt··on Scala: Where it came from, Where it's going
Computing a type level factorial can take more than 1 minute :)
gclaramunt··on Why Some Bankers Are Leaving Finance for Fintech Startups
but as practice has shown, the exposure of the global economy to a photo sharing startup going belly up is negligible, but the exposure of the global economy to a miscalculated risk was significant enough to warrant a less cavalier attitude to it :)
gclaramunt··on Ask HN: Differences you've noticed between CS students and the self-taught?
Obviously YMMV, but if I think on myself without CS degree, I'll probably: Be comfortable programming in Java/C#, learned Scala and trying to learn FP. Learned about big O notation. But wouldn't know: why you should NEVER use float/double to represent money How databases work That NoSQL conceptual model predates the relational model. Dependent types Category theory

Overall, a good CS degree exposes you to things you don't know you don't know (a big pitfall in self study) I really respect the self taught devs, because they have to work harder for it.

gclaramunt··on Programming at the specification level with Haskell
I think the blessing and the curse of OOP is that is actually pretty good for simulation (SIMULA got it right I guess :) ), so what you usually have is a program that's a simulation of a process. Even the standard OO modelling techniques encourage simulation of "real world" entities. But that direction doesn't lead to the most efficient,composable , or easy to reason abstractions. It doesn't help that the main abstraction mechanism in OO (superclass/subtyping) is problematic enough that even most people recommend moderation in its use.
gclaramunt··on When Children with Autism Grow Up
I wish it were that simple and a magic diet made the autism go away...
gclaramunt··on Ask HN: How to manage developers who aren't very good?
I would argue that the most important management skill is herd people to "get sh*t done", being skilled in firing people won't save your ass if you don't deliver
gclaramunt··on Is Bilingualism Really an Advantage?
heck, if they are alive and the house is not on fire, you're doing pretty good :)
gclaramunt··on Ask HN: Who is hiring? (February 2015)
heh, need to upgrade my Haskell skills from n00b to experienced first
gclaramunt··on From Object Algebras to Finally Tagless Interpreters
But those are pretty short to write (explaining the category theory machinery behind it takes several book chapters tho :) )
gclaramunt··on From Object Algebras to Finally Tagless Interpreters
Hmm, but when you add a new type of expression, you still have to write the particular implementation of the functions for that type. There are other approaches to generic programming where when you add a new datatype, all the already defined functions work, and if you add a new function, it automatically works for all the datatypes.
gclaramunt··on Introduction to Category Theory
True, I actually was thinking about a Cartesian Closed Category (as explained in https://www.haskell.org/haskellwiki/Hask )
gclaramunt··on Introduction to Category Theory
The "Theorems for free" paper is here: http://ttic.uchicago.edu/~dreyer/course/papers/wadler.pdf ( I guess is the most precise you can get :) )
gclaramunt··on Leon – An Automated System for Synthesizing and Verifying Scala Programs
Where's the paper? :)
gclaramunt··on Introduction to Category Theory
True, if I recall correctly, having bottom everywhere just complicates things without adding much value.
gclaramunt··on Introduction to Category Theory
If you can stand my thick accent , I did an attempt to introduce the very basics at PNWScala 2014 http://www.confreaks.com/videos/4864-PNWS2014-what-every-sca... (mind you, I'm just learning the stuff)
gclaramunt··on Introduction to Category Theory
You don't need to go deep. Types and functions (ignoring non-termination) form a category. Functional programming (Haskell programmers in particular) uses many results from it. e.g. building any "container" type (collections, options, futures,etc..) is the mapping of objects of an (endo) functor, the mapping of functions is given by fmap/map As an example, just from the functor laws you get map (f.g) = map f . map g

Natural transformations between functors gives you parametricity and "theorems for free"

Another result that's used directly is the CoYonneda lemma (but I'm still trying to understand it :) )

The point is: category theory in spite of being totally abstract offers many interesting results that can be applied to day-to-day coding :)

gclaramunt··on Everyday hassles in Go
OTOH, I think is part of the point:

  > file, err = os.Open("file.txt")
  > if err != nil {
  > ... handle error ...
A type system with generics can use types to make an error a different type and produce a compile error if you don't handle the case without making the code more complex.
gclaramunt··on How Paul Graham Is Wrong
While I concede that's not the "billion-dollar American startup that was built by a 100% virtual team", I've worked for a startup where half of the team was distributed across america and europe. It was an amazing team, highly collaborative and flexible, successfully tackling a hard problem. (I used to joke that the code base was CS funland: all the interesting problems in one place)

We failed mostly because our product was overly ambitious, solving a broad problem.

Yes, is just an anecdote, but my point is that distributed team can run circles around most of colocated teams and we wouldn't have been able to assemble that team if we insisted that everybody had to be on the same place.

gclaramunt··on Where FP meets OO
yes, that part makes sense, but in Haskell, an unknown "message" is a compiler error, and bottom represents abnormal termination (e.g exception or even non termination), I don't really understand how that's related to inheritance.
gclaramunt··on Where FP meets OO
> Where is inheritance? Inheritance is just a protocol which specifies what to do with unknown message instead of signaling an error or returning a bottom like in Haskell.

Care to explain? Doesn't make any sense to me...

gclaramunt··on Category Theory by Tom LaGatta
Does your programming language has the map function? That comes straight from CT. A simple but concrete result: map (f.g) = map f . map g

(i.e. if you have two functions that compose, mapping the composition is the same as mapping each one and compose the results)

In functional programming, a lot of concepts are from CT, specially because of the focus on composition that both have. By using CT results they can do pretty crazy things with code and have the math to back it up :)

To be fair, I just recently started learning the subject, but I think it has a lot to offer.

gclaramunt··on The Nonsense of 10X Developers and GitHub as a CV
I will argue that a big difference like that is caused by the environment: looks like is failing to grow skills, motivate and foster collaboration, and if there a few that are truly clueless, failing to proper hire/assign.
gclaramunt··on Gosu – A pragmatic language for the JVM
For the record, the only performance problem that Scala implicits give is just extra compile time, but there's no runtime overhead of using it. (as compared to explicitly call the function)
gclaramunt··on List of Web Business Models
Yes, I think she needed to kill the Hanna Montana image.

And look! here we are, talking in "social media" about her... damn!

gclaramunt··on List of Web Business Models
I'm pretty sure with a father and godmother long timers in the music business, I'm pretty sure she knows what she's doing. For another take that confirms it: http://www.youtube.com/watch?v=wOwblaKmyVw
gclaramunt··on No skin thick enough: The daily harassment of women in the game industry
> I want my children to understand perspective. You can't grieve for every individual injustice in the world, you can only strive to make it better overall.

Totally agree. I found the article helpful overall, I understand it must have been difficult to write it, so I'm giving it more leeway

gclaramunt··on No skin thick enough: The daily harassment of women in the game industry
Yes, is scary... right now, I'm hoping she inherits her mother's confidence :)
gclaramunt··on No skin thick enough: The daily harassment of women in the game industry
Even if they're just outliers, they deserve the right to let their situation be known. You're pretty close to "you didn't communicate according to my standards, so I'm going to ignore you". How do you know your complaints about style aren't an excuse to avoid confronting the problem? Not saying you are, but for my part, even if they do it imperfectly, I will listen, I don't want my kids to grow up in world where this kind of things gets ignored
gclaramunt··on Why Go Is Not Good
I guess we have a different approach about what to expect in a programming language.

Maybe if Go was dynamic or with full type inference, will like it more :)

I bet is great for the niche between C++ and Java, but not sure if I would want to use as a general programming language

← PreviousPage 4 of 7Next →