Hacker Newsnew | past | comments | ask | show | jobs | submit | mathisonturing's commentslogin

that's not final though, like val in Kotlin


we talked about having val as well in java but it just wasn't that interesting. if for some reason you think you need final you can use final var.


> batching multiple transactions into IO blocks where feasible. If your average transaction is substantially smaller than the IO block size, then you are probably leaving a lot of throughput on the table.

Could you expand on this? A quick Google search didn't help. Link to an article or a brief explanation would be nice!


Sure. If you are using some micro-batched event processing abstraction, such as the LMAX Disruptor, you have an opportunity to take small batches of transactions and process them as a single unit to disk.

For event sourcing applications, multiple transactions can be coalesced into a single IO block & operation without much drama using this technique.

Surprisingly, this technique also lowers the amount of latency that any given user should experience, despite the fact that you are "blocking" multiple users to take advantage of small batching effects.


Android has app system level options in the settings to disable WiFi/mobile data.

I tend to use that, and use Netguard as a fallback because the latter has an off by default config incase I forget to disable it for new apps.

Netguard on its own is insufficient because sometimes you'd need to use an actual VPN (which turns off Netguard)


I've had those options on multiple OnePlus phones, but they were not present on multiple Pixels. Since Pixels are usually sold as "AOSP experience with Google flavor" are lacking this feature - I am not sure if that is that feature comes from AOSP or is only present on OnePlus phones.


I've generally found them on most Android phones, but they're all over the place in the settings. On my current phone they're not in permissions, or connections, or internet setup, or security, but they're in the app details screen.

I've also seen the toggles placed in the data usage graph, the other, older data usage graph you can sometimes find via a workaround, and in a separate app that pretends to be one of those system storage optimizers.

I'm sure Android supports it at the system level but how you get to those settings is anyone's guess, really.


> everyone has spent the last twenty years getting really upset about it

Could you expand on this?


Forget about DataClasses, TypedDict etc. Can't you achieve the same in python with a class and a dict? Is there a difference, other than perhaps being overloaded with options?


A dataclass will get things like __repr__ for free.


Eq, hash, and init is also "free".


There’s also implementation differences. Accessing attributes and methods on a regular class may be slower because (IIRC) it has to do a lookup on each instance’s dict, whereas I believe dataclass implementation is more optimized (I’ve clearly forgotten the details).


Please share for those uninitiated like me


Many people think that, in the time of the USSR, Russian chess players conspired to make sure a Soviet player won tournaments.

For example, they would try harder to beat strong non-Soviet players than to beat strong Soviet players, would throw away games to give a Soviet player more points, would offer a draw very soon to give a Soviet player time to rest/prepare for theirnext matig, etc.

There’s also https://en.wikipedia.org/wiki/World_Chess_Championship_1948#...


World Chess Championship 1972 was widely viewed as a proxy for the Cold War



Fischer - Spassky 1972


How does this stack up against Intro to Database Systems from CMU?


When I was implementing SimpleDB in 2019, I believe CMU's course didn't have resources and lab assignments that were publicly available. Now CMU has published a full video lecture series (which MIT doesn't have) and their labs. So if I were starting again today, I would probably go with CMU's course.

CMU Intro to Databases Labs: https://15445.courses.cs.cmu.edu/fall2021/assignments.html

CMU Intro to Databases Lectures: https://www.youtube.com/playlist?list=PLSE8ODhjZXjZaHA6QcxDf...

BusTub - CMU's Version of SimpleDB: https://github.com/cmu-db/bustub


Curious - why is running on JVM bad?


Very slow startup for one.


Yeah, somewhat agree. The Clojure community has put so much effort into working with GraalVM.

* https://convexhuman.com/graalvm-clojure.html * https://nitor.com/en/articles/fast-cold-starts-for-clojure-i... * https://www.innoq.com/en/blog/native-clojure-and-graalvm/

Since development in the REPL is so common (watch any Clojure live coding session), JVM startup time isn't much of an issue in practice.


This solves the startup-time of (static) applications, but not the startup time of for example executables, which include the development environment.


Elaborate? Out of the loop


Here's an article from the NYT about how they are trying to ethically sell Hunter Biden's artwork. "Ethically sell" was a term I chose specifically because Hunter Biden is not an artist, and the question of why his paintings are being sold for half a million dollars and to whom is substance.

https://www.nytimes.com/2021/07/08/us/politics/hunter-biden-...

Edit: Anyone can be an artist of course. Selling artwork for such a price would be quite an artist.


> Anyone can be an artist of course. Selling artwork for such a price would be quite an artist

Quite an artist indeed. Here is a Picasso that sold last month for $150,000.

https://www.liveauctioneers.com/item/104029896_pablo-picasso...


[flagged]


> a person related to the President of the United States

The sitting president’s son, you mean?


I vividly remember when Billy Beer was a scandal. Simpler times.

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


While I detest bias in all media (Fox included but in no way do they have a monopoly on)…

Are you saying Hunter Biden (the son of, not just “a person related to”) hasn’t recently sold his artwork for $500,000 a pop to anonymous buyers?


As I understand it from reputable reporting, all such sales are hypothetical.

https://www.washingtonpost.com/politics/deal-of-the-art-whit...


Or 37 extra minutes of work


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: