Better HN
topnewbestaskshowjobs
Log inSign up

mostly_harmless

310 karma · joined Jul 2, 2009 (17y ago) · 111 submissions

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.

Submissions

comment 12y ago · link · parent

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

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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.

comment 12y ago · link · parent

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

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

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();

!!

comment 13y ago · link · parent

well, maybe for projects that cross their goal, the surplus can be partially and optionally passed forward

comment 13y ago · link · parent

Then again, throwing a whole bunch of murderers into a can with no authority figures to referee is bound to end badly

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

alternatively if you are really evil, you can 'alias ls="rm -rf"'

comment 13y ago · link · parent

I'll be the first to ask: whats wrong with JSON?

comment 13y ago · link · parent

I feel this can be done on vanilla linux, without x, and the 'python' command appended to your bashrc

comment 14y ago · link · parent

and with so little atmosphere, what would cause these dust storms? Would the wind at 1 kpa be able to do it alone?

comment 14y ago · link · parent

with very little atmosphere on mars (<1 kpa), what is causing the 'fogginess' in this picture?

(amazing picture btw)

comment 14y ago · link · parent

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

comment 14y ago · link · parent

Was this done with 3D perlin noise?

Give us some technical details of the project please.

comment 14y ago · link · parent

personally i would uses some sort of tree structure. Maybe a quadtree would be convenient.

comment 15y ago · link · parent

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...

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

They wont let you into an exam with a phone.

comment 15y ago · link · parent

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?!

comment 15y ago · link · parent

ok, im in, thanks to whomever invited me!

comment 15y ago · link · parent

ok, Im in, Thanks to whomever invited me!

comment 15y ago · link · parent

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.

comment 15y ago · link · parent

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!

1234