1,813 karma · joined Jun 14, 2011 (15y ago) · 1,037 submissions
comment 6y ago · link · parent
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
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
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
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
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
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
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
Also while on the subject 8 key rollover, which is pretty common, is probably more than enough.
comment 7y ago · link · parent
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
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
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()
magiccomment 7y ago · link · parent
> 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
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
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
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
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
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
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
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
> 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
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.