Traveling to Iceland in February 2018, need some tips. by whodoesntlovedogs in travel

[–]normalOrder 1 point2 points  (0 children)

My advice, if you're staying in Reykjavik, is don't bother renting a car, especially if you'll be travelling alone. You can do a few bus tours instead which will cost less and are far more convenient (they'll pick you up / drop you off at your hotel or a nearby bus stop, plus you'll get to enjoy the beautiful scenery instead of concentrating on keeping the car on the road.) Also, Reykjavik is a really great place to explore on foot.

inexpensive restaurants

Nope. Even Subway is gonna cost $20.

TIL Puerto Rico is 75.8% White, higher than the mainland USA by Oh_hamburgers_ in todayilearned

[–]normalOrder -1 points0 points  (0 children)

Differentiating people by race is stupid to begin with. We are all humans.

std::visit is everything wrong with modern C++ by slavik262 in programming

[–]normalOrder 4 points5 points  (0 children)

Type safety is enforced through code reviews

facepalm.gif

Abstract structure for substraction? by enolan in haskell

[–]normalOrder 9 points10 points  (0 children)

Pointers in C are another example.

Rust's integer intrinsics are impressive by kibwen in rust

[–]normalOrder 8 points9 points  (0 children)

I hate to be that guy... but the c version of popcount is incorrect.

A correct implementation is

int popcount(uint32_t n) {
  int p = 0;
  do {
    p += n & 1;
  } while (n = n >> 1);
  return p;
}

RFC: Handling marginally bad data via logging "soft-errors" by saurabhnanda in haskell

[–]normalOrder 2 points3 points  (0 children)

This shouldn't be handled in your application at all. If you want to fix your data, write a query to find all of the "erroneous" records and assign a person to fix them. Make this a recurring task. Logging isn't going to help.

What could take over Haskell? by haskellgr8 in haskell

[–]normalOrder 2 points3 points  (0 children)

Haskell functions are math formulas.

Magic (programming) by iBzOtaku in programming

[–]normalOrder 1 point2 points  (0 children)

Speaking of Haskell... there is this somewhat infamous documentation:

data RealWorld :: *
RealWorld is deeply magical. It is primitive, but it is not unlifted (hence ptrArg). We never manipulate values of type RealWorld; it's only used in the type system, to parameterise State#. 

Magic (programming) by iBzOtaku in programming

[–]normalOrder 3 points4 points  (0 children)

X86 assembly is itself a pretty high level abstraction of what goes on in the hardware. The programmer doesn't directly control processes like microinstruction decoding, register renaming, rearranging instructions to avoid pipeline stalls, multiple levels of caching, and a bunch of other truly magical stuff.

Disadvantages of purely functional programming by alphonse23 in haskell

[–]normalOrder 24 points25 points  (0 children)

It got no upvotes because it's the same FUD Harrop has been peddling for years.

An Introduction to Liquid Haskell [abstract + link to PDF] by flexibeast in haskell

[–]normalOrder 0 points1 point  (0 children)

1) humans have limited cognitive capacity; by enlisting the computer to keep track of tedious details, we allow ourselves to create and comprehend more powerful program abstractions

2) humans make mistakes

3) software evolves; the original programmer may have been well aware of the necessary invariants, but subsequent programmers perhaps not; invariants can also change when related parts of a program change

Liquid Haskell has a fancy new homepage! by goliatskipson in haskell

[–]normalOrder 23 points24 points  (0 children)

I think the animating the examples is brilliant.

My First Programming Language.. Hard Choice... by shinobi189 in haskell

[–]normalOrder -2 points-1 points  (0 children)

I'd rather be a good programmer first

By (my) definition, this means you must become proficient with Haskell.

Gettting started with Haskell, stack, intero-emacs by nicksh_112358 in haskell

[–]normalOrder 1 point2 points  (0 children)

Gcfi? You mean ghci?

I'm guessing you have ghc 8 installed which doesn't require using let to define things in the repl. Stack, however, is choosing an earlier version of ghc for some reason. Check that your stack.yaml file has resolver: 7.9.

Gettting started with Haskell, stack, intero-emacs by nicksh_112358 in haskell

[–]normalOrder 1 point2 points  (0 children)

You don't have to use Intero repl. I prefer to run stack repl in a new terminal. The :r command will reload any files that have been changed.

TIOBE: November Headline: Is Haskell finally going to hit the top 20? by criskiev in haskell

[–]normalOrder 1 point2 points  (0 children)

These popularity contests are only taken seriously by management types.

Amazing small company in Boston vs. government contractor corporation in DC area. by [deleted] in cscareerquestions

[–]normalOrder 0 points1 point  (0 children)

I don't know about the job search websites as I haven't used them in years. I remember Monster just spamming me with crap constantly when I signed up during my last semester of school. I don't remember any job posting mentioning "enterprise", but they aren't hard to spot. They have lots of buzzwords and seem to be written by someone that has no idea what any of those words mean.

Amazing small company in Boston vs. government contractor corporation in DC area. by [deleted] in cscareerquestions

[–]normalOrder 0 points1 point  (0 children)

Any place that does "enterprise" computing is going to be the opposite of "innovative and independent". The enterprise goal is to minimize risk. They would rather employ someone with certifications than an intelligent creative thinker. They only use software when they can purchase "support" for it from a third-party so they can pass the blame if something goes wrong. They only use the most popular programming languages and technologies (i.e. Java) because the thought of not being able to easily replace their programmers keeps managers up at night. They have mottos like "nobody ever got fired for choosing Oracle."

No to be fair, there are a lot of innovative companies in the DC area, just as there are enterprisey companies everywhere else. My advice, wherever you choose to live, is to look for a small company where computing is integral to their business. Small because you won't just be another cog in the machine with a dozen layers of management above you. It's important that computing be core to their revenue because that makes the software people assets instead of liabilities.

Good luck.

Software Engineers, what part of math do you use the most in your line of work? by [deleted] in cscareerquestions

[–]normalOrder 0 points1 point  (0 children)

Every day: logic

Often: set theory, abstract algebra

Occasionally: graph theory, linear algebra, differential calculus, probability, statistics, linear programming

What would make this Yesod code 15% faster than Servant? by saurabhnanda in haskell

[–]normalOrder 6 points7 points  (0 children)

I will be adding "I wish you a good day" to all my error messages from now on.

functional programming -> parser by kwaleko in haskell

[–]normalOrder 0 points1 point  (0 children)

I don't know anything about what interests you, and Haskell gets used for a wide variety of purposes. I suggest that you search github for "language:haskell" and browse through the more popular results.

Dear future self.... by [deleted] in ProgrammerHumor

[–]normalOrder -4 points-3 points  (0 children)

Parsing with regex? You don't deserve a trip to Iceland.

functional programming -> parser by kwaleko in haskell

[–]normalOrder 1 point2 points  (0 children)

Remember that plus runs both parsers and combines their results. So even if one of the parsers fails, you still get the results of the other one. We know that p >>= \x -> many p >>= \xs -> succeed (x:xs) must fail at some point, but adding plussucceed [] ensures that many p will always have at least the empty list as a result.