Better HN
topnewbestaskshowjobs
Log inSign up

SolarNet

1,813 karma · joined Jun 14, 2011 (15y ago) · 1,037 submissions

Submissions

comment 6y ago · link · parent

I think you missed the point. The valley used to be (still is actually) a windswept burning desert half the year. Which is part of what makes its 60's self comparable to Detroit.

comment 6y ago · link · parent

> I actually just mean DARPA

NASA is the obvious next example. They pay for a lot of esoteric stuff that once made they don't actually end up needing - but having paid the startup costs - end up contributing to other fields.

I think FEMA also does similar things though at a much less parallel (but a higher volume).

Most of the "regulate and promote an industry" (a dumb idea for structuring them but I digress) agencies also do this. The NRC for example does a lot of research on storing and recycling nuclear waste, but also on new nuclear technologies.

And other military agencies aren't worth leaving out. The army core of engineers pushes a lot of contractors to deliver unique solutions that end up getting resold, see the concrete barriers in Iraq.

comment 6y ago · link · parent

> The Valley is now the new East Coast people, the new Madison Avenue. Doing a hard startup in the Valley now is like trying to start Intel in 1960 New York. Hard startups are hard enough, without trying to do that.

I think places like Detroit are promising for this. Lots of cheap real-estate, a local history of technical skills, and serious problems to solve (urban farming for example).

Also due to the internet age, developing nations are also pretty promising for their lack of regulation, and extremely cheap location. But have other serious problems (like availability of smart trained talent).

comment 6y ago · link · parent

It's pretty easy, you use an OffsetArray.

Because Julia is composable the shape of the array and the values in it are orthogonal while reaming performant (as discussed by the article). As demonstrated by OffsetArray how one access an array is also orthogonal to those other factors, while remaining performant (it's a zero runtime cost abstraction).

comment 6y ago · link · parent

It's pretty obvious when one gets stonewalled for political reasons when attempting to contribute to a project.

He doesn't need to provide specific examples or explanations, doing so just makes the issue worse. Often these issues involve specific people and specific intuitions that will be hard to interpret without lots of context. It will put the problem people on the defensive and likely cause some sort of outrage or personal attacks, or other unwanted drama.

Being polite yet firm on his own page is the best that can really be done in these situations. It allows the technical problem to be magnified while not focusing on drama.

comment 6y ago · link · parent

> All the additional Common Core techniques seem to require some kind of visual representation,

Yes, because humans are not very logical or abstract thinkers. We are used to visualizing things. It's a lot easier to help students build the abstract and logical thinking required for mathematical literacy if they can fall back on visual representations when they need to.

> Whether it ends up helping students is moot; it helps put money into a lot of lobbyists' pocketbooks.

I mean I value helping students higher. And as you pointed out it can be drawn out.

> IMO the better teaching method is give them one way to get the answer. Once they've mastered that, then start looking at additional ways to reason about it.

Except that that doesn't work well. The point of giving them many different ways to reason about it is so that they can get the core concept and actually learn the concept, rather than just memorizing "the one way".

comment 6y ago · link · parent

Looking at it they don't even load crypt32.dll so unless one has a modified version of firefox, or an external plugin, it seems unlikely they have the vulnerability.

comment 6y ago · link · parent

> First of all, could someone enlighten the non-US readers about what common core is?

A new set of standards for education that are meant to cut across state lines (e.g. California and Texas previously set education standards merely through market volume and being the biggest purchasers). It's mostly fine.

A lot of people are upset that they "changed how math works" but what they really did was introduce a bunch of different ways for students to think about math so they can get a working math literacy. Instead of being a prescriptive standards ("this is how math works") its more descriptive ("here are a dozen ways one could reason about math to get the answer"). The hope is that this will allow students to better pick up and understand more advanced math in the future, while also providing more opportunities for struggling students to "get it" (e.g. because one example worked for them).

> As a programmer I'd love it if the kids could learn some of what I do, and there's plenty of interest, but essentially the article is right. The point isn't to make little workers who can write an insertion sort. If you are educated, and you wind up in a place where that's needed, it won't take you all that long to figure out.

I think the important thing, instead of learning how to program insertion sort, or even to program (except perhaps as an extra class), is learning how to reason about basic computing ideas.

Explaining basic ideas like Turing Completeness (and the related ideas of no way to control how another device does things impacts on sharing always meaning copying is possible), NP Hardness (allowing people to reason about how computers actually work, it can only brute force and do clever math, what it can and can't know), cryptography (trust and privacy), and what software engineering vs. programming is (like, discuss the size of code bases, where bugs come from, programming as vocational skill like cooking or writing that is also useful in other fields, etc).

comment 6y ago · link · parent

Correct me if I am wrong, but it seems like firefox (and maybe chrome) would never have this vulnerability as they use their own cryptography libraries for everything.

comment 6y ago · link · parent

The game specifically does not have this problem. It is in the rules that the word is allowed to be spelled out.

And in point of fact, using puns or sound alike words is forbidden.

comment 6y ago · link · parent

Sure, but the facebook app doesn't do that (or at least no security researchers have noticed it doing that). The point facebook is making is that if they had a backdoor that let them read the messages that it could be used for other purposes.

Consider that right now to intercept end2end encrypted messages (and lets just assume facebook has that) a malicious actor has to get physical possession of your device, which implies that you have to be specifically targeted. With a backdoor malicious actors would then be able to target many other things, including for example facebook's servers, to access those messages (and all of them at once). I think simply avoiding the bad PR of "hackers downloaded everyone's messages between 2017 and now" is most of why they want this stuff end to end encrypted.

comment 7y ago · link · parent

Sure, but a lot of gaming hardware supports this, and it's a hardware issue. If one is customizing their editor to the point of using arbitrary modifier keys, they will probably be willing to buy a custom keyboard.

Also while on the subject 8 key rollover, which is pretty common, is probably more than enough.

comment 7y ago · link · parent

> That being said, the processes described in the article sound like they will arrive at a fairly transparent (in a good sense), publicly-vetted algorithm

Or a family of them for different applications anyway, which increases chances both that a) at least one of them is actually quantum resistant and b) at least one of them will have a flaw exploitable by even classical computers.

comment 7y ago · link · parent

I still want arbitrary modifier keys.

This is a feature of some game engines which allow people to use arbitrary keys (or combinations) as modifier keys. Which allow for less motion of the hand over the keyboard, by simply being able to hit the same keys (with some modifiers) quickly.

comment 7y ago · link · parent

Wasnt this because the dependency for gRPC was moved into bazel itself?

How is this different than most other build systems? You always have to rely on others.

comment 7y ago · link · parent

> Sure, the Sentry of now might never do that - but if/when they're acquired for their patents and licenses that acquiring company may.

And the three year conversion window gives you cover there. It's a question of will the Sentry of the next three years do that.

comment 7y ago · link · parent

I feel like that's a misunderstanding of the issue. Recursive dependencies are orthogonal to the issue of having an ecosystem of dependencies. There is a pattern for recursive dependency management (did you notice the `boost_deps` recursive dependency call?) that is currently fine for production that recursive workspaces will make better.

Also as demonstrated Boost is way easier to include in bazel than make which was the original issue under discussion.

I make a library that depends on boost, here is how you use it:

    git_repository(
        name="foo"
        ...
    )

    load("@foo//:foo/foo.bzl", "foo_deps")
    foo_deps()
magic

comment 7y ago · link · parent

> You'll have just as easy/hard of a time getting Boost installed with Bazel as you would for Make.

> Or publishing an accessible library that depends on Boost.

This is patently false. Here is the bazel dependency for boost (put this in your workspace file):

    git_repository(
        name = "com_github_nelhage_rules_boost",
        commit = "6d6fd834281cb8f8e758dd9ad76df86304bf1869",
        shallow_since = "1543903644 -0800",
        remote = "https://github.com/nelhage/rules_boost",
    )

    load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
    boost_deps()
No other installation necessary. If someone has a C++ compiler and Bazel installed that will allow you to build against Boost deps (e.g. "@boost//:callable_traits"). No downloading boost by hand, no building boost by hand, no managing it's build, bazel does all of that.

Bazel does have a dependency ecosystem, it's based off of hashed versions of publicly available git repos and http archives (and anything else you want really). Which means any code anywhere can be a dependency while still being reproducible. Additionally you can provide local build instructions for the external code, so you don't even need to rely on their build. The better way is to find someone who maintains a BUILD file for a repo (or mirror and maintain it yourself) but still.

comment 7y ago · link · parent

That is categorically not true.

Go compiles down to machine code, it has a stack and heap, it has structures on that stack and heap, and it has data races; those are all of the required components for a use after free. You can have data races compiled by the stock go compiler without the use of unsafe (also, why have race detector tooling if this is false?). It would probably be easier to exploit than here even because one wouldn't even need to bother with the ASLR pointer exfiltration they had to do here.

It may be harder to write exploitable code, but memory safety does not guarantee runtime memory safety. Especially in the face of concurrency.

comment 7y ago · link · parent

GC does not provide memory safety at a system level, it has the same issues as C++ in poorly programmed code once compiled. Also C++ has "memory safety" idioms similar to garbage collection through reference counting and RAII.

Google has a C++ race detector based on the Go one and it did not detect this issue (or was ignored).

Neither of those things you listed reduce the severity of the bug, and both are available in well written C++ code as google tends to do.

comment 7y ago · link · parent

Sure they are political, but that doesn't mean they should fall under the umbrella of what people consider politics in polite conversation or - for example - at work.

To draw an analogy of a sort of inverse example, Brexit is political but is not politics to most people in many cases.

Human rights abuses may be political, but they aren't politics if we are responsible for them, they are unconscionable. It may be politics to discuss what to do about the human rights abuses in other countries. But we are responsible for the murder, torture, and rape of children as a systemic policy.

If that sort of policy is politics then some of the politicians involved are violators of human rights and should be imprisoned.

comment 7y ago · link · parent

> I've seen the simple act of untangling a globbed dependency to the various isolated files reduce the size of an output artifact by gigabytes.

And I don't take issue with what are obviously exceptional cases. What you are describing is not "I put togeather 5 related files" it's like "I globbed a file I wasn't supposed to".

> You're calling literally every language that doesn't use the c-linker an immature language. Which may include c++17-with-modules, though I don't know that for certain.

Uhhhh, I don't think you understand how the feature in question functions. I am simply talking about the -M option family of gcc (and similar commands for other compilers). Which provides a dependency tree for C++ files.

> At least not if you do any fancy precompilation/tree-shaking to your js at compile time.

I think it's actually the opposite. Those are the same tools that provide the reflection features in question (or some other AST parsing library)... then you write a two line lambda and feed that in over an interpreter. Boom list of files.

comment 7y ago · link · parent

> Well sure, but build systems are hard, so that's still success in my book.

Sure, but suggesting the one true way to use the tool is a way that only works inside of google's ecosystem is myopic. I don't actually have complaints with bazel directly. I have issues with the googlers who continue to insist on using it on a way that only works inside of google to others and then act surprised when those people don't use it at all (or use it wildly incorrectly, or complain about the tool being poorly thought out, and so on).

What you suggest runs counter to many of the things that makes Bazel useful for anyone outside of google. I would swap back to CMAKE, by hand makefiles, hell I would use shell scripts, before I use it the way you suggest.

> No, but neither is the language analysis stuff you suggest I build instead

I didn't say you specifically should go build that. I was saying it's possible with bazel, any language that doesn't have those features is not a mature programming language, and if bazel is going to be used with that language it should probably make use of those features (or accept that it's not a mature language). If C++ and javascript can provide reflection than so can whatever bespoke language you are describing.

> and claim I'm incompetent if I don't do.

No I claimed you are incompetent because you claimed you couldn't do you job if a `.lib` file contained the output from more than one source file.

comment 7y ago · link · parent

> But it doesn't actually have that. It has that for 1 very specific usecase, sometimes.

I mean not really, it's there enough that for all practical cases it exists effectively. I would be extremely surprised if that wasn't intentional when any other C++ build tool makes use of it extensively. I would have laughed bazel out of the room if it didn't make use of the fact that nearly all C++ compilers provide nicely formatted lists of the files a given file depends on.

Also it does work for tests perfectly fine.

> Especially when its easier to have tooling automatically manage build files for you, so you don't even have to do it by hand!

And this managing build file tooling is public? Because I am not at all aware of any automatic tools for bazel along those lines.

Which really is my frustration with bazel's google developers, their views are eternally myopic about how other people use their tools (e.g. using C++17 properly means re-writing the whole toolchain from scratch, have fun!). Yet those views are based on a closed and mostly unpublished ecosystem.

Let alone how terrible bazel does with dynamic libraries on windows (each cc_library then outputs a dll! yay!).

I don't think you realize how for anyone outside of Google bazel's tagline might as well be "The best terrible option".

comment 7y ago · link · parent

> No, I just don't have the time or interest in reimplement language analysis tools when I don't need to.

And I don't have the time or interest to do it by hand when bazel already has that.

comment 7y ago · link · parent

Sure I'll just go ahead and stick my fly weight class and it's provider class in two different libraries. And have one of them expose their shared internal header that is not meant for public usage. That's not going to cause any issues at all (sarcasm).

One source file per library and one source file per object is an example of two policies that will conflict here (and I'm not trading code organization for build organization when I can just as easily use the features intended for this situation).

Meanwhile in the real world limiting the accessibility of header files not meant for public use prevents people from depending on things they shouldn't. Organizing libraries on abstraction boundaries regardless of code organization allows for more flexible organization of code (e.g. for readability and documentation). And so on.

This is why these feature exists and why Google projects like both Tensorflow and Skia don't follow the practices you are espousing here pathologically.

> But to be frank, there are parts of my job that I literally would be unable to accomplish if my coworkers did what you suggest.

Then you are incompetent and bad at your job. To be blunt I would recommend firing an engineer who pathologically misused a build tool in ways that encourage hard to read code and difficult to document code, while also making the build bloated and more complicated, all in the name of barely existent (and not at all relevant) performance improvements. And then said they couldn't do their job unless everyone conformed to that myopic build pattern.

It's like what, an extra 4 characters to get the list of code files in a library from a bazel query? What in the world could you possibly be doing that having to iterate over five files rather than one makes your job impossible.

comment 7y ago · link · parent

I mean the best practices on the bazel website include:

> To use fine-grained dependencies to allow parallelism and incrementality.

> To keep dependencies well-encapsulated.

Like if I need 5 source files in a library to keep it well encapsulated, I'm doing that instead of making 5 libraries that are a rat's nest of inter-dependencies. And like the headers and repeating all the deps and specific command line arguments and so on would be unreadable.

comment 7y ago · link · parent

I mean sure, I'm not necessarily disagreeing that many people could do with fewer source files per library. But I also think you are pathologically misusing the tool along the lines of creating an NPM library for the left-pad function.

Bazel has other tools for mitigating excessive test running (like test size/time descriptions and parallel test running) running too many tests has never been a problem I have encountered with even my dozen source file bazel libraries. Bazel also has smart test runners that can split up the tests in a test binary and run it in parallel, and I don't have to write a dozen lines for every C++ library.

1
456
35