News for hackers. Stuff that matters.

thelambentonion

> and his comment history only adds to the doubt

for others following along: the comment history is mostly talking about how software engineering is dead because AI is real this time with a few diversions to fixate on how overpriced university pedigrees are.

Re:Tesla Faces U.S. Criminal Probe Over Musk Statements on Tuesday September 18, 2018 @02:03PM (#18017641)
Emphatically yes; Musk being the current head of Tesla and SpaceX has been the defining characteristic in preventing me from seeking work at either company. I'd be sending out applications to both if he announced his departure (or even a long sabbatical).

I believe very much in the missions that Tesla and SpaceX romanticize, but I cannot reconcile those with Musk's public behavior. Calling people pedophiles on the internet, trying to suppress unionization efforts, and seemingly lying about going private entirely on a whim does not pass ethical muster for me.

Re:Dear Amazon, We Picked Your New Headquarters for You on Saturday September 09, 2017 @10:52PM (#15210313)
I'd really like to see something happen in Grand Rapids to help put it on the tech job map. My brief time working there was a _ton_ of fun, and I really hope that I'll be able to return at some point, either as a remote worker or (hopefully) for someone local.
Not GP, but a listing of groups using PostgREST in production can be found here: https://postgrest.com/en/v4.1/intro.html#in-production
As a quick aside, your source also advocates for free-market healthcare and rejects national healthcare legislation and Medicare under the guise of individual choice.

It has _also_ published such gems as "The Scientific Case against the Global Climate Treaty" and “New Perspectives in Climate Change: What the EPA Isn't Telling Us”.

In light of that, I'll take their advocacy with a grain of salt.

---

On topic, while I can't comment on the EMA specifically, during my (extremely) brief period working alongside a medical device manufacturer, fear of FDA was oftentimes the primary motivating factor in keeping them honest.

While that's entirely anecdotal, when there are _significant_ financial incentives on the table people's morals tend to get more than a little flexible. Pharmaceuticals represent an area with _significant_ financial incentives, and, while I do agree that the FDA takes more time than is strictly necessary, it's a little fallacious to say they "kill vastly more people than they save" through regulation.

Shotwell's response is in the best interests of her company, but SpaceX is (as well as Boeing) woefully behind on a reasonable timeline to reach human-rated flight for both their rocket and crew module.

We should have learned from both the early Apollo program, and the Shuttle failures, that human lives shouldn't be treated as expendable capital in this industry.

Both SpaceX's current announcement, and the US Gov's desire to put humans on the first flight SLS flight, are deeply troubling in that regard.

Launch Abort is a system that should _never_ have to be activated. If you use Launch Abort, the series of failures preceding it was so catastrophic that you had no alternative to avoid loss of life.
Re:Introducing PureScript Erlang back end on Thursday February 02, 2017 @11:14PM (#13557618)
> having a slow and stable industry base that favors backwards compatibility, stability and performance

I feel as if GHC addresses backwards compatibility and stability fairly well with new language features being gated by language pragmas. [1]

I don't write much Haskell in production, and what I do write isn't very performance intensive, but GHC's been pretty impressive vs. other compilers with languages at a similar level of abstraction.

[1] Foldable/Traversable in Prelude was a relatively large breaking change, and it was handled in a way that minimized the impact to existing code while still advancing the language.

Re:SpaceX receives FAA approval for return to flight [pdf] on Friday January 06, 2017 @05:09PM (#13340743)
Big planes have an order of magnitude lower complexity than a rocket of the Falcon 9's caliber. That's a somewhat subjective statement, I'm sure, but even if it weren't the case there's so much variation between each Falcon 9 I'd be surprised if they could crank that many out with any reasonable amount of QA.
Expanding on this a bit, the concept that Hoogle embodies is extremely powerful and I wish it were more widely available in other languages.

In Haskell's case, due to the particulars of the type system, something like Hoogle is _relatively_ straightforward. More importantly, the same system that makes Hoogle possible also enables safe code exploration and reuse.

Eschewing simpler examples for something a little more production-y, I dug up something that came about after a conversation a few weeks back:

    ( MonadIO m
    , PersistEntity val
    , PersistEntityBackend val ~ SqlBackend
    ) => m [Entity val]
Line by line, the signature (roughly) encodes the following [1]:

1) The context `m` must provide the ability to perform I/O

2) `val` must have some representation understandable by the Persistent ORM [2]

3) `val` must have some backend within the Persistent ORM [2] that satisfies the `SqlBackend` constraint

4) The function provides a list of `Entity val`, where `Entity` is a Persistent-specific implementation detail, within some context `m`.

IMO, this is incredibly useful for searchability because it encodes everything I said above (and more precisely, at that!). Further, these terms can be pulled apart, rearranged, and composed to form more, or less, specific concepts in a query.

This is _also_ useful for code reuse, as seeing these specifications can help identify points of repetition, and encourage higher levels of abstraction.

Apologies if this got a little away from the heart of the discussion and turned into a bit of a brain-dump towards the end :)

[1] I'm not using the most precise wording here, mostly due to my own incomplete understanding of things

[2] Persistent isn't exactly an ORM, but it's the closest analogy I can think of given how comprehensive it is

Re:PureScript on Friday December 09, 2016 @10:51PM (#13143923)
IMO, PureScript has some very interesting advantages in comparison to other functional languages targeting JavaScript.

It has a very strong type system, a compiler that can produce optimized and human readable JavaScript, and dead simple FFI. It _also_ doesn't rely on a runtime like Elm or GHCJS do, so the resulting code size is typically much smaller.

It's also been used to build some really interesting and unique takes on the frontend design problem (cf. Pux [0] and Halogen [1]).

[0] https://github.com/alexmingoia/purescript-pux

[1] https://github.com/slamdata/purescript-halogen

Re:FAA: Reboot 787 power once in a while on Saturday December 03, 2016 @04:24PM (#13097562)
The software on these planes is written by software engineering companies. This is less of an issue of hardware manufacturers doing software wrong, and more of an issue with how monumentally complex, high assurance systems are currently implemented in software.
Re:Standardized Ladder of Functional Programming [pdf] on Tuesday November 29, 2016 @11:33PM (#13068516)
Two potential counter-examples to your productive software claim:

Opaleye [0], an Arrow-based [1] DSL for Postgres SQL that allows the user to create type-safe, composable, and (generally) optimally fast SQL queries.

Halogen [2], a type-safe frontend framework for PureScript [3] that models view component interaction as an algebraic datatype containing query actions (among other fairly advanced concepts).

If someone is used to a certain level of abstraction, then the higher levels might seem unnecessary until they invest the time into learning them. The only thing unique to functional programming is that it has inherited a lot of terms from theory (profunctor, monad, algebra) rather than inventing friendlier ones.

[0] https://github.com/tomjaguarpaw/haskell-opaleye

[1] https://www.haskell.org/arrows/

[2] https://github.com/slamdata/purescript-halogen

[3] http://www.purescript.org

Re:Cards Against Humanity is digging a hole in the earth on Saturday November 26, 2016 @12:38PM (#13044835)
I'd say they have very large advertising budgets for a fairly bad reason: advertisers for the most part throw shit at the wall to see what sticks.

There's some science, but the advertising here is a perfect example that many people have no idea how to spend their ad money in a way that meaningfully engages some target audience.

Re:Bruce Schneier: 'The Internet Era of Fun and Games Is Over' on Wednesday November 23, 2016 @09:34PM (#13027557)
Regarding secure software, there are at least some efforts to make writing formally verified software more approachable.

The seL4 project has produced a formally verified microkernel, open sourced along with end-to-end proofs of correctness [0].

On the web front, Project Everest [1] is attempting to produce a full, verified HTTPS stack. The miTLS sub-project has made good headway in providing development and reference implementations of 'safe' TLS [2].

These are only a few projects, but imo they're a huge step in the right direction for producing software solutions that have a higher level of engineering rigor.

[0] https://wiki.sel4.systems/FrequentlyAskedQuestions

[1] https://project-everest.github.io

[2] n.b. I'm not crypto-savvy, so I can't comment on what is or isn't 'safe' as any more than an interested layperson.

https://github.com/TheBB/spaceline/blob/master/README.org

Scroll down for nyan mode, if you don't mind using an external package. :)

Re:Elon Musk SpaceX AMA on Monday October 24, 2016 @10:39AM (#12779176)
Ah yes; I sold out not-too-long-ago to go work in commercial software :)

I suppose it might be worth it to keep including the disclaimer, as it'a possible I may be biased in some way that I'm not consciously aware of. Although it bears mentioning that if my former employer made half of SpaceX's promises, I'd be twice as skeptical! So a point in their favor.

I hope I'm not coming off as too much of an asshole in these threads; I really do want to see commercial space flight grow and succeed going forward. It's just that my experience and the conversations I've had with current and former SpaceX employees gives me an unhealthy dose of skepticism regarding a lot of their claims.

Re:Elon Musk SpaceX AMA on Sunday October 23, 2016 @08:28PM (#12776106)
> The AMA, and even that specific question was all about the engineering challenges...

Re: that specific question, I may just have a different view of what constitutes a question on engineering challenges.

That AMA is of exceptional caliber, however, and there are definitely some gems to be found (see [0] and [1], in particular).

The fuel tank and rocket tech represent novel advances in rocket tech that are as-yet untested, afaik. A scaled-down test stand prototype and a prototype of a composite tank are certainly worthy of praise, but they still require an enormous amount of work to turn into a functioning product.

I'd also like to qualify some of my statements here: I don't think _any_ of these challenges are insurmountable. However I think that it would be impossible for all of them to be addressed on the time scale that Musk proposes, for the amount of money he has stated, with the manpower that SpaceX possesses.

[0] https://www.reddit.com/r/spacex/comments/590wi9/i_am_elon_mu...

[1] https://www.reddit.com/r/spacex/comments/590wi9/i_am_elon_mu...

Re:Elon Musk SpaceX AMA on Sunday October 23, 2016 @07:59PM (#12776027)
> "The radiation thing is often brought up, but I think it’s not too big of a deal"

AFAIK no one else within the community would think of saying that.

I'm sure that there are people within SpaceX studying this and taking it into consideration, but my concern is mostly with Musk's cavalier attitude towards individual safety.

Re:Elon Musk SpaceX AMA on Sunday October 23, 2016 @07:47PM (#12775984)
I personally don't think that I have a lack of understanding of what Musk has claimed or SpaceX has demonstrated, and I'm incredibly skeptical of their ability to safely deliver on their promises within his proposed timeline.

I'd quite like to be proven wrong, spaceflight is an area very near and dear to my heart, but from my point of view Musk's reach appears to vastly exceed his grasp.

EDIT: I did enjoy the AMA though, as it provided some interesting insight into their plans for all of this.

Re:Elon Musk SpaceX AMA on Sunday October 23, 2016 @07:15PM (#12775891)
> ...the radiation exposure during flight which would be the worse is equivalent to smoking for two years and dropping it...

Please provide a citation for this. As far as I'm aware, we simply have no idea the kinds of effects that radiation encountered during the flight would have on humans.

The sample size for human exposure to space-based radiation is incredibly small (limited to just the astronauts on the ISS, and even then that is protected by much of the Earth's magnetosphere).

Re:Elon Musk SpaceX AMA on Sunday October 23, 2016 @07:09PM (#12775880)
I'd encourage everyone reading the AMA to take a lot of what Musk is saying with a grain of salt. The Interplanetary Transport System (ITS) is a wildly ambitious project that is attempting to accomplish more things in a shorter period of time than the Apollo program (and on a substantially smaller budget to boot).

Check out Robert Zubrin's article, which presents a much more salient critique of SpaceX's current plans than I could [0].

[0] http://www.thenewatlantis.com/publications/colonizing-mars

Re:Elon Musk SpaceX AMA on Sunday October 23, 2016 @06:42PM (#12775785)
I would say that the leaders of the most powerful nations on Earth are a little more grounded in reality than Musk in this regard. Glass domes and underground Martian tunnels make for some very interesting science fiction, but I'm concerned about the engineering challenges that he seems to be ignoring in favor of his grand statements of intent.

To pick a specific example, he seems to have very little concern for radiation shielding both during the trip to Mars or on the Martian surface. Both of these present incredibly harsh radiation environments for humans, and we need to develop solutions before we even consider sending explorers, let alone colonists.

Servant is still _very_ rough around the edges, imo. I like it a lot for mocking APIs [0], but I'd be wary about using it in production for anything other than a small service.

Right now I'm keeping an eye on servant-auth [1] and the GHCJS implementation of servant-client [2], as they're both extremely compelling.

[0] Recently, I needed to test something against a work-in-progress API. I wrote out a rough type-level specification and had servant-quickcheck generate arbitrary data. When I needed to test more concrete data, it was trivial to incrementally move endpoints over to concretely defined stubs.

[1] https://github.com/plow-technologies/servant-auth

[2] https://github.com/LumiGuide/servant/tree/client-ghcjs

Having just started a project in Swift due to some limitations with 'native' JS frameworks, I can honestly say I have _no_ idea why someone would use anything else unless they had a burning need for code reuse with Android.[0]

The quality of the language and documentation has been superb, and I feel more confident in my code than I did with another project written with JS bindings.

[0] I suppose the argument can be made that web-view components could be recycled with minimal effort, but that sounds like it'd be a worse story for end-users more often than not.

Re:Do the math: too much calculus? (2012) on Wednesday October 19, 2016 @10:38PM (#12749444)
> Math should be motivated by science and modeling, otherwise it's just an exercise in diddling numbers.

I like a lot of what you said, but I do disagree with that point. Immediate application of mathematical concepts may be gratifying, but making it the _only_ motivating factor behind maths can result in students who conflate the underlying machinery with its application [1].

Taking a pure maths course in undergrad with related subject matter prior to one of my Controls classes made the class substantially easier to understand. Learning the abstract concepts beforehand let me see the common applications more quickly than others.

I think the biggest difference is that when I learned some Calculus through Physics, it was a little more difficult to go from a concrete basis to a more general one. My understanding ended up being based on analogies to other concepts until I went back and covered the theory again.

[1] This is all my own opinion, I'm not an educator so the most I can do is pull from my own pedagogical experience :)

Re:What's new in CS Research? on Friday October 14, 2016 @12:00AM (#12706051)
It depends on what the language developers are after, I suppose. Haskell's actually not that new [1], and its goal has been to both act both as an academic language for pushing the boundaries of CS research and as a foundation for more reliable practical programs.

Idris is an experimental language exploring the practical benefits of dependent types, and providing a modular backend for code generation (e.g. it can emit either C or Javascript currently).

I wouldn't say that Haskell is somehow better at being translated to assembly than, say, C. The real power is in the ability for the language to express the author's intent, and for that intent to be reflected in the resultant machine instructions. It's something that's surprisingly difficult to do, and part of why there are so many languages with different syntax and semantics [2].

One way to try and guarantee that the author's intent is translated accurately is to try and add constraints in the form of a strong type system (e.g. Haskell). I think this is a rather neat idea, and at the very least worthy of some time skimming through papers or listening to talks.

As software gets more and more complex, more people are finding that these ideas are useful in non-academic settings. I think my favorite example is Galois' SMACCMpilot project, which seeks to write secure, verified autopilot code in a Haskell DSL [3].

[1] First appeared around 1990

[2] n.b. I'm not a subject matter expert, just an interested hobbyist

[3] http://smaccmpilot.org

[*] Addendum: CS isn't my original field of education, so take all of these opinions with a heaping spoonful of salt. Corrections and clarifications to any of the above would be appreciated!

Re:What's new in CS Research? on Thursday October 13, 2016 @11:44PM (#12706006)
I actually had a conversation about this earlier today, but overall I don't think I mind a whole lot.

Chasing the next popular bit of research 10 years in advance is a bit of a fool's errand, so the best you can do is follow along with fields that you think are personally interesting.

For a more serious answer, I do think that FPGAs are going to become much more applicable to general-purpose-computing soon. Most of the tooling and language support around them is pretty archaic, and tools like CλaSH [1] make development much more friendly.

[1] http://www.clash-lang.org

Re:What's new in CS Research? on Thursday October 13, 2016 @10:42PM (#12705828)
With the caveat that I don't really know what the next hot thing is going to be [1], I've found dependently typed programming to be particularly interesting (Idris being one of the more practical implementations) [2].

The Glasgow Haskell Compiler is also ostensibly a long-lived, continuously updating research project. Simon Peyton Jones summarized the State of GHC recently [3].

[1] And I try not to worry about it too much :)

[2] https://eb.host.cs.st-andrews.ac.uk/drafts/impldtp.pdf

[3] https://www.youtube.com/watch?v=dIxCHQEIGps

[*] Another paper that looks cool, but I can't really make head-or-tail of: http://okmij.org/ftp/Haskell/extensible/more.pdf

Older »