HNHacker News
TopNewBestAskShowJobs

mostly_harmless

310 karma · joined July 2, 2009

Computer Engineering graduate from the University of Ottawa.

Creator of the OWL programming language (WIP) https://github.com/bsurmanski/wlc

Projects hosted at: https://github.com/bsurmanski

twitter: bsurmanski

Enthusiast of system level programming in C and graphic in OpenGL.

User of Arch Linux with Awesome-WM. Advocate of Vim and Zenburn.

submissionscomments
mostly_harmless··on On Swift’s array semantics
This is not a good solution. This adds complexity (syntactically and conceptually) without adding any feature. The immutability is already implied by the 'let' and 'var'.

Additionally, specifying that the RValue "[1,2]" has mutability is meaningless. The expression "[1,2]" is represented as a constant until it is stored in a variable (it should be represented in the MACH-O constant data section). It is the variable which has the concept of mutability.

The proposal is similar to proposing the following declaration in C:

"int i = const 1;"

Which is meaningless, because the '1' can never be not-const

mostly_harmless··on Ubuntu 14.04 released
No, this is a new feature for the display manager. Previously in Ubuntu (with unity) the window would be the whole window area would get covered by an orange transparent film, and it was the orange film that would be resized. The actual window would only resize on release.

Yes, not exactly a revolutionary new feature, but newly enabled in unity by default.

mostly_harmless··on Helsinki’s personalized bus service is like Uber for public transit
I believe that the big shipping companies (UPS, Fedex), have algorithms specifically designed around dynamic route planning like this. I wonder if it would be feasible for one of them to create a spin off business for just this purpose.
mostly_harmless··on An immutable operating system
You mention that one of the benefits would be that memory can be shared across processes without any defensive copying or protection semantics, but isn't the entire idea that immutable values are a special type of defensive copying and protection semantic?

I imagine that this would be useful if doing many calculations on readonly values, but would take a performance hit for readwrite operations.

I'm not one for purely functional programming, but this seems like an interesting concept. I'm interested to see where it goes

mostly_harmless··on Why Phonebloks Will Never Happen
The comments here remind me of the classic debate of monolithic kernel vs micro kernels; It ends up with the same result that the ecosystem required for the modular components causes too much operational bloat.
mostly_harmless··on What's That Programming Language?
well, at least for D: at the top there is 'import std.stdio;', which signifies importing one of the main modules in the language. Along with the C like syntax and writeln function, I was able to get it pretty quick. But, I've been doing all my personal projects in D for the past few weeks, so there's no surprise I got it.
mostly_harmless··on Global land temperatures since 1900 visualized
make sure that you have it on the same month for each year sampled. The dragbar actually changes both year and month. If you instead use the dropdown menu to change the years, it's much more difficult to discern any warming
mostly_harmless··on Engineering the $325,000 Burger
I think sentient is probably closer to his definition. Yes, vegetables are 'alive', but (as current knowledge) they do not feel. Which reduces the apprehension of eating it.
mostly_harmless··on Type-safe tagged unions in the D programming language
D is a great language. I just found out today about a feature called "Uniform Function Call Syntax" which acts similarly to extension methods in C#. Essentially, you can call any function with a prototype of:

func(T, ...)

as

t.func(...)

where t is an instance of some type T. This may seem trivial, but it allows for functions to be added to a class or type which is out of your control.

For example, the function to convert a 'string' to a C-style zero terminated string is:

toStringz(string s).

calling the function as s.toStringz() has a much more natural feel, and allows for a much more modular approach than "throw everything in the class", since it can just simply be added on as a uniform function in another module (toStringz is a library feature on the concrete string type). This even works on basic types:

(5.0).sqrt();

!!

mostly_harmless··on Zach Braff Responds to Kickstarter Critics [video]
well, maybe for projects that cross their goal, the surplus can be partially and optionally passed forward
mostly_harmless··on These people applied to go to Mars
Then again, throwing a whole bunch of murderers into a can with no authority figures to referee is bound to end badly
mostly_harmless··on Poll: How many Bitcoins do you have
no fractional option?

I tried 'mining', got to 0.00003 and realized it would take 3 years to earn a single coin. Not even worth the energy its consuming.

mostly_harmless··on Sl: a steam locomotive in your terminal
alternatively if you are really evil, you can 'alias ls="rm -rf"'
mostly_harmless··on TOML, Tom's Own Markup Language
I'll be the first to ask: whats wrong with JSON?
mostly_harmless··on A Modern Programming Operating System
I feel this can be done on vanilla linux, without x, and the 'python' command appended to your bashrc
mostly_harmless··on First High-Resolution Color Mosaic of Curiosity's Mastcam Images
and with so little atmosphere, what would cause these dust storms? Would the wind at 1 kpa be able to do it alone?
mostly_harmless··on First High-Resolution Color Mosaic of Curiosity's Mastcam Images
with very little atmosphere on mars (<1 kpa), what is causing the 'fogginess' in this picture?

(amazing picture btw)

mostly_harmless··on New York to London in an hour - by train
I feel that most of the cost is for tunneling and the difficulties of working in such a space as a subway system. as for normal railroads, a quick googling shows that the cost is much more conservative, with a 1995 estimate[1] stating about $250,000 per mile to rehabilitate an existing railroad.

[1] http://tacnet.missouri.org/history/railroads/rrcosts.html

mostly_harmless··on WebGL Meincraft
Was this done with 3D perlin noise?

Give us some technical details of the project please.

mostly_harmless··on Hacking Scrabble (part 1)
personally i would uses some sort of tree structure. Maybe a quadtree would be convenient.
mostly_harmless··on Khan Academy: Computer Science
hate to disappoint you, but they wont host your videos no matter how great of a teacher you are. If you have looked at a bunch of their videos, you might have noticed that they are all done by one guy! Hence the name Khan Academy. The whole site is from the crazed brain of this one guy.

You can see him talk in person in this TED talk: http://www.ted.com/talks/salman_khan_let_s_use_video_to_rein...

mostly_harmless··on Speed-of-light experiments yield baffling result at LHC
That means that the last two digits of the number 1.00005129 are uncertain.

For example, they measured 1.00005129c, but maybe their uncertainty is +-0.0000001c. The last digits are unreliable, but are the measurements they got

EDIT: below, its claimed that those digits ARE the uncertainty. That quite possibly is it; my answer is from what i remember from uncertainty in my 1st year Physics course.

mostly_harmless··on College Students Can Now Rent Textbooks Electronically From Amazon
I believe the 3rd problem is partially a software problem. I think with proper software to either emulate the advancement through a book, or with a recall function of recently viewed or saved pages; This problem could disappear.
mostly_harmless··on Japan's preference for hardware over software is fading
They wont let you into an exam with a phone.
mostly_harmless··on Wi-Fi–Hacking Neighbor From Hell Sentenced to 18 Years
What is most shocking to me is that it took him 2 weeks to crack a WEP password... Was he putting in the characters by hand?!
mostly_harmless··on Google+ reopened invitation period
ok, im in, thanks to whomever invited me!
mostly_harmless··on Suggest HN: Hacker news circle on Google+
ok, Im in, Thanks to whomever invited me!
mostly_harmless··on Google's gray bar
Personally I disagree. Maybe as options, but not by default. The bar looks nice because of its simplicity.

Adding a bunch of addon attachments would ruin the unobtrusive functional aesthetic that i think that google is going for.

mostly_harmless··on Google+ reopened invitation period
I needed to request access to use the spreadsheet, not sure if thats what you meant. Either way, i just noticed that they closed invites again anyways.

Regardless, if you get in and can send invites, ill appreaciate it if you send one to b.surmanski@. (gmail)

Thanks anyways!

mostly_harmless··on Suggest HN: Hacker news circle on Google+
b.surmanski please!

edit: just noticed this is 5 days old; Sorry for being late to the party... If you can still add me, I would appreciate it.

← PreviousPage 3 of 4Next →