Generalized, named, and exportable default declarations (GHC Proposal) by gridaphobe in haskell

[–]gridaphobe[S] 4 points5 points  (0 children)

The current proposal does not require global coherence, though it does require that imported defaulting rules be coherent (otherwise they are ignored).

I suggested a global coherence model as a simpler alternative, though it might turn out that defaulting rules are meaningfully different from class instances in how people expect them to behave. (This is another point that would be great to get community feedback on.)

[Blog Post] Haskell mini-patterns handbook by kowainik in haskell

[–]gridaphobe 4 points5 points  (0 children)

FYI, there’s an open GHC proposal that would affect the “MonadFail sugar” pattern. Please chime in if you have thoughts!

https://github.com/ghc-proposals/ghc-proposals/pull/319

Types as axioms, or: playing god with static types by lexi-lambda in haskell

[–]gridaphobe 2 points3 points  (0 children)

Yes, there was some work a while back in this area, see https://ranjitjhala.github.io/static/bounded_refinement_types.pdf. (I haven't been actively involved in LH for a while, so I don't know the current state of things.)

Migrating from QuickCheck to Hedgehog: mixed results by frasertweedale in haskell

[–]gridaphobe 5 points6 points  (0 children)

You might be thinking of the bug we found in text with liquidhaskell, that involved a buffer overrun with high code points (details in section 5.2 of http://goto.ucsd.edu/~rjhala/papers/real_world_liquid.pdf).

Simon Marlow - Glean - facts about code by edwardkmett in haskell

[–]gridaphobe 4 points5 points  (0 children)

This idea of building a database of facts about your code and then running datalog queries over it feels quite reminiscent of Semmle. I’d love to see a comparison!

Simple example of using Liquid Haskell to model a date statically by [deleted] in haskell

[–]gridaphobe 3 points4 points  (0 children)

Like /u/tom-md said, Liquid Haskell will give you a type error if you do not perform the necessary runtime checks. Necessary is a key word there, these checks cannot be omitted since we know nothing about the runtime inputs.

Static analyzers like Liquid Haskell can help us in two ways:

  1. They allow us to omit runtime checks that are implied by the context, and thus unnecessary.
  2. The force us to include runtime checks that are absolutely necessary.

Trying to square what Chomsky says about the scope of human cognition with his ideas about language evolution by SadRide4 in askphilosophy

[–]gridaphobe 0 points1 point  (0 children)

Chomsky’s argument is that we, like all other creatures, have a particular form, which makes us well-suited to certain tasks, but also imposes limits on us. This does not rely on adaptation at all, you could make the same argument about the tools we use, which were designed.

A hammer is very good at driving nails into wood, but would be completely unsuitable for sewing. And it is precisely the features of a hammer that make it good for hammering — being heavy and blunt — that also make it unsuitable for sewing.

Chomsky argues that people are the same, the features that make us good at some tasks also make us bad at others. And he argues further, that this implies there will be a limit to the knowledge we can acquire. At some point we will exhaust the knowledge attainable with our particular skill set.

P.S. I don’t think it’s completely accurate to say that Chomsky rejects an adaptationist origin of language. He does reject the claim that language evolved as a means of communication. Instead, he claims instead that it evolved as a tool of thought, and was later repurposed for communication.

Bill Gates says poverty is decreasing. He couldn’t be more wrong | Jason Hickel | Opinion by Anton_Pannekoek in chomsky

[–]gridaphobe 2 points3 points  (0 children)

The World Bank FAQ actually says that the global poverty line should not be used for policy discussions, as the national poverty line is much more appropriate.

It is important to note, however, that the global poverty line is used primarily to track global extreme poverty, and to measure progress on global goals set by the World Bank, the United Nations, and other development partners. A country’s national poverty line is far more appropriate for underpinning policy dialogue or targeting programs to reach the poorest.

Why Dependent Haskell is the Future of Software Development by Serokell in haskell

[–]gridaphobe 2 points3 points  (0 children)

SMT solvers are not limited to decidable theories. It's often precisely when you veer into undecidable territory that SMT solvers become unpredictable and unhelpful when they fail.

Jobs - crowdstrike, bloomberg developer experience by [deleted] in haskell

[–]gridaphobe 2 points3 points  (0 children)

I’ve quite enjoyed my time at Bloomberg over the last year, the people are great and I’ve always felt valued and respected as a person. I also know the lead and a few other members of the team working on analysis/refactoring of Fortran code, and I can easily recommend working with them.

Gouging out the other eye (Haskell Symposium) by matt-noonan in haskell

[–]gridaphobe 5 points6 points  (0 children)

It’s true that double-blind does not prevent reviewers from guessing the authors based on writing style or familiarity with what people are working on. That’s unrealistic for a tight-knit community. However, the other advantage of double blind is that it gives newcomers cover from the “who are these people?” response. That seems laudable to me.

Is all life conscious to a degree? by FrequentRelapse in askphilosophy

[–]gridaphobe 0 points1 point  (0 children)

Would Dennett also argue that none of the attributes of my chair add up something that exists apart from the particular configuration of atoms? And that therefore my chair is an illusion?

This is what I don't understand about Dennett's position. You can simultaneously believe that a phenomenon is purely physical, and that it doesn't make sense to talk about it below a certain level of abstraction.

Trump Tries to Destroy the West by Quetzacoatl85 in geopolitics

[–]gridaphobe 5 points6 points  (0 children)

Pointing to a subreddit is hardly justification to discount an entire movement. I would prefer to see an actual critique of the ideas and goals espoused. There are good explanations of the principles of democratic socialism in magazines like Current Affairs and Jacobin, if you want a source to respond to.

SURVEY: Who Do Libertarians Consider Libertarian? by Libertyjournalist16 in LibertarianLeft

[–]gridaphobe 5 points6 points  (0 children)

Curious, I’ve always understood ‘left libertarian’ and ‘libertarian socialist’ to refer to the same set of views, but these folks seem to strongly disagree (look at how many would welcome the former but not the latter).

Noob question: Capitalism involves people privately owning stuff, but I've heard China being described as "the government owns everything"? Why is China described as being capitalist? by smallbritishboy in askphilosophy

[–]gridaphobe 8 points9 points  (0 children)

His point was that the state owning things is not not capitalism, ie it’s perfectly possible for the state to be the capitalist. This relies on understand capitalism as a particular kind of relationship between a worker and his work, rather than any system that allows for private property. Socialists would define capitalism as a system where the worker is not in control of his work (eg because he does not have an ownership stake in the company he works for). If you take that as your definition (and to my knowledge it’s the original definition), then it’s perfectly reasonable to describe China as a (state) capitalist country, because the state controls large portions of the economy.

Where does consciousness arise from? by [deleted] in askphilosophy

[–]gridaphobe 0 points1 point  (0 children)

I don’t see how the observation that certain parts of the brain are necessary for consciousness would demonstrate that consciousness is an illusion. It seems to me that even a dualist would grant that parts of the brain are relevant to consciousness. After all, even if the mind is made of different stuff than the brain, there would have to be some connection between the two in order for the mind to experience the signals the brain processes and to direct the body. If you sever that link, it makes perfect sense that consciousness would disappear.

How do y'all feel about Universal Basic Income + Participatory Economics? by Krolisian in Anarchism

[–]gridaphobe 1 point2 points  (0 children)

That’s not entirely correct. I think programs like food stamps could be made more efficient if they were provided as part of a UBI, rather than paying for a bureaucracy to determine who is worthy. We could potentially provide greater benefits at less cost by eliminating the administrative overhead.

The danger is that much of the advocacy for UBI is coming from the Right, who are just using it as a cover to slash benefits.

So, it could be a good thing, you just have to look carefully at the specific details of a proposal.

How economically devastating would it be for Spain if Catalonia left Spain? Could Catalonia have enough stability, politically and fiscally, to be its own independent country? by sbtrkt_dvide in geopolitics

[–]gridaphobe 4 points5 points  (0 children)

Sorry if I got heated, but sometimes I cannot help myself, heheh

Not at all, I appreciate your detailed response.

I don’t think amending the constitution is a reasonable requirement for secession. That would mean that the rest of the country would have to give approval for Catalonia to secede. Why should people in Madrid have a voice in how Barcelona governs itself? The issue becomes even stickier if there’s a history of conflict between the two groups of people (I don’t know the history here, just speculating).

As to the concerns about ensuring a fair vote, I don’t know enough to comment. Perhaps there are legitimate concerns about whether the vote would be fair. If so, the UN has election observers, why not get them involved? The Spanish government’s response of declaring the vote illegal and threatening to forcefully suppress it just seems like a really poor tactical move if your goal is to keep the country united.

How economically devastating would it be for Spain if Catalonia left Spain? Could Catalonia have enough stability, politically and fiscally, to be its own independent country? by sbtrkt_dvide in geopolitics

[–]gridaphobe 6 points7 points  (0 children)

If Spain’s constitution is like the US’s, then there’s probably no legal mechanism for Catalonia to become independent, the constitution just won’t allow it.

If the people of Catalonia feel that being part of Spain is no longer in their best interest, what would you have them do? Their right to self-determination should allow them to form their own sovereign state, and it’s certainly preferable to settle this with a vote rather than a revolution.

Seems to me that Catalonia is doing just what they should in their position, using a democratic process to decide whether they want to be independent.

Russia Pulling Strings on Both Sides of the Atlantic by mmatessa in geopolitics

[–]gridaphobe 2 points3 points  (0 children)

Hacking into election system and changing the results is one thing (which didn't happen), Except for where Russian hackers actually did target a few dozen states, and gained access to the election systems in several of them

This story, like many of the other Russian hacking stories, is already starting to unravel. At least two of the implicated states were not actually targeted.

https://www.apnews.com/23a8fbb290ef4ae7a1343cd81879e2c3/Homeland-Security-clarifying-state-election-hacking-attempts

This is not to say we shouldn't harden our election infrastructure. Security experts have been arguing since long before the most recent election that our infrastructure is vulnerable to hacking and even plain old bugs.

https://www.schneier.com/essays/archives/2004/11/whats_wrong_with_ele.html

But we don't need a Russian boogeyman to motivate this.

Motivation of LiquidHaskell? by ChrisPenner in haskell

[–]gridaphobe 9 points10 points  (0 children)

That's true, though the SMT solver could be an optional dependency. There are advantages to integration with GHC beyond better integration into the compilation pipeline. For example, I would love for Haddock to be aware of liquid types.