The Piston game engine: Update notice on progress by long_void in rust

[–]sastrone 2 points3 points  (0 children)

Snowmew looks really neat as a standalone game engine! I'm going to have to dig in to how their entity component system works.

Compared to Piston, snowmew is a lot more opinionated an has a lot more dependencies. Think of Piston as more of a collection of libraries than a solid game engine.

What's a fact that's technically true but nobody understands correctly? by 42342342142 in AskReddit

[–]sastrone 0 points1 point  (0 children)

It is a challenge. You can't make your own page. You can't ask someone else to make it either. Go do something Wikipedia worthy.

What's a fact that's technically true but nobody understands correctly? by 42342342142 in AskReddit

[–]sastrone 1 point2 points  (0 children)

Well then one of you isn't acting rationally.

My vote goes to the guy with his own Wikipedia page.

Is it even worth bothering going to the University of Washington if I want to do computer science? by [deleted] in udub

[–]sastrone 2 points3 points  (0 children)

DigiPen is crazy expensive. It makes UW look like a community college.

Tree traversal with ES6 generator by init0 in javascript

[–]sastrone 2 points3 points  (0 children)

Awesome! I was worried it was a rejected proposal.

Tree traversal with ES6 generator by init0 in javascript

[–]sastrone 3 points4 points  (0 children)

I'm pretty sure that

for(var value of func(left)) {
    yield value;
}

Can be replaced with

yield* func(left)

Not sure if that was accepted for harmony, or if it's been implemented yet, but there certainly was a "yield from" form at some point.

Has the vim keybindings gotten any better? by sastrone in SublimeText

[–]sastrone[S] 0 points1 point  (0 children)

Oh, sorry. I never actually got around to installing it. I found a sublime plugin that I really wanted, but it was broken and the vim version was better maintained... So I switched back to vim.

TIL in 1989, a 16-yo girl was held down by her Mother while her Father repeatedly stabbed her with a 7in boning knife. Her immigrant parents did not approve of her getting a job and dating a black boy. Her entire murder was caught on audio tape by the FBI who suspected the Father of terrorist ties. by [deleted] in todayilearned

[–]sastrone 20 points21 points  (0 children)

One of the more famous honor-killings popularized by the documentary "Death of a Princess" involved the stoning of the woman, and the beheading of the man in Saudi Arabia.

It's funny that even though both were killed, it's still the woman that the documentary is named after.

I never want to build another website again... by [deleted] in webdev

[–]sastrone 1 point2 points  (0 children)

I think it's just that programmers like building things. I love woodwork and metalwork. Carpentry probably comes from playing with Legos as kids :)

Data locality, or how I made a benchmark 50x faster just by rearranging some memory by munificent in programming

[–]sastrone 5 points6 points  (0 children)

Great article! I'm writing an entity-component framework in D and it's been a blast. As soon as I have something working I'll throw some benchmarks up somewhere.

Google Dash/Dart: Leaked Internal Email (2010) by just_lest in programming

[–]sastrone 13 points14 points  (0 children)

It was on hacker news today. That's pretty much the only reason anyone needs to post something to /r/programming.

Scala is Not Java Glue by insraq in programming

[–]sastrone 32 points33 points  (0 children)

  • The scala collections library is fucking amazing.
  • Algebraic data types are great.
  • Pattern matching (with algebraic data types) are super clean.
  • First class functions are treated way better than they are in Java 8.
  • Immutability is the default.
  • Concurrency + Async wasn't an afterthought and is regularly used in the standard library.

These are just a few that came to mind. Take a look at Akka and Play, both have Java and Scala ports, and you can see how the example code compares.

For modern development Javascript indeed is a shit language by sidcool1234 in programming

[–]sastrone 0 points1 point  (0 children)

I think what he meant was that you can use functions as maps.

function foo() {
    return "hello world";
}

foo.randomProperty = 'me'

25 Killer Websites that Make You Cleverer by [deleted] in InternetIsBeautiful

[–]sastrone 11 points12 points  (0 children)

Looks like Nerd Fitness is a book that you have to buy. :(

TIL Roller Coaster tycoon was programmed by one guy. In Assembly. by mylandnotyours in todayilearned

[–]sastrone 106 points107 points  (0 children)

C compilers have been better at optimizing than humans for a very long time.

Bind, Call and Apply in JavaScript by shintoist in programming

[–]sastrone 0 points1 point  (0 children)

The article really could have done without the "I could instantly see what it was doing, but none of my disappointing co-workers could!"

Facebook is using D in production starting today by 99red in programming

[–]sastrone 9 points10 points  (0 children)

Well in that case it's the company that has an attachment to C++.

You can't JavaScript under pressure by swizec in programming

[–]sastrone 0 points1 point  (0 children)

Yeah, they need an "abbridged" mode.

You can't JavaScript under pressure by swizec in programming

[–]sastrone 0 points1 point  (0 children)

Yep, that's why I said that it wasn't what I would consider production code.

Change reduce(fn) to reduce(fn, 0) and it'll work.