Better HN
topnewbestaskshowjobs
Log inSign up

yutijke

147 karma · joined Jul 8, 2021 (5y ago) · 54 submissions

Submissions

comment 2y ago · link · parent

https://github.com/petermattis/fastcgo, which is now 7 years old seems to do something similar without the need to about obscure CGO FFI configuration. It also seems to be more generally applicable for any language with C interop.

There had been an issue for having something similar in the language itself - https://github.com/golang/go/issues/42469, but the Golang compiler team rejected it. If you have followed similar discussions around this with the Golang compiler team, you will notice a pattern of interaction that strongly indicates that they are very much opposed to ever accepting this into the compiler.

comment 3y ago · link · parent

As the sibling comment by eternityforest says, OPFS does not create real files on your file system. It is backed by sqlite or some other embedded key value store.

So, if you want to backup your webapp data, you cannot use any filesystem backup tool.

And since OPFS cannot access your local files you cannot use it for webapps that largely use local file system data.

Something like scoped storage would have been great. Each webapp gets a separate directory where they can store your data. Easy to backup and you can also drop any local files or directory in there with existing OS tools.

comment 3y ago · link · parent

Looks like clickbait to me. OPFS is not a real filesystem. It's basically indexedDB with filesystem-like characteristics. It does not give you access to the host filesystem.

The File System access API can do that, but it needs the user to grant permissions for each file or directory accessed separately, and this permission cannot be persisted between sessions. So it is a constant nuisance and cannot be used to create an ergonomic mostly local web application.

comment 3y ago · link · parent

As of now, blocking the sender of the ad has worked out for my Indian number. No repeat attempts to shove crap down my throat.

One problem in ensuring doesn't become a problem or gets solved is that WhatsApp is incentivised to allow Business customers to spam us, as that is how they make money.

It is sad that a subscription based model for comms is not longer economically feasible.

comment 3y ago · link · parent

You have all these issues with cash added along with additional inconvenience of handling change, counting and making sure to keep enough of it. Most Cash on delivery options also let you pay via card or UPI on spot.

Almost every small shop vendor I know accepts UPI today without complaint.

comment 3y ago · link · parent

You can keep your points.

Congress supports religion specific exceptions for personal laws - marriage, inheritance, etc.

BJP stated policy position opposes this, which by definition is more close to French secularism.

I don't even like BJP, but y'all seriously need to get over your Gell-Mann amnesisa.

comment 3y ago · link · parent

How are they supposed to fund the development then?

Open source would have been ideal, but when people ask for open source it's mostly them asking for free. We know that most developers don't truly care about open source beyond the surface level given how popular VSCode is.

If you want to make money and pay rent, Open Source has shown to be disastrous for almost all business models.

comment 3y ago · link · parent

Aren't countries like Japan or South Korea known for gruelling work hours?

I think the economic system itself is not conducive for healthy families where both parents get sufficient time to spend with kids or family.

In the past this may have been papered over with the cultural expectation that the woman takes care of the house and family and the man works, but this cultural framework has been broken and done away with without any replacement, cultural or economical.

comment 3y ago · link · parent

> very few interesting accounts from Twitter are available on Mastadon Would you mind sharing what topics your twitter consumption centers on?

For me it was the opposite, since a lot of Tech folks I followed moved over.

Folks I follow for IR/Politics and Linguistics still seem around. So, my twitter consumption has tilted away from Tech to those topics.

comment 3y ago · link · parent

For me it's search. I loved search (and search operators) on Twitter. Used it heavily to curate my twitter lists, to only get tweets pertaining to topics I was interested in.

When many tech folks began moving to Mastodon, I also decided to kick the tires to see what all the buzz is about. But I got tired of sifting through unrelated toots from people to find technically relevant ones.

Now, I know proper search support will never be added to Mastodon, so I don't plan to use it. I understand their reasons for it, but it's not for me.

Thankfully twitter for other topics I am interested in seems largely untouched.

comment 3y ago · link · parent

How do you find the time to go through it all?

A lot of open source developers also post about other topics like their cats, dogs and favorite types of bread.

Which is fine. It's their profile. With twitter I could filter out these with carefully crafted search queries on separately maintained lists since I only have so much time in my day to devote to Tech,

I cannot do this on Mastodon since no one is diligent about hashtags and it is an explicit policy to cripple search. I've most stopped following open source developers since then.

comment 3y ago · link · parent

But most people do not think critically. Even if we try we do not have access to perfect information.

You read a news article. Is it fact? Is it a tilted spin? Is it truth that omits strategic nuances?

No matter how critically I approach it, I will not be able derive objective truth from biased and fuzzy information.

At some point you will need to trust someone to curate.

comment 3y ago · link · parent

Unchecked Censorship by the government can be a problem, but I find it hard to take voices in this space on face value since they are often the most vocal cheerleaders when a government or political party they like is doing the censorship since it's "Human rights" not politics.

Given the dissolving line between Social media and the Town square, who should be the arbiters of speech on Social media?

A committee appointed from "Interest groups" with all the right "credentials" and "expertise"? Effectively an incestous group with circular pats on the backs.

A separate body elected by the people just for this purpose?

Something else?

comment 3y ago · link · parent

That still doesn't solve the issue of surnames being an imperfect signal of caste. Many surnames are shared between castes.

Plus there is no common naming system in India. In the same region within the same caste you can have

- Surnames based on ancestral village

- patronymic surname (Take name of father as your surname)

- "Normal" surnames

You have folks from my caste that follow each of these. How will you now find their caste from their Father's name in Delhi or Mumbai?

It is not easy to narrow down on the caste of the person unless it's a common surname like Iyer, Iyengar, Agarwal, etc. And India has a hell lot of surnames across multiple regions.

Even if I tried, I would fail to recognise the caste of a majority of my neighbours from my hometown. Forget my coworkers who come from all over the country.

It would only work for families that have lived in the same village for multiple generations.

comment 3y ago · link · parent

Thanks for pointing this out.

I can now ignore anything you say about caste since it shows you don't know anything about it.

Most last names are used by multiple castes.

Except for popular surnames like Iyer, Sharma or Agarwal the link between surname and Caste can be quite ambiguous.

Given how regional some castes are, in Geographically mixed work places it's really hard to narrow down the caste via surname.

What does a Punjabi know about the caste their Telugu coworker belongs to?

comment 3y ago · link · parent

Which company this at? Is this discussion of castes among other Indian coworkers? They gain nothing from Caste signalling to you.

We should name and shame if a company doesn't act against discriminatory dog whistles.

I drink, eat meat, eat beef and do not bear any caste specific signifiers on my person. No other Indian expat has tried to enquire about my caste or treated me differently because it's ambiguous.

99% of Indian immigrants are Upper or Middle castes. The reason for this has not been studied. But a few causal factors can be.

- Wealth

India is a poor country. Most Indians upper or Lower caste are poor by first world standards. But the few Indians who are rich tend to be more upper caste (Scholarly, Mercantile or Landowning castes).

But this is also a bad explanation since most Indians who come to US for higher studies do so on a loan.

- Culture

Upper caste families even when dirt poor may have a higher emphasis on education which means they are overrepresented in employment based skilled immigration.

Edit: Vegetarianism often gets bandied around as an upper caste but most Urban Indians eat meat regardless of caste. So, except for a few cases caste is very much ambiguous since a caste that's upper caste in Western UP may be lower caste in Eastern UP.

comment 3y ago · link · parent

I know. This is a hard problem. Most companies just make it a subscription, but I wish it wasn't that way since you end up not owning the the software which you bought.

comment 3y ago · link · parent

> A huge % of reserved seats go empty, simply because there aren't enough candidates.

This is an interesting point. A huge focus of Indian politics is lobbying groups from various lower caste communities asking for _more_ reservation. The fact that this point never reaches discussion, that the Indian schooling system is failing its students never makes airwaves gives me the feeling that Lower caste community leaders and politicians are _not_ interested in fixing the problem if it loses them their captive vote banks.

> https://www.thehindu.com/news/national/other-states/16-year-...

Rural India has serious problem in class and caste. Depressing state of things overall.

But I would note that you could have chosen a better example. This incident does not have any caste slur or anything to indicate that this was rooted in caste. Government teachers and employees power-tripping in their little fiefdoms is a common story across caste boundaries. I personally know of examples of upper caste folks facing violence in schools. One had their front teeth smashed by their teacher by "accident", but you can guess the type of environment where these accidents happen. This will also never make headlines since there is no caste angle to push.

Caste is a problem in Rural and to a smaller extent in Urban India. But you will also have to admit that our media and related political interests are hell bent on fanning the flames. The caste angle is brought into every petty bit of violence. So much that it becomes hard to believe even what may be genuine cases.

The American version of this would be race being highlighted if the victim is Black/Indigenous/Hispanic. A common reddit trope is if the victim's race isn't mentioned then they're white. If the perpetrator's race isn't mentioned then they aren't White/White-adjacent.

Scholarships spanning the whole length of education rather than reservations may be a better mechanism for improving opportunity in my opinion. It would also let you know if your scheme is working since with reservation, you just let potentially unprepared students through without fixing other prior systemic issues.

comment 3y ago · link · parent

They should have just stopped at Windows 10.

Maybe even made it such at a license is for 5 years and you'll need to renew at the end of the period if you want updates.

With something like an OS I do not want bold redesigns every other year.

A bold "about the same design" would be very nice.

comment 3y ago · link · parent

The president of India belongs to a Scheduled Tribe. If optics is what you are concerned about.

Some occupations like Law employ such a tiny percentage of the population, that Caste becomes too coarse grained to be the only dimension of analysis for the basis of privilege.

You probably will have a better chance of breaking into the top echelons of this industry by living in the right gated society in Delhi that puts you into contact with these entrenched folks rather than being the right caste in some remote Indian Village.

To look at a broader scale of occupational distribution, SC/ST folks have 23% affirmative action Quotas in Govt/State universities like IITs, IIMs and Medical Colleges. Is the issue that they are unable to compete in the Industry post college?

Caste based affirmative action quota is 52% with overall affirmative action quota at 63%.

Do you think more affirmative action is necessary to fix the problem?

At this point it just looks like " The Floggings Will Continue Until Morale Improves".

You could also say no matter how large a portion you cut out of a pizza, you will never feed a hundred people if one pizza is all you have.

comment 3y ago · link · parent

Gell-Mann Amnesia again. You lot have complained bitterly about misrepresentation of facts by mainstream media. And take the commentary of the same media on other countries as gospel.

If there is anyone living in Punjab here you should probably add your opinion here to enlighten others (and possibly me).

From my perspective some Canadian Sikhs seem to have an axe to grind and seem to be completely out of touch with the sentiment of the Sikhs actually living in Punjab. A lot of Punjabi Sikhs seem to be unhappy with how some of n-th gen diaspora folks with no connection to the land (have never lived there) are claiming to speak for the whole of Punjab.

comment 3y ago · link · parent

Yes, I use browser bookmarks on chrome.

I am not completely happy with them though. There is no tagging support so I have a haphazard tagging system via #tags in the bookmark name.

Chrome also doesn't have any non-google sync options, which is a pain. I am using floccus to sync currently but it only syncs bookmarks and not other Browser settings or history which is a pain. And it also doesn't work on Android chrome since there is no web extension support Android chrome.

comment 3y ago · link · parent

"Type Tetris" is the perfect description of what I've felt with rust at times for stuff where I don't care too much about performance but don't want to wrap everything with Arc<Mutex<T>> or .clone() everything.

I don't say this from a perspective of distaste. I really like rust's ecosystem and tooling, but would really love to use `RustScript` one day which is basically Rust with a hint of Go. Green threads and all references can be treated as if they are effectively pointing into the heap.

comment 3y ago · link · parent

I have seen this perspective thrown around quite a bit. I see where they are coming from, but I can't empathize with it.

Rust's ecosystem does an admirable job in making it less painful to use, but I am still waiting for the day when just chuck any type into Gc<T>. Rc<T> or Arc<T> is not an alternative here. A garbage collector seriously makes business logic way easier to write. And none of rust's other advantages can offset this for Web development.

I know there have been attempts at general purpose garbage collectors for rust but as far as I've seen none of them seem to work seamlessly. Some justifications I've read about it go along the lines of LLVM not having native support for stackmaps?

And given how you have unmanaged native pointers lying around everywhere, I don't know if you could even have a general purpose GC without putting heavy restrictions on code that uses it effectively creating a split dialect.

comment 3y ago · link · parent

I think the best way would be to just keep note of what the younger generation is using through your kids, nephews/nieces, etc.

And tangentially since you are mentioning old age, I think cognitive decline is a bigger worry than finding the right resources to keep up with things.

It has been painful to see my Grandfather who can otherwise show great insight on topics he is familiar with, struggle with understanding things a 5 year old would breeze through today. I would say having a respectful and trusting relationship with someone from the younger generation is very important since you may reach a point where you by yourself may not be able to keep up with things.

comment 3y ago · link · parent

Once again, keep in mind that this is an Indian perspective. YMMV for North America.

Sure you will make more money than them on your first job. But how many of us are able to enjoy that money to the fullest extent?

You will most likely end up being forced to work in a "Tech Hub" city like Bangalore (the American equivalent would be San Francisco and similar)

All those zeros in your salary end up going into sky high rent and housing prices. Saying nothing about the traffic, poor infrastructure and pollution that you'll have to suffer from anyway.

Looking at my childhood neighbours from smaller cities who are drivers/secretaries/carpenters, they may be going on fewer expensive vacations, but they are still able to afford a decent quality of life with way lesser stress. This is hard to quantify, but you don't have to ask me who I would bet on to suffer from High Blood pressure, Heart issues, etc earlier on.

EDIT: Some folks may mention remote work may alleviate these issues, but companies seem hell bent on dragging their employees back into the expensive hell holes their offices are based in with Weak sauce Hybrid work that gives you none of the benefits of remote work.

comment 3y ago · link · parent

I went to undergrad in India so YMMV for the primarily North American population here.

A lot of people look back at college fondly, but to me it just felt like a lot of time and money spent for skills that I had to acquire on my own any way.

It was a common opinion among my friends that other non STEM majors seemed to have an easier undergrad life where they could find time to explore things rather than trying to build their profile for the cutthroat competition in the Indian tech industry.

It felt very wasteful to spend hours on all that theoretical knowledge and the Leetcode rat race while knowing they will heavily atrophy from lack of use the moment you get your first job. It left you wondering if it was worth it in the end.

comment 3y ago · link · parent

For a lot of Indians Arranged Marriage tends to more like introductions from friends except you replace friends with your family.

No one forced my Mother to marry my Father. There was a period where they just talked and got to know each other. She could have said no. Nor did she have to compromise on her career. It was not a business transaction where my Father went to a supermarket to get one wife to cook and bear sons.

It looks like you've read about an Arranged marriage that went bad in a news article and seem to have decided that you know all that's there to it.

comment 3y ago · link · parent

Have you spoken to your American colleagues about their opinions on these topics (unfiltered)? My experience on the internet essentially has been that you cannot discuss a topic even peripherally related to India with Americans on the internet without a mention of Hindu Nationalism, Caste, Religion and "It's not racist if it's actually true"-isms.

Does this belligerant ignorance extend to IRL interactions (maybe more polite). The HN discourse on India and related topics is giving me a serious feeling of Gell Mann amnesia.

The lack of intellectual rigour and over generalisation of a few cases has been making me adjust my priors on the weight of any discussion here on other unfamiliar topics which can't be proven to be objective fact.

A lot of the supposed cases of casteism seem to be willful ignorance of linguistic/regional/other cliquey behaviour that is common among Indians (and the rest of humanity). This makes it hard for me as an Indian who hasn't worked/lived in America to actually judge if these people actually know what they are talking about.

comment 3y ago · link · parent

If there is a large scale pogrom of journalists who criticise the government then there would be a chilling effect on critical coverage of the government. Large scale protests wouldn't exist and wouldn't be successful.

Your statement does not jibe well with the lived reality of most Indians. We have plenty of access to critical coverage of the ruling party and its leader. Plenty of journalists are living their lives, paying rent and venting out their frustrations against the government on twitter without being arrested.

A sample of Indian publications that are critical of BJP:

https://www.deccanherald.com/national/national-politics/govt...

https://caravanmagazine.in/politics/hindutva-pop-hate

https://www.newslaundry.com/2022/12/24/aaj-tak-and-india-tv-...

https://thewire.in/politics/twitter-amit-malviya-bjp-it-cell...

https://thewire.in/politics/if-rahul-gandhi-were-really-irre...

https://www.ndtv.com/opinion/bjp-accused-of-using-app-tek-fo... and https://restofworld.org/2022/the-wire-vs-meta-india/ - This bit of critical journalism was found to be outright creative writing. But since you Anglos don't trust Indians on how their own country works maybe check out Alex Stamos of the Stanford Cyber Policy Center on this piece of news. I couldn't care less about the guy but maybe you will give his words weight. The reason I am giving this example is because this is a clear cut example of journalists publishing literal fake news critical of the governement and going about their lives without imprisonment and consequences.

Time to time a corrupt politician tries to throw around their weight and gets people arrested, but our legal system typically strikes down the case. This is a problem with every political party in India but we don't have mass imprisonment of journalists critical of BJP as some publications may want you to think.

12