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

> Why pay devs to write fast code when you can buy faster computers faster and cheaper?

Because you can do more in the same time. Speed and responsiveness are features, the issue is, the general population has come to accept that bugs are not only acceptable, but just that, 'bugs' that you can shoo away by restarting the machine/program.

> I wonder when the trend reverses. It must, at some point, mustn't it?

I hope so. As we have seen with spectre and now AMD's equivalent, speculative execution is risky and very complex to get right. We can't rely on ever increasing complexity on CPUs and fabrication processes, at some point quantum mechanics will bite back.

comment 5y ago · link · parent

If we could actually get control of our emotional part, it will be used for the military to create superhuman soldiers, devoid of any empathy and augmented with a rage mode switch that turns off fear and fills them with adrenaline.

Personally, I'd use it to deal with my bipolar.

comment 5y ago · link · parent

> Now take it a step further. Death isn’t death. Like the paradox of rebuilding a ship one plank at a time, your mind stops existing in your body and occupies a collection of other bodies.

Douglas Hofstadter talks about this in "I am a Strange Loop" [1], but he argues that our 'soul fragments' as he calls them are a representation of ourselves in others. Depending on how large of a fragment they hold in our brain, we can perceive the world as they do, and think as the other person. They get to experience the world through us, in a sense, given that we 'allow them to'.

It is an interesting idea, and helps reconcile the death of our loved ones.

[1] https://www.amazon.com/Am-Strange-Loop-Douglas-Hofstadter/dp...

comment 5y ago · link · parent

No, on the contrary, my experience with Haskell is that my code is mostly bug free, but ends up less performant because you can accidentally create huge trunks in the heap and it consumes too much mental stamina.

However, there exists an intermediate plane of abstraction over C and under Haskell that is absolutely horrendous and results in all sorts of weird bugs and unpredictable situations.

comment 5y ago · link · parent

I agree with you, and I'd say that we are perhaps in the bottom, or the middle of the S curve in software. Despite all the technological progress in hardware, our software is very slow and buggy. We end up increasing complexity in the name of 'productivity' and going up in abstractions, but we end up lacking fine-grained control and performance in modern systems.

I hope that we see a paradigm shift back towards writing robust and performant systems instead of stacking abstractions. Sure, Monads and Transformers are all fun to use, make code coincise and are very satisfying when they compose well, but, what's the hidden cost, and is it worth it?

As a user that encounters bugs at a disproportionally high rate, I'd say no. The trade-off in increasing abstractions is not worth the trade-off.

comment 5y ago · link · parent

> what if the majority of points of interest end up in single grid square in your example?

Geohash provides arbitrary precision, at 8 character length, we can measure difference in in the order of decameters iirc.

The edge cases are on the literal edges, where you could have two points, one at say -79.995, 35.0 and -80.001, 35.0, so the area is split at -80 and the first point has different prefix than the second even though they are very very close.

comment 5y ago · link · parent

What are the general solutions to handling spatial data and in particular, 'nearness' in huge databases?

Last time I needed something along those lines, I implemented geohash [1] in the application level ontop of a time-series database. I assume there is a better, more sound way to achieve that, as geohash doesn't handle boundaries well.

---

For the uninitiated, geo-hash uses a space filling curve multiple times at different precision to map quadrants into strings. So imagine a map, top left is North America, bottom right Australia, we can name the quadrants 0,1,2,3, we then take each quadrant and again use a z filling curve to split it to more quadrants (well, quadrant of a quadrant) and keep the name we gave it, we repreat the process up to desired precision, finally, we take the all the names of quadrants with the same order and concatenate them, to create a string that repretents the position. Strings with the same prefix are in the same quadrant and depending on the length of the prefix, the quadrant they are in is either bigger or smaller, longer prefix, smaller quadrant.

We found that geohash, even at the application level, provided much faster queries than searching for coordinates within range on two fields.

---

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

comment 5y ago · link · parent

Anarchist state is an oxymoron.

comment 5y ago · link · parent

personal story:

I remember uploading a BF3 montage on YouTube some eons ago when it was all the rage, no copyrighted music or anything. I received a DMCA claim by some spanish tv/broadcasting company or something along those lines, totally unrelated to my content.

---

The fact that DMCA claims can be issued with no human interaction and no repurcussions is beyond me. If anything, the hosting company should at least issue penalties on false claims.

comment 5y ago · link · parent

I see, thanks!

comment 5y ago · link · parent

By accepting a reference argument, you introduce pointer deref. Wouldn't it be better to use

    Widget && temp = complicated_long_function(...);
    consume(temp);
Am i missing something?

comment 5y ago · link · parent

There's a paper that used a random convolutional filter when training the agent and they found that it manages to generalize very well, they evaluated the CNN and found that the model put emphasis on where the enemies were at each frame, which indicates some form of understanding.

However, I don't think that there is any form of causal relationship to be extracted for model-free agents. I don't believe that what we are seeing is anything more than changing action likelihoods in some very high dimensional function.

comment 5y ago · link · parent

You will like this presentation by Jonathan Blow [1], I feel the same. I am in grad school, but since my bachelor, I felt more like a craftsman than a student, I always spend more time in order to make my code 'look' beautiful to me, and be performant. I would like to work somewhere that puts emphasis on writing good software instead of chasing feature after feature. Speaking of which, speed is an oft ignored feature [2]. It is really frustrating to have sluggish apps and I often end up avoiding them altogether.

[1] https://www.youtube.com/watch?v=ZSRHeXYDLko

[2] https://www.enchant.com/speed-is-a-feature

comment 5y ago · link · parent

Order Flow and Data. If you have access to Order Flow you can make pennies on each trade, this is how High Frequency Trading companies make money. If you have access to Data, you can be one step ahead of the market and figure out the direction.

Robinhood makes money by directing Order Flow through Citadel.

comment 5y ago · link · parent

April First.

comment 5y ago · link · parent

This is very interesting, do you have a translated article?

comment 5y ago · link · parent

Perhaps monitoring twitter and other social media for symptoms that deviate from the expected for the timeframe is the kind of surveillance mentioned in the article [1]. It is definitely unrealistic to be on the hunt for pathogens by inspecting every single person, but using social media for guided search could prove useful.

[1] https://pubmed.ncbi.nlm.nih.gov/32937679/

comment 5y ago · link · parent

And too late for International Fixed calendar.

comment 5y ago · link · parent

Nearby WiFi spots can be easily used to track device location. Here is a neat little project that does exactly that for IOT tracking [1].

[1] https://github.com/dmsl/anyplace

comment 5y ago · link · parent

Out of curiosity, how old is your car?

comment 5y ago · link · parent

I'd say yes. You could bring Support Vector Machines [0], bring the Vapnik-Chervonenkis theory of statistical learning [1]. You could fast forward the whole field of Reinforcement Learning, you would be able to show that it's possible to solve problems like passing gradients through a sampling process using the reparameterization trick [2], you would be able to show that you can pass gradients through a sorting process [3].

You would also have experience of working with autodiff software and build such. Imho the advent of autograd, tf, torch and so on helped tremendously in accelerating progress and research because the focus of development is not on correctness anymore.

[0] https://en.wikipedia.org/wiki/Support-vector_machine

[1] https://en.wikipedia.org/wiki/Vapnik%E2%80%93Chervonenkis_th...

[2] https://openreview.net/forum?id=33X9fd2-9FyZd

[3] https://old.reddit.com/r/MachineLearning/comments/mcdoxs/p_t...

comment 5y ago · link · parent

I agree with you. I beliebe that many people are trying to emulate papers like Vapnik's SVMs in an attempt to appear as ground-breaking because, well, the competition is enormous.

There isn't clear distinction between the engineering aspects and the theoretical aspects, as the article said, it looks as if we are trying to get approval by mathematicians so papers become a convoluted amalgamation of different ideas and more often than not actually provide the worst of both worlds.

comment 5y ago · link · parent

If you browse r/MachineLearning, you will see many people complaining about unnecessarily convoluted mathematics that are literally there to appease reviewers and don't actually say anything useful.

comment 5y ago · link · parent

I would like to point you towards Hoeffding's inequality. The probability of deviating more than epsilon from the mean after n experiments is exponential in n.
1
858687
97