HNHacker News
TopNewBestAskShowJobs

vmarsy

3,262 karma · joined June 26, 2013

https://twitter.com/vmarsy
submissionscomments
vmarsy··on The ETF Tax Dodge
> Except these institutions are not paying taxes on the gain??

Why should they? They are not people.

When you buy an item for $50 at a store, as a consumer you would pay sales tax on it. But every transaction made from the buying of raw materials up to the time the store sold you the item is done tax free by the businesses, only at the time of sale to the final consumer, a tax is due.

Here ETF is kind of similar, except that the consumer provides the raw materials: A consumer buys the ETF at a share price of $100, and sells it once the ETF reaches $150: $50 should be taxable to the consumer. Instead of it being categorized as "sales tax" it's "income tax" or "LTCG tax", but the principle is the same.

If the institution made money off that transaction, by charging someone a $5 fee for instance, then tax should be paid on those $5 by the institution, but I don't see why amount the fund grew should have an impact. It goes both way obviously, if the consumer buys an ETF a $100 but sells it at $75, the institution should not be able to claim a loss on those $25, but that doesn't seem to be something claimed by the article.

vmarsy··on High-tax states like California and New York make it hard for rich to leave
Washington state.

Both Texas and WA state have no state income tax. They have higher than average sales and property tax, these are still state tax which are deductible under SALT.

The point is they have a similar state tax system, but one is a blue state, the other is red. They both have in common a relatively low overall state tax compared to CA/NY.

vmarsy··on High-tax states like California and New York make it hard for rich to leave
> specifically targeted blue states

It seems that that law target high-state-tax states instead?

WA and TX seem equally affected, and I'd say one of them is blue, one of them is red.

Assuming the source of income didn't change much compared to 2017, what's important is to look at the effective tax rate change, (i.e 18k on a 60k income would be very different than 18k on a 300k income)

vmarsy··on EU fines Mastercard more than half a billion euros
> The card payment industry duopoly (in europe at least) is a really weird one that seems to go mostly unnoticed.

It goes unnoticed to the consumer because it didn't go unnoticed to the lawmakers. The EU caped the fees those companies can charge to merchants to 0.3% for credit card and 0.2% for debit card back in 2015 [1]. In the US it's less ignored because those fees to merchants are on average 10x bigger! (2% on average [2])

[1] http://europa.eu/rapid/press-release_IP-15-4585_en.htm

[2] https://www.hostmerchantservices.com/current-us-interchange-...

vmarsy··on Thoughts on Rust, a few thousand lines in
Thanks for the detailed answer :)
vmarsy··on Thoughts on Rust, a few thousand lines in
I see, not very familiar with both those idioms `?` and `ok_or()?`

My current understanding is that those would return an Error only? I was more describing cases where you do want to return, but not necessarily return an `Error`.

For instance in a simplified example function that returns a boolean, you could decide to return `false`. is it possible there?

    // Function that returns a boolean value
    fn is_equal_to_ten(n: Option<u32>) -> bool {
        // some one liner  that checks for None, if it's not none, gives you `x` when `n` matches content of `Some(x)` (not real code): 
        if let Some(x) = n else { return false; /* what to do in case it's a None*/ } 
        
        // `x` is available here:
        return (x == 10);        
    }

Would this be considered bad practice in Rust?
vmarsy··on Thoughts on Rust, a few thousand lines in
One thing Rust doesn't seem to be doing very well yet is guard clauses, specifically when handling Option<T>.

I've seen and appreciated the use of guard clauses in many languages, as a good way to quickly check for a few conditions at the top of a function, and return early if those conditions aren't met.

Since it seems that Option<T> are recommended in Rust, there's a lot of time you want to quickly return if `Some(x)` is not here (i.e. it's `None`), and if it's here, continue through the function, without having an unnecessary indentation from an extra brackets.

There seem to be a good amount of smart discussion into handling those [1][2]. some threads are more than a year old, but it seems to be making progress.

[1] https://github.com/rust-lang/rust/issues/45978 [2] https://internals.rust-lang.org/t/pre-rfc-allow-pattern-matc...

vmarsy··on $1T is leaving Britain because of Brexit
So this is like Arbitration in the US?

In the UK, how are they "known to be free of political interference etc."?

Is it easy for people to contest a decision that looks unfair and bring it to the regular courts ?

vmarsy··on Thank u, next
Agreed, I've started spending more time learning rust, and the book + your comments here on HN about Rust internals makes the learning so much pleasant, thank you for those!
vmarsy··on Ask HN: How do you keep track of your creative thoughts?
> Evernote alike: never works for me. I hate the constant changing features/UI and the overhead of simply opening it

> (My pick) use instant IM to send messages to myself: the IM tool really doesn't matter. It could be mail app,

Agreed with this, I actually do both. I use OneNote, but I don't want to waste time opening the app. So I simply open my google inbox app, and send an email to "me@onenote.com". It creates a note with the subject of the email being the note title, and the content of the email is the note content. [1] I've commented in the past about that feature, I think they should advertise it more.

(One extra feature I enjoy with this is if sending URLs it also creates a snapshot of the webpage in the note , which can be pretty handy, especially since images are text-searchable.)

Another thing I'd do is save the thought as a Inbox reminder, but I switched to me@onenote.com, since it saves it both in my OneNote notebook, and in my "Sent" folder in my gmail account, the redundancy can be useful.

[1] https://www.onenote.com/EmailToOneNote

vmarsy··on AT&T tries to trademark ‘Verge TV’
One thing it shows, is that at least that at&t has no international ambition for that TV/streaming service. If it did, it would pick a word that works well in many languages. Verge doesn't translate so well in french :)
vmarsy··on “Modern” C++ Lamentations
Thanks, that's an interesting read. indeed a developer can use that trick "in the case of conversion traits".

Monomorphization seems to be the source of 2 major problems: compile time, and binary size.

An optimization that could reduce the compile time by caching the generated code (at least when compiling over-and-over the same code base. i.e. "Incremental compilation") - and it seems that Rust already is doing something with it [1]. I wonder if something specific is done for template instantiations there.

Optimizations aimed at reducing binary size seems much more tricky, if not impossible, except as you pointed out in the limited cases described above. In the regular cases, templates are kind of working as intended: the developer has to think if he/she would have written the same amount of code N times if templates were non existent.

[1] https://blog.rust-lang.org/2016/09/08/incremental.html

vmarsy··on “Modern” C++ Lamentations
is monomorphization a more concise term for what is called "implicit template instantiation" in C++?

If so, is Rust worse than C++ when it comes to compile times of those? Heavily templated C++ code is known to be slow to compile due to this. Is it much worse in Rust? Are you aware whether C++ compilers do some special optimizations that Rust compiler doesn't have yet?

I don't see what can be done to make this better, the whole point of templates is to "pay" at compile time for some gains at runtime. (or in this case for gains in the amount of code a developer has to write)

vmarsy··on Show HN: Notable – A Markdown-based note-taking app that doesn't suck
thanks!
vmarsy··on Show HN: Notable – A Markdown-based note-taking app that doesn't suck
Wow this is really cool! I've been looking at OneNote alternatives, specifically due to the lack of Linux client. I really love the searching capabilities in OneNote, I hope this one has similar stuff.

If I were to switch to this, I would loose the Android app though, any thoughts/plans of how this could be used on Mobile? Could the same client be used to render files stored on a user drive (OneDrive, Google Drive, Dropbox) Usually apps are forbidden to use cloud drives to store their content, but in this case maybe it could since each file is actually plain user-generated `.md`/`.jpg`/... ?

It seems all Typescript/React based, it could be doable to port it to a webview? if you're reading this, can you point to the code that handles reading/writing content from the filesystem?

vmarsy··on Pessimism about parallelism
I'm more optimistic about parallelism, and multi cores in general.

Multi cores could have other advantages than parallelism. On mobile, if there's 8 cores, and if the device/os is able to figure out the current load, and based on that turn off up to 7 of those 8 cores, the energy savings could be significant on the CPU side. (Depending on how much energy CPU uses compared to the radio or screen on a smartphone)

Another obvious advantage as pointed as the end of the article is individual processes running independent work next to each other. Such embarrassingly parallel work can keep all the CPU busy pretty well.

vmarsy··on Firefox 64 Released
Really cool to have text contrast ratios available in Dev tools!

I hope multi-accounts containers will land soon on Android. The phone is where I feel the least in control of what's happening on the browser.

vmarsy··on What do you dislike about React Native?
it'd be cool if there was a simple way to create typescript react-native app, similar to create-react-native-app[1] without a dependency on Babel[2]

[1] https://facebook.github.io/react-native/blog/2017/03/13/intr...

[2] https://facebook.github.io/react-native/blog/2018/05/07/usin...

vmarsy··on How to drive in India (2015)
I think in a lot of the situations, there's a simple rule that Indian drivers follow, which is like motor boats official rules: the biggest vehicle has priority.

So when it comes to u-turns, cars won't do a u-turn if there's a van or bus coming from the other side, but a bus will have no problem starting a u-turn if there's only a flow of cars and motorcycles coming.

Motorcycles are just expected to flow around, make their u-turn small and fast.

Same thing when it comes to overtaking on small roads, or when there's those traffic police barricades at the entry/exit of towns, which reduces the road size to only one way. At those barricades, people will rarely have to come to a complete stop: they just look at how big the vehicle in front of them is, and if it's bigger they'll slow down to give it priority.

For overtaking, in Western countries we'd just consider whether there's enough space/time to safely overtake (unless you're a driver from the mountain regions), but in India they also consider who would win if there was a frontal crash, and the would-be loser will slow down if needed to make sure the bigger vehicle on the other side can finish overtaking.

The equivalent of the sailing boat in term of priority are the cows on the road: they get priority over any motor vehicle

vmarsy··on Startup Nation? Entrepreneurs Still Toil in Macron's France
> much more if they are married to a zero-income spouse

In France it's the same, but here's a major difference once you add kids to the equation:

Each kid of a couple counts the same as "0.5 zero-income spouse", up to 3 kids. After the 3rd kid (or if the kid has handicap), they count the same as "1 full zero-income spouse"

So for a couple with one spouse with a salary of X , one spouse without job, and 2 kids, the taxes would be calculated as if there was 3 persons making X/3 each, instead of 2 people making X/2 in the US. Given that the tax brackets are even more progressive than in the US, the impact seem huge.

vmarsy··on Instagram’s CEO
Is there any good book/resources covering some of or all the 'business-y stuff' that people recommend?
vmarsy··on Twitter shares drop after reporting declining monthly active users
> Don't forget the part where they now show you tweets that people you follow have liked, just the same as if they had retweeted them.

I rarely use twitter but the first time I saw these "person X liked this" I just looked up how to not get that. Turns out it's pretty simple, you just click on that tweet menu and select "I don't like this tweet", repeat for maybe one or two other tweets on your timeline, and then refresh your feed and they're all gone. People mentioned it can come back after a couple months, you'd notice quickly as your feed quality would suck, you just redo the same.

The only one I see now are "person X and Y liked Z tweet" but in that case I follow X, Y, and Z, so it's usually relevant.

vmarsy··on Battling Fake Accounts, Twitter to Slash Millions of Followers
> but you can't turn off seeing what people you follow like

Yes you can, not through an official setting unfortunately. But as TylerH said you just say "I don't like this tweet" on a few of the tweets that you see because "person X liked this", then refrsh your feed and they're all gone.

Maybe after 6 months-ish they come back, but you notice it really fast since suddenly your twitter feed sucks. Just do the "I don't like this tweet" trick again.

The only 'likes' I see now is if multiple people I follow liked a tweet from someone I also follow. Usually those are good quality.

vmarsy··on So Your Startup Received the Nightmare GDPR Letter
> You claim that GDPR has a big administrative burden to small businesses but that's not the case as long as your business model is not based on invasion of privacy. If it is, well, tough life!

There's something I don't get in your argument: How having a business model not based on invasion of privacy is protecting your business from receiving GDPR Subject Access requests requests, the legal fees a small business needed to spend to take care of those, and the handling of those?

In your food example it'd be more like as if a law required you to have an employee meeting with a health inspector daily. And that employee must not be a cook/staff. This seems easier for a big chain to comply than a small business.

Here, to monitor all their email, each social media pages, etc and spend time figuring out if each tweet/post is a subject access request is going to be much easier to scale for a big company compared to a small business.

Also one thing a bit off topic that's not clear to me is if suddenly a business needs to start handling and archiving sensitive information because of GDPR letters (for each request, there must be a proof of identity such as ID, passport scan, etc). You now risk having potentially non compliant businesses handle those. That seems like exposing yourself more to identity theft for each GDPR request you make.

(See "how do we recognize a request" in https://ico.org.uk/for-organisations/guide-to-the-general-da... )

vmarsy··on How to write efficient matrix multiplication
> The asymptotically fast algorithms (such as Strassen's[2]) outperform the naive algorithm (i.e. by definition, such is in the article) when matrices get large.

This is true only if approaching the matrix multiplication problem purely from a theoretical perspective. But the reality is that computers have a specific architecture designed to be as fast as possible, while still respecting the laws of physics.

The libraries such as BLAS deal with those architectures, and it happens that there, an O(n³) triple loop with the optimizations described in the Goto paper is what gives you the fastest performance.

Maybe if we were dealing with 1b*1b matrices, Strassen's like algorithms would start to shine, but with those sizes you already exceed the maximum space on a computer, in which case you then start looking at parallel algorithms on clusters/supercomputers where the algorithms become very different (see things such as SUMMA: Scalable Universal Matrix Multiplication Algorithm). In those cases, the computation happening on each processor would still be the fast O(n³) BLAS code.

vmarsy··on How to write efficient matrix multiplication
Writing the fastest matrix multiplication you can is pretty fun. It probably won't be as fast a BLAS or MKL, but if you get close to it, it's a rewarding experience.

> see what else can be done I recommend reading this paper by Kazushige Goto

After doing the easiest change of loop reordering for already significant perf improvements, the paper linked ("Anatomy on a high performance matrix multiplication") is really excellent.

It will walk you through all the optimizations like tiling for reducing L1, L2, L3, and TLB cache misses, and leverage vectorization.

Then for squeezing out even more perf I remember there's the things like loop prefetching, loop unrolling, which you would expect the compiler with the best optimizations flags even targeted for the native architecture to take care of automatically. But you realize that it's not necessarily true.

vmarsy··on GDPR for lazy people: Block all European users with Cloudflare Workers
I disagree with the analogy. Trying to use the same analogy: If I were a one person entrepreneur trying an MVP, I would be building a bicycle, not a car. And what I suggest is have the right to put a sticker on the bicycle: "Warning, this is not compliant with the car regulations" to make sure people don't have false expectations. (Because I agree that in the real world, only a fool wouldn't be able to differentiate between a car and a bicycle, but for web services, this isn't an easy task)

A one person entrepreneur might not consider him/herself to be "being in the webservice business". Instead he/she would consider being in the business of [whatever problem the MVP is trying to solve]. It just hapens that in the 21st century, most of innovation happens online.

Back to your car analogy, it seems that people on one side argue that all companies "being in the webservice business" are 'car makers'. some people on the other side of the argument might say it's not.

Also, ultimately, it's possible that after spending a lot of time and hours examining the legal requirements of GDPR, a startup realizes it's not technically hard to comply, but the issue here isn't implementing the requirements, it's more about getting all the legal analysis, certification, handling customers requests, etc.

> If you disagree, should the US also stop prosecuting VW for the diesel cheating?

In that case, VW has clearly been in the car business for much more than 2 years, and in my example "X users", a good value for X would be something order of magnitudes less than the number of VW customers around the globe. So no, the US would continue prosecuting VW.

vmarsy··on GDPR for lazy people: Block all European users with Cloudflare Workers
I feel that you're ignoring the situation of small startups with just a few founders. At this stage, it can really kill your business to spend a lot of your resources on making sure you're complying with GDPR. Usually the 'consumer' of those startups are OK to take some risk, heck a lot might even sign up with dummy emails.

The Poland proposal [1] to limit GDPR compliance to only large businesses was trying to address that. But it's flawed, because a small company (Cambridge Analytics) could still make a lot of damage to users' privacy... but the intent of Poland was good.

I feel there should be an opt-out based on the numbers of users and the age of the company/service: If you can easily prove that you're not handling more than X users and your company is less than 2 years old, then GDPR does not apply yet, as long as you warn clearly on your website that you're not-yet-falling-under-GDPR. If you're still in the GDPR-waiver zone but believe to be GDPR compliant, then you can remove the warning and are subject to GDPR like every other company.

That way entrepreneurs won't be scared to try some MVP here and there. I'm especially thinking of those trying to start a startup in countries that are part of the E.U.. The rest of the world entrepreneurs can just focus on their local userbase.

[1] https://iapp.org/news/a/polands-proposed-gdpr-exemptions-spa...

vmarsy··on Publish everything you write (pretty much)
> To even read this article, I had to sign into facebook, deny a prompt to provide alerts, close 4 messenger windows, etc. etc. Not a good way to read.

Is it on mobile? I opened on Chrome browser it doesn't require you to sign in at all to see the article. There was a "Join or log into facebook" in the top right, but you don't have to do it to read the article. I was actually surprised to see something looking like a Medium article, as I was expecting some regular of public FB post.

The only negative experience is I wish the font was fully #000000 black color. It's pretty dark already but I don't like it on my monitor.

vmarsy··on Southern White Rhino Victoria Is Pregnant, Could Save Subspecies
The Bloomberg website shouldn't be used in this submission. I find it shameful to put a paywall on an article literally copy-pasted from what Associated Press provided. It would make sens only if the ads disappeared if you're a Bloomberg subscriber.

The exact same article word for word:

https://www.nbcsandiego.com/news/local/Rhino-Pregnancy-at-Sa...

or

https://www.telegraph.co.uk/news/2018/05/17/pregnant-rhino-s...

or

https://www.wthr.com/article/rhino-in-san-diego-pregnant-cou...

EDIT: even better, the link Johnny555 linked to: https://www.apnews.com/10c94168ec6d4efd894755ac84b17bca/Rhin...

Curiously it wouldn't show up in my Google search.

← PreviousPage 2 of 22Next →