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 3y ago · link · parent

What I want from my employer is them to fund a better build system.

comment 3y ago · link · parent

In order enumeration of parameters / candidates?

If so, then I'd argue that yes random search is more likely. When we do hyper parameter tuning in ML, random search beats grid search in efficiency. The higher the dimensionality of the problem, the worst grid search is going to be because you will spend a lot of time at the boundaries.

If you are doing Grid Search, then you might as well use a space filling curve, find a promising block, and increase the resolution. This is how GeoHash [1] works more or less.

On the other hand, if a single solution exists, then it is improbable that you will find it via random search.

There are more complex solutions to exact constraint solving, but perhaps they don't scale particularly well.

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

comment 3y ago · link · parent

Re linear types, Rust actually has an affine typesystem, and the compiler complains when you move a variable and try to access it, so instead you need to provide a reference if you intend to do that multiple times.

A reference is a new object that references an existing memory value. You can not store a reference unless the borrow-checker can prove that the object that stores it has a shorter lifetime than the referenced object.

That is also why you can't just pass that reference around willy-nilly, because the reference is consumed due to affine types.

I may be misunderstanding something though so feel free to correct me.

comment 3y ago · link · parent

That's the specific case of (mis)using an arena, no? Could this be extended to the general model of ownership?

comment 3y ago · link · parent

You could say that it forces you to define long living entities that own memory and lend it to short-lived objects.

In the process you avoid use-after-free, double-free, and accessing unallocated memory because the borrowers always live shorter lives than the owners, and can only access borrowed and thus allocated memory that is deallocated once the owner dies, and there is nobody else who can use it or free it once more.

comment 3y ago · link · parent

You can say the same thing about religion; in fact, religions that tell you to ask for forgiveness are not only guilty of this, they don’t even allow one to consider the basis of their morality may be wrong.

comment 3y ago · link · parent

The “At” protocol is supposed to allow you to take your account elsewhere. Since you own the domain, nobody else can use it and thus you may migrate to instances owned by other corporations or by you even.

comment 3y ago · link · parent

It’s so incredible how deep the rabbit-hole goes when you try to solve a real world problem and you have the capacity to understand and pull information from a vast number of seemingly unrelated works.

I really believe that this is the best time to be a polymath, or at least have a broad spectrum of knowledge and references to look into and pull information from; and that being a true generalist that can dive as deep as needed enables you to build great stuff. But maybe that’s just my experience.

comment 3y ago · link · parent

Yeah you are right. I think I have made this mistake twice before. Oof.

comment 3y ago · link · parent

SQLite is a fantastic little tool tbh.

comment 3y ago · link · parent

~~They dropped the lifetime licensing but they didn’t force people into subscription.~~

~~I know that LTT had such a license and made it a point to bring it up every time VMWare called them to turn it into a subscription.~~

I remembered wrong. :(

comment 3y ago · link · parent

Postgresql and other OSS DBMS taking over Oracle?

Even inside of AWS there are people who believe FOSS will always eventually surpass proprietary software.

comment 3y ago · link · parent

I am surprised VMWare didn’t do the same thing tbh.

comment 3y ago · link · parent

What’s stopping me from doing the same but rot13’ing the magnet link?

comment 3y ago · link · parent

We know that quality data is king, with all due respect to people tweeting, that data is most likely garbage.

comment 3y ago · link · parent

I was surprised by how devoid it was..

comment 3y ago · link · parent

You can ground models better with retrieval augmented generation, and toolformer can actually call functions and whatnot, it is also entirely possible to orchestrate things with "agents".

comment 3y ago · link · parent

Yes, but all you need is arrows; see Category theory ;)

comment 3y ago · link · parent

I was preparing for my defense :D

comment 3y ago · link · parent

This is my usage:

    Jun 2023  1171
    May 2023  822
    Apr 2023  2451
    Mar 2023  3700
    Feb 2023  3632
    Jan 2023  5664
    Dec 2022  1245
I found that most of my searches are in my phone actually.

comment 3y ago · link · parent

N=1; I am a key person for the project we are shipping, it's my vision to some extend, and I am very comfortable picking my things and going elsewhere. Very few products can actually get people to stay.

comment 3y ago · link · parent

Those are always fun! I am a big fan of property based testing for this reason alone!

comment 3y ago · link · parent

I am willing to bet that the type system and the opinionated way of doing things helps a lot here.

Anecdata but I found myself very productive with Haskell when I was learning it for grad school, to the point where I knew that if it compiled, it was most likely right.

I had similar experiences though not to that degree with Rust with very little time spent on it in comparison to Haskell. I feel a lot more comfortable sleeping at night over C or Python.

comment 3y ago · link · parent

> Instead of being a productivity wonderland, the office is more like a productivity black hole, where collaboration, socializing, mentoring, and on-the-job training thrive, but focused work gets sucked into oblivion. In fact, research shows that the office is detrimental to productivity.

My experience corroborates this. My team is spread across 4 or 5 cities, 2 countries, 2 continents, and 6h difference. I know none in the office, and yet I still have trouble getting work done because people can’t respect others and speak loudly.

I shouldn’t need to wear headphones 8h a day just so I can have some silence when I can work remotely at a library, or in my apartment.

I shouldn’t need to wear a sweater or warm clothing in the middle of the summer because people need to have the AC as low as they do.

Let’s not forget the need to scramble to find a meeting room because the teams are as fragmented as they are.

It’s absolutely insane.

All of these get worse because of forced RTO.

when attendance was sparser, I enjoyed it a lot more.

comment 3y ago · link · parent

Maybe it's the approach that you are taking when it comes to writing your code?

I found that I don't need to ask copilot to do something, I write as I do normally, see its suggestion and if it matches what I have in my head, I press tab.

comment 3y ago · link · parent

GH Copilot is the only subscription I can 100% say is worth it. It is also cheaper to use typingmind or some other front-end for ChatGPT + pay as you go.

comment 3y ago · link · parent

I don't think the problem is the assertion - even if the change of heart seems opportunistic - as much as the absence of acknowledgement of their own fallibility and their prior errors in world views.

Granted, such an acknowledgement involves some degree of humility, but I think this is preferable to not having opinions at all, especially about issues that matter.

comment 3y ago · link · parent

> That's called beam search.

There are other decoding approaches, other than beam search:

https://arxiv.org/abs/2202.00666

> Other than that, things like gpt can't go back and edit what they've outputted

Actually, they can, they may emit a backspace token [1]

[1] https://arxiv.org/abs/2306.05426, https://news.ycombinator.com/item?id=36425375

comment 3y ago · link · parent

> 1. You are just referring to fine tuning, I am referring to training the base model.

Ahh mb! Sorry.

1
383940
97