Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codygman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
65 ms
·
631.
▲
by
codygman
12y ago
Yep (credit to bkirwi): λ> import Data.Bits λ> let integerWithBytes = foldr (\byte acc -> (acc `shiftL` 8) + fromIntegral byte) 0 λ> integerWithBytes [0xFF, 0xFF, 0xFF, 0xFF] 4294967295
632.
▲
by
codygman
12y ago
I feel like you are overstating both how much this happens in Haskell and how exclusive it is to the Haskell community. Also see bkirwi's response for the working version, then my reply to him for a sample run.
633.
▲
by
codygman
12y ago
Yep this works: λ> import Data.Bits λ> let integerWithBytes = foldr (\byte acc -> (acc `shiftL` 8) + fromIntegral byte) 0 λ> integerWithBytes [0xFF, 0xFF, 0xFF, 0xFF] 4294967295
634.
▲
by
codygman
12y ago
That's comparing Go's library call to a full implementation though.
635.
▲
by
codygman
12y ago
> My position on this issue is both a combination of my lived experience having never felt discrimination in the tech community So something that just happened, I was looking through local meetups and the second picture was a white dud
636.
▲
by
codygman
12y ago
> Speaking as a so-called privileged person myself, Wait didn't you say you were a black woman? Why do you call yourself a "so-called privileged person"?
637.
▲
by
codygman
12y ago
> It's not too much of an exaggeration to say that this programme changed my life. It opened my eyes to what eventually became my career. It exposed me to other high-schoolers like me. It made me friends I still have today. It still
638.
▲
by
codygman
12y ago
> Every time I see people on HN discussing feminism, my answer leans more and more towards, "Yes." Anecdotally speaking I've found HN to be much better than say Reddit or other popular tech communities.
639.
▲
by
codygman
12y ago
> Personally, it smacks as a bit sexist for organizations to say to me 'we created this program to get women into things' because it reads to me like them saying "we created this program to get women into things because th
640.
▲
by
codygman
12y ago
> Serious question: Do you think this is a conscious choice made by those in the tech field? I personally find it to be similar to racism: - Some are willfully ignorant - Some don't care and want to keep the status quo - Some don&#x
641.
▲
by
codygman
12y ago
I think you are far too confident about the usual business approaches to security.
642.
▲
by
codygman
12y ago
Charitably speaking, that is very confusing considering you responded to: > Haskell is particularly guilty of creating several different indenting possibilities, and does require constant intervention with: > You really have to design
643.
▲
by
codygman
12y ago
Hm, I guess clock doesn't support forth? I just ran `cloc .` from the root directory.
644.
▲
by
codygman
12y ago
Obligatory cloc reading to see which implementations were shortest: ------------------------------------------------------------------------------- Language files blank comment code
645.
▲
by
codygman
12y ago
> Wow, if that's voice typing, I'm impressed, mine is never that good :) I had to correct a few things, but I was pretty impressed by the accuracy :D > I do understand where you're coming from. More code means more cod
646.
▲
by
codygman
12y ago
Every small min function that you ride has the potential to have bugs. In a language with generics there is only one min function meaning only one source of potential bugs. So is it simpler to have all these little functions doing basically
647.
▲
by
codygman
12y ago
> What about type theory weenies? Are we first graders?
648.
▲
by
codygman
12y ago
> perhaps the time spent satisfying a type-checker would be better spent testing One of the reasons I like languages with more advanced types systems such as Haskell's or Scala's is because test suites in other languages to ach
649.
▲
by
codygman
12y ago
Was VBscript source code visible from the browser? What I'm recommending is basically something to replace Javascript in exactly the same way (except it's a sane* language). * I do concede ES6 is much much better
650.
▲
by
codygman
12y ago
I'm not much of a C programmer and don't know the answer, but a total guess based on intuition results in: http://www.gnu.org/software/libc/manual/html_node/Atomic-Dat...
651.
▲
by
codygman
12y ago
I think GHCJS well mean having to use the JavaScript FFI much less.
652.
▲
by
codygman
12y ago
What if one of those compile to JavaScript languages forked Firefox and/or Chromium and added support to their languages in the tooling? Would that suffice for you?
653.
▲
by
codygman
12y ago
In regards to pointers and pure functional languages: https://ghc.haskell.org/trac/ghc/wiki/StaticPointers
654.
▲
by
codygman
12y ago
> Which "working" solutions? Has anyone solved creating a type system that offers OO/inheritance, generics, mutability and isn't mind-bogglingly complex? Pretty sure OCaml would match your definition of "not mind
655.
▲
by
codygman
12y ago
What have you gained going from Scala/Haskell/R to Javascript? What have you lost?
656.
▲
by
codygman
12y ago
Readable lambdas are always a plus for me, glad to see this change.
657.
▲
by
codygman
12y ago
> simple tasks which are primarily IO This is primarily what I use functional languages for so far, so naturally I disagree. As long as their aren't stringent performance requirements (though functional languages like Ocaml and Hask
658.
▲
by
codygman
12y ago
Whoa, seriously? I'm going to guess you're joking since they probably implemented "customer order of amount x".
659.
▲
by
codygman
12y ago
Can you give some reasons why? Perhaps even show how you would have solved the problem?
660.
▲
by
codygman
12y ago
Oh, I was about to say... Make sure you only expose a portion of Haskell's concurrency primitives ;)
More ›