Better HN
topnewbestaskshowjobs
Log inSign up

PartiallyTyped

2,940 karma · joined Oct 16, 2020 (6y ago) · 2,890 submissions

me [at] [$handle].dev

----------------------------------------------------

Submissions

comment 4y ago · link · parent

https://news.ycombinator.com/item?id=24128865

They did lay off Servo and a Security team not too long ago.

comment 4y ago · link · parent

Mozilla may have been an innovator, but the servo team was fired, and so was a security team, while the CEO's salary roared and the market share dropped further[1].

Maybe things have changed, idk.

[1] https://news.ycombinator.com/item?id=24128865, contains all the links.

comment 4y ago · link · parent

A share of what company?

The company has no vision, no real captain, nor is it public.

comment 4y ago · link · parent

Simplistic answers to difficult and chaotic questions are bogus, heuristics. They may work on average, but twitter is not an average company.

comment 4y ago · link · parent

> Newtonian physics can be extremely complex, but their descriptions are usually very simple

IIRC Constructor theory builds on this, in a way, it defines some very basic and simple building blocks out of which the rest of the laws that govern our universe.

https://en.wikipedia.org/wiki/Constructor_theory

comment 4y ago · link · parent

It’s also possible that our __models__ are simple, but the underlying reality is not, so as long as there exists some error after sufficient evaluations it is safe to say that our model’s complexity is less than the universe’s.

comment 4y ago · link · parent

Define simple; it is often the case that something seemingly simple is actually quite complicated.

It is often good to provide additional context to identify common ground and from there guide the discussion.

A system that can be described in a linear and continuous fashion without drilling down is either too simple, or too broadly described, neither of which is particularly useful when complexity is high.

comment 4y ago · link · parent

EU's legislation is only for battery charged mobile devices and accessories, not laptops or anything beyond tablets. EU also considers every few years different connectors.

comment 4y ago · link · parent

Part of EU's decision is to repeatedly evaluate the standards every N or so years; where N <=5 iirc, so if there is a new standard, EU will consider it.

I don't think anyone has any complains about the physical connector, the issue is the specs for USB. USB-C looks to be the end of history though for smart phones, at least for apple. Apple said they will comply, but never confirmed inclusion of USB-C, this is important as there is a clause that allows mobile devices without a port to be compliant.

comment 4y ago · link · parent

The oil in the continental US is hard to extract [1]. The oil in Middle East is trivial and cheap to extract [1,2].

There is a reason oil price is up there, because the US and Saudi Arabia have setup a cartel, aramco has iirc > 70% profit margins. The cartel ensures that the U.S. can be “competitive” on pricing, that’s it. It ensures private interests are protected.

As for who gets it and whatnot, it’s all about private interests funding politicians who ensure no crisis is lost.

The money spent there is not to Iraq or Afghanistan per se, but also to the troops. You should look into how much the US is paying for the food supplies.. we are talking thousands per meal.

[1] https://oilprice.com/Energy/Crude-Oil/Why-the-US-cannot-Extr...

[2] https://www.enverus.com/blog/saudi-arabia-oil-need-know/

comment 4y ago · link · parent

The pledge - which wasn’t signed was for 2% - nobody is afraid of Russia at this point and Poland alone could very well handle any Russian army if this war is any indication.

Of what the US spends on NATO, very little goes to smaller nations. In exchange, the US has legal bases and troops deployed in other countries without fear of retaliation, do you grasp how much power the US gets to project through this? Probably not.

US keeps Taiwan because it benefits them, and because it needs the semiconductors.

Nothing is free.

When you lot decided to invade Middle East for oil yet again for the 4th or 5th time, you also triggered article 5 and foreigners died as a consequence of your own greed, your unchecked black ops, and CIA funding terrorists.

Furthermore, this “alliance” means that people are spending money on US military hardware, not anyone else’s, but this is conveniently out of the discussion every time such complaints come up.

Less than 20% of what the US spends on NATO is used to assist smaller countries, and the US only covers 16% of operational costs of NATO - which is as much Germany is covering.

Legal boots on the ground next to any front trumps any and all economic arguments.

comment 4y ago · link · parent

Copilot doesn't retrain on data generated by you in the moment; so I don't see why this is an issue unless you push the files - with the keys - to github.

comment 4y ago · link · parent

> The structural completions are way more useful than the entire function completions, even in IntelliJ, where autocomplete is already extremely high quality.

I needed to run a comparison over a window of a numpy array, and given the sheer size of my data, I needed it to be fast and efficient, which means vectorized operations with minimal python interaction. Copilot figured a solution that is orders of magnitude faster than what I could conjure up in 10 minutes, most of which I'd spent searching for similar solutions in SO.

comment 4y ago · link · parent

the US does not subsidise other countries, not to the degree that you think anyways.

It’s also not a matter of spending more money. The US spends a lot more per capita on healthcare than everyone else, so money is not the issue.

comment 4y ago · link · parent

Not really but if you are up to it, Julia allows for it.

comment 4y ago · link · parent

> Taxing in Spain is higher and higher and evidence says that things are not getting better. If that was true, more taxes -> more welfare. Yet public positions that make no sense grow and "productive economy" is smashed with taxes.

You are not addressing the problem there.

Don’t get me wrong, my taxes in Poland are absurdly high and my QoL is not that much higher compared to when I was in Denmark as a broke grad student barely making it through each month.

A bloated public sector is not evidence that collective assistance is bad, it is not. In the example I gave above, local information suggests to simply not help the homeless, but global information finds that housing them cuts the costs and improves the situation for everyone.

What prevents “a” charity from doing what I describe is that charities are run by people, and most of them are not effective, which is why effective altruism is a thing in the first place. The aim of effective altruism is to maximise the net impact of individual people’s charity by avoiding giving money to bad ones.

Still, EA does not have the capacity to see the complete picture because it still lacks data and can not organise large scale operations across multiple sectors whereas individual charities are very limited in scope.

comment 4y ago · link · parent

That kind of charity is not controlled, is not systemic, is not broad, and is not reliable.

It relies on other people liking you enough to give you their money. Studies have repeatedly and reliably proven that the halo effect is real, a person in a suit can earn more while begging than homeless people, which exploits prejudices and quick but biased decision making.

The reason I won’t give a person in a suit money but I will give a homeless one is because I have made that conscious choice apriori and engrained it in my subconscious. Most people don’t, and therefore see a “good guy” down on their luck and due to systemic pressure that has engraved into people’s heads that homeless people are lazy and filthy, they won’t.

Homeless exists only to keep people working and slaving away at the capitalist machine.

It’s a damn treatable problem one can solve.

For example, the money spent on healthcare for (frequent flier) homeless people can be used instead to house them properly and significantly reduce the cost to hospitals [1].

So no amount of “neighbourly help” can save that amount of money nor help as many people.

Targeted systemic changes can be vastly more efficient than relying on immutable factors (one’s appearance) and hoping that people are kind enough to help.

I am fairly certain that such cases can be found everywhere.

The cynic in me suggests that most people want to help their neighbour in order to feel good about themselves and see the impersonal nature of taxes as worthless or evil even because they themselves are oblivious to the consequences.

When I said “local neighbourhood”, I referred to one’s vicinity and where the individual can exert control. Not physical location.

[1] https://nlihc.org/resource/housing-homeless-hospital-patient...

comment 4y ago · link · parent

Helping your neighbour is a colossal waste of time and money in most of the developed world.

Accelerating the development of developing countries enables us to have more minds working on actually difficult tasks like curing cancer in all of its forms, managing and curing our planet, curing diseases that plague humanity, and finally advance our civilization.

If all the help you can provide is isolated to your local neighborhood, you are stuck with well off neighborhoods improving logarithmically with time and money spent because they are well past the inflection point, and everyone else struggling to improve because they lack the resources, and likely facing the same issues the well off community faced and solved before, enabling even more waste of time (and therefore money).

Local improvements do not propagate further if you are isolated, and thus you miss the big picture.

This by the way is a well studied phenomenon and is the core difference between "conservatives" and "progressives", where the former considers their local community, but the latter considers systematic improvements. From my experience, the latter understands that the issues faced by other communities are issues they could have faced as well, and therefore see it as their responsibility to help them.

comment 4y ago · link · parent

> I'd actually force myself to write even trivial code on weekends to ensure my ability to develop didn't atrophy as a result of lack of use.

I am glad I am doing a master's in parallel because outside that I haven't written code in a while ...

comment 4y ago · link · parent

> Maybe I'm wrong, but I think all the talk around weird ideas like Functors, Monads, etc., are mostly red herrings and aren't that applicable to most everyday software engineering tasks.

They are a red herring. In most cases, all you need to know about a monad is that it defines some kind of transformation of the enclosed data by applying a function onto it that returns a Monad of the same kind.

e.g. the list monad [a] says that if you bind it with a function f: a -> [b] (ie a function that takes a value and returns a list of b), the monad will transform to [b] by concatenating the lists.

the maybe monad Maybe[a] says if you bind it with a function f: a -> Maybe[b], if Maybe has type Some(a), the data of the monad is replaced by the result of the function. If the monad has type Nothing, then it retains nothing. It's no different to

a = f(a) if a is not None else a

So a monad is just an object that defines the transformation of the underlying data when applying a function that returns a monad of the same type, nothing more.

comment 4y ago · link · parent

One could very well argue that a Markov Chain as seen in Diffusion models is nothing more than following a graph from a point sampled from the prior back to the original distribution. The edges in a said graph are generated either via a scoring model which predicts an estimate of the gradient directly, or by generating a conditional pdf and sampling from it.

This is no different to tree search, not really anyway, it's just that ANNs are used to handle the intractability of expanding an infinite and continuous space or providing the probabilities within a MCTS - which is what AlphaGo and AlphaZero do.

One could argue that LMs / Causal Transformers are also doing treesearch, indeed one of our evaluation metrics, perplexity, is a measurement of the model's uncertainty in the transition p(token_i | token_{i-1} ... token_{0}).

comment 4y ago · link · parent

> and slapping a fuzzy ML model on top of it to suppress a class of errors is not a good idea.

I am not saying that that is a good idea, I am expressing that there are limitations on what one can infer without broader context.

> Offloading type annotations to something else removes that safety from you.

Counter argument; the annotations can be used as a second sanity check; if the inferred types match your mental model - and the type inference model is good - then you know that your mental model is correct and you didn't miss something.

comment 4y ago · link · parent

- A book of abstract algebra: makes algebra, fields and so on just click

comment 4y ago · link · parent

> Type inference really doesn't require ML

This holds only if you have sufficient context, giving what is virtually an untyped function into e.g. mypy will not provide anything meaningful. Even languages with rich type systems like Haskell do require some types - even implicitly - to infer everything else.

In contrast, copilot has access to significantly more information when emitting the type-annotated code, including context of what the project is like, how are other functions defined, plus all the prior knowledge accumulated from training.

> I think the Kolmogorov complexity of serious production codebases is very high

Do serious codebases exceed gigabytes in raw storage?

> in order to convey what the codebase does

Doesn't this assume no priors / blank slate?

comment 4y ago · link · parent

Try writing a programming language with Haskell. Learning Haskell changed the way I view things and most other languages feel cumbersome in comparison.

There’s something almost magical about writing software in a language like Haskell, when you have defined good and elegant abstractions, it’s as if you peer into the matrix and touch the divine.. so to speak.

comment 4y ago · link · parent

Same for some other companies in the 5 letter acronym.

comment 4y ago · link · parent

Copilot can fill in type annotations in python, “resolve” some bugs, explain code, “make it more robust”. The features are available in copilot labs, they are obviously very much WIP, but they are definitely not useless.

comment 4y ago · link · parent

crash*

comment 4y ago · link · parent

The problem is that when I consider things to do, I can't find anything that I want to do as it feels that none of them serve some purpose.

comment 4y ago · link · parent

I had a car crush once and the experience left me rejuvenated, alive even. Perhaps something extreme could help but tbh I am a coward and afraid of heights.
1
666768
97