Better HN
topnewbestaskshowjobs
Log inSign up

Others

636 karma · joined Jun 30, 2015 (11y ago) · 142 submissions

Student @ The George Washington University, studying CS Does undergraduate research on Operating Systems

[ my public key: https://keybase.io/peach; my proof: https://keybase.io/peach/sigs/vvRgNs-IaMSuxB1De1oulrRMYXN7jdyWf764wxbjo3k ]

Submissions

comment 6y ago · link · parent

I think that globals are not a problem when "you have a good [enough] understanding of the code you're writing." The problem is when code bases grow, references to globals can start to appear in lot of different places, and the exact use of a particular one can be hard to reason about. (Strictly talking about mutable global state here.)

As code bases grow, and developers come and go, eventually no one will have a "good [enough] understanding." Mutable global state is fundamentally hard to reason about since it can be changed at any time by any part of the program. When you first start out the codebase, you can just remember where all the usages are. But eventually that is not a good approach.

I consider the testing stuff orthogonal and muddying the issue. Mutable globals are hard to reason about, therefore they can make code hard to debug. Thus they should be avoided. No need to bring testing into the picture.

comment 6y ago · link · parent

Isn’t O(n) here relative to lines of code? So O(n) * k is just O(n^2)?

comment 7y ago · link · parent

It is qualitatively untrue to say that most academic philosophers are dualists.

https://philpapers.org/surveys/results.pl

(Also modern dualism is much better than spiritualism! There are some good reasons why people believe it.)

comment 7y ago · link · parent

I feel like this is a bit of an oversimplification of a complicated topic. For example, qualia is not a solution, it's a problem! And while Dennett does present an interesting picture (especially in the way he resolves qualia), there is a reason his book is nicknamed "Consciousness Explained Away" -- he simply defines away many of the interesting parts of the problem.

Also, I don't really like the way you're describing these professors of philosophy. These people have spent their lives studying this problem and adjacent topics. Sure you may be absolutely convinced that "things that conflict with our understanding of mechanistic physical reality must be untrue," others believe "what almost all people perceive to be true about their internal experience cannot be dismissed when discussing the nature of that experience." I think this topic is much more debatable than you are making it out to be.

comment 7y ago · link · parent

This is really interesting. As part of my undergrad research I've built `silverfish`, which is a tool that turns WASM binaries into LLVM bytecode. It's currently pretty chained to how I personally compile my C to WASM, but it'd be pretty cool to get it working with this standard!

Here's a link: https://github.com/gwsystems/silverfish -- although the README is pretty sparse, so you'll have to look at the code.

comment 7y ago · link · parent

Is this a bad sign for SpaceX? Is ‘getting leaner’ why they’re really doing this?

comment 8y ago · link · parent

This article is pretty blatant flame bait... Statements without evidence abound, like:

> At the same time, the EU hopes to pass a law that will effectively render the act of carrying reasonably large sums of cash — say, anything above €1,000 — across borders enough to get it confiscated.

Or even:

> No, the measures are aimed at average Joes and ordinary Janes, and the main objective is to further dampen their ability or willingness to use or carry cash.

Statements that are intended only to provoke an emotional reaction have no place in responsible writing.

comment 9y ago · link · parent

See this answer on the mathematics stack exchange (it's really a book excerpt, but I don't know where else to find it.) https://math.stackexchange.com/a/5390/220797

comment 9y ago · link · parent

I meant "officially supported by JetBrains" (https://intellij-rust.github.io/2017/07/31/changelog-47.html)

comment 9y ago · link · parent

This is a good point. But to be super pedantic, there isn't a size of infinity large enough to describe how many sizes of infinity there are.

comment 9y ago · link · parent

This is tangential, but the IntelliJ Rust plugin is fantastic, and just got officially supported! (http://intellij-rust.github.io)

comment 9y ago · link · parent

There is a list here: https://web.archive.org/web/20170821212745/https://github.co...

comment 9y ago · link · parent

But Erlang now has strong competition on BEAM. Sure, none of those languages will be replaced, but surely some will lose market share to up and coming languages.

comment 9y ago · link · parent

Here is what they say in the introduction of the second paper:

Bidirectional propagation of type information allows the types of parameters of anonymous functions to be inferred. When an anonymous function appears as an argument to another function, the expected domain type is used as the expected type for the anonymous abstraction, allowing the type annotations on its parameters to be omitted. A similar, but even simpler, technique infers type annotations on local variable bindings.

From this I gather it means syntactically bidirectional. (But I don't understand this really, so someone should correct me :P)

comment 9y ago · link · parent

If I'm understanding what you want correctly, Rust kinda will get that once the `!` type is stable/used in type inference correctly.

comment 9y ago · link · parent

I'm interested in what they said about reducing the compiler to 4 passes. Dotty takes a really interesting approach to this with 'miniphases' (https://infoscience.epfl.ch/record/228518/files/paper.pdf). I think it'll be interesting to compare these two methods when both compilers are production ready.

comment 9y ago · link · parent

This title is so misleading... It makes it sound like this is a button for cops to get into a phone, but it's really a button you press to turn off Touch ID until a password is entered.

comment 9y ago · link · parent

In American etiquette, not being rude and pedantic is encouraged ;)

comment 9y ago · link · parent

Is it true that all structural type systems are unsound? I was under the impression this is a typescript specific problem.

comment 9y ago · link · parent

The short wait times are because of the higher costs/smaller number of people having access to MRIs. It's a tradeoff, and honestly I don't think it's worth it.

comment 9y ago · link · parent

The problem is gender roles. Women are taught by society to think that, as women, they should go into certain careers. These careers, like teaching, tend to be lower paid than the careers men are encouraged to go into.

comment 9y ago · link · parent

Not to be rude, but why do you think that contributions to in-house/closed-source projects should count as contributions to open source? By definition, if you contribute to an open source project, you should be able to point to the public code you wrote. What you're describing is basically previous work experience (which is already on your resume).

comment 9y ago · link · parent

Chrome has that first feature. Right click on a tab, and click "Bookmark All Tabs..."

comment 9y ago · link · parent

Can you even avoid data loss with partitions in a AP system like RabbitMQ?

comment 9y ago · link · parent

There really is a reason though, and it's described in one of the sibling comments to your original comment. Why would you assume that the developers are just being "lazy"? Do you really think they would just delete the functions for no reason?

comment 9y ago · link · parent

Scala has its problems, but it is not anywhere near as clumsy as Java. Where Scala falls flat is implicitness, an overabundance of features, and extreamly dense syntax for very high levels of abstraction. Its syntax is actually quite nice, with relatively few warts. I find it a joy to write, and very fluid.

comment 9y ago · link · parent

That last part feels a little aggressive in this case... The Wikipedia article he linked to is actually pretty interesting, relevant, and appropriate. Sure the presentation is tongue and cheek, but so are half of the comments on this site...

comment 9y ago · link · parent

Maybe what you're saying is true, but that simply isn't the reality we live in. JIRA is a great comparison point as it produces a lot of value for a team. Do you really think your tool provides 10x more value than JIRA for a team? Would you recommend a team buy your system over a quality issue tracker if they don't have one?
12345