Better HN
topnewbestaskshowjobs
Log inSign up

dustingetz

7,912 karma · joined Sep 11, 2009 (17y ago) · 3,625 submissions

Founder Electric Clojure https://github.com/hyperfiddle/electric

https://twitter.com/dustingetz

Submissions

comment 14y ago · link · parent

ClojureScript's core library has a dependency on Google Closure, and are optimized with knowledge of javascript vms. david nolen said that v8, for example, is blazingly fast at sequential instructions so they take great care to avoid function calls in critical paths.

here's some discussion that alludes to performance concerns in js vms: http://dev.clojure.org/jira/browse/CLJS-284

here's the original commit for PersistentVector, note how low level the code is: https://github.com/clojure/clojurescript/commit/e615f4cd326e...

here's more discusson by david nolen: https://groups.google.com/forum/?fromgroups#!searchin/clojur...

more discussion about allowing low level code access to js-specific special forms for numerics: https://groups.google.com/forum/?fromgroups#!searchin/clojur...

comment 14y ago · link · parent

its clean and simple. the ClojureScript compiler is 2000 lines of clojure.

comment 14y ago · link · parent

by my understanding, datomic's persistence[1] layer is just a big huge persistent[2] data structure. there is tons of literature, books, papers, etc about persistent data structures in the functional programming community.

[1][2] 'persistent' means different things here.

2974.

Functional fizzbuzz in clojure(github.com ↗)

3 points · by dustingetz · 14y ago · discuss

comment 14y ago · link · parent

you can implement exceptions with error monad.

comment 14y ago · link · parent

how is it that amazon.com itself is never, ever, impacted?

edit: so basically, the businesses suffering outages (heroku, netflix, etc) don't value uptime to the same extent that amazon does. they got what they paid for.

comment 14y ago · link · parent

> start a lengthy court process that would cost them money, time

that's not how it works. a scary letter costs like a hundred bucks and likely makes him cooperate and go away.

comment 14y ago · link · parent

meh. when i'm looking for a bug, i tend to start in the places with lots of branching. in general, high quality code doesn't have much branching, and if you find yourself neding complicated and nested branching, there is probably a better way to factor your code.

one easy trick is to structure your code such that 'null' is impossible, by initializing to an empty value, or re-ordering the way things happen, or using exceptions or error-monad.

comment 14y ago · link · parent

in the poker world, there was a turning point around 2002, where all of a sudden out of nowhere, 22-year-old kids were DESTROYING the "old fart" professionals - the kids learned poker on the internet, and condensed a lifetime of learning into two years with better learning materials and faster play.

this may or may not be happening now in the programming world.

i've met a handful of "old fart" programmers who are exceptional. i've also met a handful of twenty-something programmers who are equally exceptional. but as far as the long tail goes, the kids are much less resistant to new ideas, new concepts (for example functional programming). i think it might be a generational difference, and i think it could shake up the software economy in the next decade.

edit for the trolls: new to a particular person, not to the world. functional programming is a new concept to most of the people i've met, including several very strong engineers.

comment 14y ago · link · parent

is there a good emacs-mode for python that gives interactive development of the same level as inferior-lisp[1]? the python-modes i've seen only let you re-execute a file, but not a buffer or expression.

inferior-lisp makes all the problems bpython is trying to solve, irrelevant.

[1] example: http://vimeo.com/22798433 (4 mins)

comment 14y ago · link · parent

> If you don't know how to program, you filter out all parts of the world that involve programming. You miss the loops and divide-and-conquers of everyday life.

decomposing large problems into smaller ones is math. we all took 10 years of math in high school and college.

a broad education is good. coding, in particular, may or may not be relevant, but certainly more and more schools include a year or two of programming in high school or college. that's probably plenty. no need to get all worked up about this.

comment 14y ago · link · parent

as has been pointed out, python isn't particularly great at doing hardcore functional programming due to lack of native persistant datastructures. however i've found it great for learning functional programming without having to get used to the syntax of real functional languages.

here are some different ways to implement functional sequence operations without native python syntax like `yield`:

https://github.com/dustingetz/sandbox/blob/master/etc/lazy.p... https://github.com/dustingetz/sandbox/blob/master/etc/map.py

and an unfinished, sloppy impl of monads in python with lots of minor errors:

http://www.dustingetz.com/2012/04/07/dustins-awesome-monad-t...

comment 14y ago · link · parent

um, who are you? your site gives me no idea who you are and why you think you can pull this off. not trying to circle jerk for a summer. the selection criteria at YC is what makes it valuable.

edit: slightly less harsh tone

comment 14y ago · link · parent

I wonder what error-monad looks like in C++, or C for that matter.

here's a rough, probably incorrect demo in python: https://gist.github.com/2653752

gives you nice, clean, exception-like error handling that doesn't leak to the wrong level of the call stack, and in a statically typed language the compiler can verify your error handling for you. quite similar to checked exceptions. call stack issues can be fixed with some low level C, or you could even unwind the stack with some exception trickery.

2985.

Smartdrugs, performance enhancers, sports and silicon valley(martinsnyder.net ↗)

1 points · by dustingetz · 14y ago · discuss

comment 14y ago · link · parent

they make this seem like a huge deal, anyone know why? is this going to like put HD content on an iPhone? I don't expect that the signal processing hardware is the bottleneck here.

comment 14y ago · link · parent

the whole driving force of Clojure and Scala, the thing they were designed for[1], is large, enterprise-class codebases, because functional programming makes it easier to reason about program behavior at scale.

[1] http://www.infoq.com/presentations/Simple-Made-Easy (required watching for someone interested in having an opinion on this subject)

you're still saying an awful lot of unsubstantiated opinions. its not about politics, its just about being objectively wrong. frankly, I and it seems also others, just think you're less informed than you think you are. sorry about the super blunt tone, not sure how else to say this. edit: it's good that you're commenting though, these discussions are healthy.

comment 14y ago · link · parent

i've been exploring these ideas myself, and i sort of think everyone is asking the wrong question. its not OOP vs OOADP (or whatever), its a reflection on OOP as it exists today, which for better or worse is mostly java. OOP in java is broken - not because an expert can't wield java effectively, but because someone with only java experience will probably not be able to learn effective OOP on their own, because the things java makes easy - the "opinions" of the language - are often not in line with the most elegant "mental" solution, due to things like no concept of mutability, excessive reliance on objects with state instead of functions on data structures. the things java makes easy become idiomatic, and the things that aren't easy become non-idiomatic... these driving forces create a feedback loop that creates an entire ecosystem of programmers and codebases that are decidedly crappy. Combatting macroeconomics problems requires marcoeconomic solutions; education at the individual level isn't sufficient, we need a way to shift the balance of the feedback loop by creating a mainstream language which influences people towards good code.

Clojure, as you point out, has taken great care to have sensible idioms, Clojure is an awesome language in that simply trying to learn it makes you a better programmer, because Hickey has infused it with his opinions of what is excellent code.

whether or not OOP can be done right isn't an interesting question. I'd rather ask what factors in modern mainstream languages are encouraging poor code, and whether its possible to learn from this and design a language/ecosystem that doesn't suffer from these problems. Scala & Clojure have this as a stated goal.

comment 14y ago · link · parent

i read your post twice because its the top comment from my view, and while I see you wrote a lot, I don't think you actually said anything. are you interested in clarifying?

comment 14y ago · link · parent

i'm not sure what you're working on, but in many enterprise problems, the business complexity is ridiculous: see < http://c2.com/cgi/wiki?WhyIsPayrollHard >. functional programming techniques eliminate several classes of bugs that I see all the time in large codebases, and the quality/correctness benefits make maintenance much less expensive.

comment 14y ago · link · parent

warning, contrarian opinion:

when i have questions about why something is, i try to examine people's incentives and doing this i've found I can usually figure things out. with this in mind, here's a speculative perspective to why dev conferences are expensive.

why do speakers speak? The most attractive speakers are super busy with their projects, and they're the most visibly good at what they do so they're at the tip-top compensation. Speakers speak because it gets them visibility - it helps them recruit, it helps them network, it helps build their company brand.

Ever notice how the speakers always have private speaker-only lunch rooms, and speaker-only bar events? Its because the speakers have less interest in networking with the masses. Being a speaker is a decent signal for being among the highest value people in the room. the speakers want to network with other speakers.

Altruism is a motivator, but I speculate, much less of one. If you're speaking at conferences "for the good of the people", you're probably not busy enough, and it will slow down as you become busy, unless it also provides something you need. so as a speaker grows his credibility, he tends to become less interested in the actual conference, perhaps a bit jaded even.

Why do tickets cost much? Most tickets are expensable. The market for headliner speakers drives competitive comp. A first-class venue in vegas will draw a bigger crowd, even if its just people who want to party for a week. More tickets = bigger conference.

This is why you go see Douglas Crawford speak to a room full of experienced developers and he gives some high-school level talk about "javascript the good parts". We get it man, the whole room owns your book. But we're all still at the conference, even if most of us don't realize that while we're wishing to learn something from the headliners, all we actually bought was a ticket to be in a room with them.

2992.

JVM bytecode parsing monad(clojure.net ↗)

3 points · by dustingetz · 14y ago · discuss

comment 14y ago · link · parent

OP uses the word "rejected" 9 times.

A-level hiring is not about rejection. A-players aren't looking for a "job" and A-managers aren't trying to build an assembly line. It's about finding a mutual relationship where the whole is greater than the sum of its parts, and that requires a lot of things to come together.

> As a startup, if you have the opportunity to bring on an A player in a low risk role (like an internship), you do it

All circumstances are different, so maybe he should have found room for Dan, or maybe not. Engineering quality (and talent in general) is on a power law distribution. When you consider engineering quality to be a competitive advantage (not all startups, even YC startups, need this), your early hires are your future managers, and will tend to influence the future hires. Its tough to attract and close people smarter/better than you.

I imagine myself now at age 26 (pretty decent engineer, doing functional programming and stuff), and compare to age 21 (cocky, overconfident) and while I was smart and driven and all that, it doesn't mean I can contribute to a rockstar team. I would drown and get left behind. World class teams at the top of the power law distribution, say the Clojure team[1], at age 21 I'd be a few orders of magnitude behind them and just not worth paying. at age 26, who knows, probably still at least 1 order of magnitude behind, not worth hiring. Square peg, round hole. At least I can see my trajectory of exponential growth over the last 5 years, and if that keeps up another decade, I can build or join a team like that.

[1] http://thinkrelevance.com/team

comment 14y ago · link · parent

this is a harmful article, he's either trolling or uninformed, lots of misinformation here presented as fact with an "im smarter than you" tone. flagged.

comment 14y ago · link · parent

me too for a couple months now - there are a lot of rough edges - any tips? i have serious prompt issues, i have intermittently malformed colors. is your configuration on github?

turns out i'm willing to tolerate a lot of pain to have emacs operations in a shell buffer, haha

comment 14y ago · link · parent

see "Horrors of Static Typing"[1]

the thesis is that there are places where the type system just gets in the way, and there are places where it is invaluable.

[1] http://phillyemergingtech.com/2012/system/presentations/Horr...

comment 14y ago · link · parent

afaict this is android only. took me about 10 minutes to figure it out, they were super sneaky with the wording of their press release. thanks for wasting my time :(

comment 14y ago · link · parent

i think a lot of people like to talk about how they want the best, and it makes everybody feel good, and the 90%ers (already really good, top decile!) can't tell the difference between them and a 99.9er because they haven't seen one before. also, "goodness" is multi-dimensional which confuses the issue further, its much more than raw coding chops, business domain knowledge is often more valuable.

but it doesn't matter if people are unaware that they're not the best. software gets built, money is made, and people sort themselves into the type of job they're ready for. especially because ability to build a highly valued company is probably a seperate dimension of "goodness" than coding chops. and a more valued dimension.

comment 14y ago · link · parent

Dear 42 Floors: why exactly do you think you need rockstar software talent? Your execution is obviously phenomenal, but it's not like you need a team of <del>haskell/clojure ninjas</del> grizzled enterprise vets who know how to tackle ridiculous complexity of integrating dozens of services against ever changing requirements.

edit: all i'm trying to say is there are top 90% devs, and 99% devs, and 99.9% devs... not exactly sure that 42Floors needs them. if they did need them, they wouldn't be saying things like

    > We can't compete with Google or Facebook on salary. We  
    > can't compete with being a founder on equity. So the most  
    > important thing I have left is my ability to commit to an  
    > individual employee's personal development
99.9ers don't need you for personal development. Sounds like they're trying to get young potential while its cheap. Nothing wrong with that, but when we discuss it, we should say it like it is.

by the way, I quit my 90% job to do hacker/school this summer, I intend to come out a 99er with mad functional programming chops, looking to join a team of 99.9ers so i can someday become one.

3000.

Challenge: find a loop that can't be decomposed into filter/map/reduce(dustingetz.com ↗)

1 points · by dustingetz · 14y ago · discuss

1
99100101
121