Better HN
topnewbestaskshowjobs
Log inSign up

guerrilla

9,807 karma · joined Aug 10, 2013 (13y ago) · 5,135 submissions

Submissions

comment 6y ago · link · parent

> Julia is dynamically typed

comment 6y ago · link · parent

I imagine there are different motivations for different people.

Some people may just want to use rust to re-implement something that exists in order to hone their skills or just for fun. Having a reference implementation makes that more productive.

Other people may think that it would simply be better if the project were implemented in rust. This is the case for some C projects, where a lot of control is still necessary but the project would benefit from the safety and productivity gains of rust. See the example of QEMU yesterday. It is an absolute pain in the ass to do things well in C. Correct programs end up being heaps of boilerplate and tests. I'd love to escape C but haven't been able to until Rust.

Maybe some people just want to showcase that Rust can do the thing. I think that's fine. It might help in adoption. It might cause better libraries to be created that are actually used.

For me, rust is the first real competitor in the systems programming market. There are hundreds of languages for application programming. I prefer Haskell, Java and JS for those but I've never found a replacement for C in the low-level domain. C++ just never cut it for me and the alternatives never really caught on. For me, Rust brings a lot of what we learned from Haskell and ML to C without sacrificing the low-level control. If I wanted to get better at Rust, I'd probably also implement something that exists just so I could check my work. If I was to re-implement some of the low-level projects that I've worked on, I'd also probably do that in Rust.

I'm getting really tired of comments like this though. Why does it bother you so much? Are you trying to communicate that you'd prefer this person be doing something else with their time? What does that even mean?

comment 6y ago · link · parent

Indeed and consequently "your experts failed you" is also ahistorical. Maybe some talking heads did but not experts in general.

The better questions then would be "why didn't people listen? and "why didn't the general public see it coming?" It would be useful to understand these well to prevent future occurrences and even possibly to escape the current situation and future unfolding.

comment 6y ago · link · parent

Class is determined by how much property you own and how much power you have. You're talking about culture and relationships. Many millionaires have poor freinds and that doesn't change the class of either.

Just "lol" to the rest.

comment 6y ago · link · parent

a) Once they get elected, they're no longer working class. You're making the same mistake Lenin's followers did but on a smaller scale. b) They can manipulate an entrte country of strangers to get elected but not the people over whom they have an information advantage and other more direct sources of power (including rewards)? Think it through a bit more.

comment 6y ago · link · parent

Swedish naiveté always amazes me.

comment 6y ago · link · parent

> It will (initially at least) only affect sites where there is more than one union who are competing for the same category of members, which is not all that common.

It is abstractly a huge deal and practically a huge deal for Hamnen, SAC, Brandmännens Riksförbund and other alternative unions because it excludes all competition among unions and channels all reform through the internal political workings of those unions like LO/Kommunal. As the a laywer in Arbetaren explained (and others have explained elsewhere) previously, it allows for company (i.e. "yellow") unions which is a realistic problem now considering Amazon is involved.

comment 6y ago · link · parent

> That is, unless you can gather a political majority behind a major upheaval of the current law, wh

But hasn't this already happened with recent reforms regarding the limiting of strike rights [1] and current LAS negotiations.

[1] https://www.arbetaren.se/2019/06/19/riksdagen-klubbade-inskr...

comment 6y ago · link · parent

Assuming that local production reduces costs, the question seems to become whether they can leverage demand to break the unions or not. This comes from the two further assumptions that they don't have any other leverage to do so (outside of corruption) and even though the benefit of satsifying the market presumably outststrips the cost, they will do everything they can to reduce costs anyway.

Am I missing anything?

I'll continue supporting the local competition (for books and media) in any case.

comment 6y ago · link · parent

Yeah, you're probably right especially considering rust. Maybe they can crowdfund it. I think a lot of us and many others using OSS would pitch in to see that happen.

comment 6y ago · link · parent

> Really seems like Mozilla should be turned into a CO-OP or something.

I wonder if the people being fired would be sufficiently equipped to do that themselves. Though losing access to the branding may not be workable.

comment 6y ago · link · parent

I'm with you (in a slightly less over the top style.) Bootlickers like the author of this blog are why everything is riddled with functionality and security bugs.

comment 6y ago · link · parent

One of the theories I heard recently was that life could arise anywhere there are energy gradients, conditions for forming bubbles and the right substrates. I'm not sure how accepted that is (heard it in a popsci lecture) but it seems plausible.

comment 6y ago · link · parent

I only found Setzers slides on this yesterday after trying to figure this out as I haven't been keeping up on Agda. So this is basically "copattern" matching on record projections. Records/structs are then the dual of variants/emums where we name and type the the destructors instead of the constructors. Thank you for confirming it. Agda's syntax then is meant to mimick descendants of C a little bit with that dot.

I'm still fuzzy but it seems like this can be directly translated into an underlying term rewriting system and would just work almost unmodified and all we've done is opened a second route for type checking terms based on orthogonal conditions? I'll have a look at the nested copatters paper as that probably answers my question. Thank for the resources. They seem much clearer than my search results. I wonder why people don't start explaining codata with records instead of coNats and coLists. The latter was confusing.

comment 6y ago · link · parent

While we're on this subject, if we were to keep extending the syntax, is this what introProduct would have to look like?

        data Coproduct a b where
            InjL :: a -> Coproduct a b
            InjR :: b -> Coproduct a b

        elimCoproduct :: (a -> c) -> (b -> c) -> Coproduct a b -> c
        elimCoproduct f g (InjL x) = f x
        elimCoproduct f g (InjR y) = g y

        codata Product a b where
            ProjL :: Product a b -> a
            ProjR :: Product a b -> b

        introProduct :: (c -> a) -> (c -> b) -> c -> Product a b
        ProjL (introProduct f g z) = f z
        ProjR (introProduct f g z) = g z

4606.

Gilbert Strang's Highlights of Calculus Lectures (2010) [video](youtube.com ↗)

3 points · by guerrilla · 6y ago · 1 comment

comment 6y ago · link · parent

This is right. I was comparing Idris (the only existing implementation rather than its core type theory) to C++ (which has many implementations.) I think the situation may have be similar for Epigram as its core theory was very expressive but eliminators were only elaborated for strictly positive types or something like that (I might be wrong about this.)

My point was just that the situation with C++ is worse than it has to be.

comment 6y ago · link · parent

Type checking is undecidable for type theories that are Turing-complete. Type theories are Turing complete if they can simulate a turing machine. Roughly, type chicking for a type theory is undecidable if its not decidable whether every term has the type assigned to it by the programmer. The halting problem is the connection, which the website states but the author is inviting bug reports, so maybe its a good idea to ask them to clarify it.

comment 6y ago · link · parent

> Pretty much any language supporting something like C++'s "template metaprogramming" will allow the programmer to perform arbitrary computation at compile time.

It depends on what you mean by "something like" because Idris' dependent types are arguably equally as useful in practice but type checking remains decidable due to totality. This goes for Agda, Coq and Epigram (if it still exists?) as well for different technical reasons each, not that they are as convenient to program with.

comment 6y ago · link · parent

Dag Prawitz's book "Natural Deduction" isn't too hard to read .

comment 6y ago · link · parent

> Logic and critical thinking textbooks typically discuss slippery slope arguments as a form of fallacy but usually acknowledge that "slippery slope arguments can be good ones if the slope is real—that is, if there is good evidence that the consequences of the initial action are highly likely to occur. The strength of the argument depends on two factors. The first is the strength of each link in the causal chain; the argument cannot be stronger than its weakest link. The second is the number of links; the more links there are, the more likely it is that other factors could alter the consequences."

Indeed, many people don't realize that accusations of committing the (or any) fallacy need to come with justifications of their own.

[1]. https://en.wikipedia.org/wiki/Slippery_slope#Non-fallacious_...

comment 6y ago · link · parent

Why?

comment 6y ago · link · parent

> Leonard Susskind's video lectures called as "the theoretical minimum"

This is apparently a book too, co-authored by Susskind and Hrabovsky [1].

[1]. https://en.wikipedia.org/wiki/The_Theoretical_Minimum

comment 6y ago · link · parent

Frege did not in general reject intuition. The rules of what became first-order logic are accepted on the grounds that they are intuitively undeniable and provide the results we need. That's the actual lesson of Russel's paradox in response to Basic Law V: that blatantly obvious things can be problematic.

For anyone interested in the semantic analysis of the verb "to be", I recommend Andrea Moro's book "A Brief History of the Verb To Be."

Also note that analytic philosophy is the philosophical tradition the author is referring to, not rationalism [2]. This is an ahistorical use of the latter word. They did define their terms in the glossary but that won't help you in searching.

[1]. https://en.m.wikipedia.org/wiki/Analytic_philosophy

[2]. https://plato.stanford.edu/entries/rationalism-empiricism/

comment 6y ago · link · parent

Yeah this is probably it right here. Just being able to parse various common formats would give a lot of the structure people are looking for. The builtins can just operate on that. Maybe it could optionally detect the formats too. If such a shell became popular, it would also incentivize developers adding common formats as outputs to more programs too.

comment 6y ago · link · parent

Would something like this be possible for FPUs as well? I see there are currently three separate extensions for floating point instructions varying by register widths.

comment 6y ago · link · parent

To not be catastrophic does not necessitate being good or even acceptable. Our systems of insurance can treat people better and we should want this because any of us can end up in that situation due to unforseen and even unforseeable events.

comment 6y ago · link · parent

Not less than their meager earnings. They were saying that they weren't making enough already and this was less, not that it being less than what some people make is bad. If you make the absolute minimum for survival, it shouldn't be less than that.

comment 6y ago · link · parent

This misses the possibbility of common cause in some or many cases. Also, mental illness can cause immense suffering and choosing to escape that can be entirely rational depending on the circumstances especially considering acccess to health care. The reaction to mental illness socially and economically should also be considered because it can make life even worse for sufferers. If escaping a life of gauranteed pain is irrational then we're going to have to disagree on our conception of rationality here.

comment 6y ago · link · parent

> Can't say that the subjects are chosen very precisely either

The explanation of how they were chosen starts on page 80.

1
153154155
172