HN user

vsundar

48 karma
Posts4
Comments19
View on HN

With lsp you don't need tags. You essentially have a lsp server like clangd [0] running in the background for finding references, definitions, code completion etc.

With the latest release 29.1, emacs comes with an in-built lsp client - eglot[1]. So you need to (a) Set up clangd or some other lsp server for c++. Make sure it's accessible from emacs (use something like exec-path-from-shell to get your shell paths into emacs) (b) Set up your project for clangd - this involves generating a compile_commands.json which basically lists the full compilation invocation of each and every file in your project. CMake has options to do that and likely many other build tools or maybe use something like bear[2]. (c) Enable eglot (install the package if needed on older versions of emacs) and configure appropriately.

I also use projectile for project mgmt though emacs now has something in built for that too.

I can post my configs if that helps.

[0] https://clangd.llvm.org/ [1] https://github.com/joaotavora/eglot [2] https://github.com/rizsotto/Bear

"Bök aspires to create a poem enciphered into DNA that will replicate within an organism until the end of time"

Apart from the bioengineering there is "a pair of mutually-enciphered sonnets, ‘Orpheus’ and ‘Eurydice,’ so that either poem can be translated as the other using a cipher he called ‘ANY-THE’—so, “oh stay / my lyre” in ‘Orpheus’ becomes “in fate / we rely” in Eurydice’s corresponding lament." [1]

I found this just mind blowing.

[1] https://fivebooks.com/best-books/the-deep-future-david-farri...

Wow, thanks for that link. That's incredible:

JBIG2 doesn't have scripting capabilities, but when combined with a vulnerability, it does have the ability to emulate circuits of arbitrary logic gates operating on arbitrary memory. So why not just use that to build your own computer architecture and script that!? That's exactly what this exploit does. Using over 70,000 segment commands defining logical bit operations, they define a small computer architecture with features such as registers and a full 64-bit adder and comparator which they use to search memory and perform arithmetic operations. It's not as fast as Javascript, but it's fundamentally computationally equivalent.

While I do think it is true that people break norms, I'd say a large factor here has been the messaging and leaders behaving like the danger is past.

Leaders like the home minister, Amit Shah [1] and the health minister Harsh Vardhan [2] have been saying that we are in the end stage from Jan. Starting vaccinations is not the end game. We opened up for crowds for a cricket match (57k) [3] and kumbh mela [4] (actively promoted by the state and central govt), where the latter was expecting crowd in millions. (10 lakhs is 1 million). Covid protocol could really not be followed with that crowd [11]. We literally had an Assam minister saying that masks weren't needed earlier this month[6]. And of course election rallies with big crowds [5]. PM Modi was exulting about a huge crowd just a few days ago [12] Amit Shah was actually saying these are not related to the spikes [13]

I'd actually lay the blame on these:

- Inconsistent messaging on safety precautions.

- Vaccine shortage and related slow vaccination drives. India did not give advance orders and stockpile vaccines [8]

- Oxygen shortage. We already know oxygen was needed. The govt didn't follow through and build capacity for oxygen plants. We floated tenders 8 months into the pandemic and didn't follow through [9]

- We did not pay attention to and sequence variants to stay on top of things. [10]

I could go on... we are short various medicines, facilities; state govts of Gujarat, UP, MP, Bihar were actively under reporting by sometimes more than 10x [13]- if you don't acknowledge the problem, you can't fix the problem; not opening up vaccinations to everyone and not letting in vaccines that were already approved outside (both until very recently); not listening to folks who were trying to point these out...

Apologies for the long response. But yea, I'm shocked at how bad things are, and, while I think people can follow rules better, I'd squarely lay the blame for this on the govt.

[1] https://www.ndtv.com/india-news/union-home-minister-amit-sha...

[2] https://www.indiatoday.in/coronavirus-outbreak/story/we-are-...

[3] https://www.thestadiumbusiness.com/2021/03/15/narendra-modi-...

[4] https://www.thequint.com/news/india/massive-crowd-gathers-fo...

[5] https://economictimes.indiatimes.com/news/india/covid-has-a-...

[6] https://www.news18.com/news/buzz/assam-health-minister-himan...

[7] https://www.newindianexpress.com/nation/2020/dec/22/no-masks...

[8] https://www.telegraphindia.com/india/how-we-landed-in-covid-...

[9] https://scroll.in/article/992537/india-is-running-out-of-oxy...

[10] https://scroll.in/latest/990519/coronavirus-less-than-1-samp...

[11] https://economictimes.indiatimes.com/news/india/maha-kumbh-m...

[12] https://www.youtube.com/watch?v=W5jzuE866lo

[13] https://twitter.com/jburnmurdoch/status/1384782949879517185 (may have to go through the twitter link to access ft article)

Your question prompted me to read further on this. You got my upvote.

Nigeria was in a recession and exited a few months back per [12]. This bbc video tries to answer the question of why the recession happened [13]

The 2017 budget has N7.3 Trillion expenses with N4.94 Trillion revenue (of which oil revenue is N1.99 Trill)and a deficit of N2.3 Trillion. The oil revenue is not near enough. A good portion of their expenses looks to be capital expenditures (infrastructure and security) and debt servicing. "In 2017, debt servicing is projected to increase by 22 percent, which is above the current inflation level, indicating a real increase in the country’s debt burden as the FG plans to increase borrowings. " [0]

The deeper reasons might be the history - civil war, dictatorships, communal violence over decades including an insurgency and concomitant vicious cycle and corruption. Things look to be getting better.

Poverty is huge. [1] mentions 33% as below the poverty line ($1.90/day per [8]). India where I'm from as a comparison has 12.4% per [10]. Huge inflation - 9% in 2015 per [1] but now at 16% per [11]

[2] mentions three causes for poverty in Nigeria - income equality, ethnic conflict and political instability.

Civil war right after independence led to a dictatorship [9]. The oil boom in the 70s increased the govt's (dictatorship's) money but "did little to enhance its political and administrative capacity, but did increase incomes and the number of jobs that the governing elites could distribute to their clients". [6]

Looks like the return to democracy in 1999 (Fourth Nigerian Republic [3]) is when things started to turn for the better with civilian rule. Still with lots of violence [4] and a religious insurgency by Boko Haram at least until Dec 2015 ("technically defeated") [5]. Existing poverty is itself mentioned as as a cause for the rise of Boko Haram and they also made things much, much worse - "roughly 10,000 deaths since 2011 and roughly 2.6 million displaced Nigerians" (and more economic impact) [6]. Corruption seems to be widespread with scams listed till 2015[7].

The 2018 proposed budget tries to reduce the deficit and forecasts a 40% growth of the non-oil revenue (though many of the expenditure items have a similar growth). [14]

[0] https://home.kpmg.com/ng/en/home/insights/2017/06/2017-budge...

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

[2] https://en.wikipedia.org/wiki/Poverty_in_Nigeria

[3] https://en.wikipedia.org/wiki/Fourth_Nigerian_Republic

[4] https://en.wikipedia.org/wiki/List_of_massacres_in_Nigeria

[5] https://en.wikipedia.org/wiki/Boko_Haram

[6] https://en.wikipedia.org/wiki/Economic_history_of_Nigeria#Bo...

[7] https://en.wikipedia.org/wiki/Corruption_in_Nigeria

[8] https://en.wikipedia.org/wiki/Poverty_threshold

[9] https://en.wikipedia.org/wiki/History_of_Nigeria#First_perio...

[10] https://en.wikipedia.org/wiki/Poverty_in_India

[11] https://tradingeconomics.com/nigeria/inflation-cpi

[12] https://www.reuters.com/article/us-nigeria-gdp/nigerias-econ...

[13] http://www.bbc.com/news/av/world-africa-37230696/nigeria-in-...

[14] https://www.pwc.com/ng/en/assets/pdf/pwc-2018-nigerias-budge...

.. the cash in hand doesn't account for all the money you have.

Yes, but your original point I was addressing wasn't about all the money you have but specifically income.

My point is that income is coming from some transactions and 95% of transactions were cash based pre Nov 2017. And only 1% of cash outstanding was unaccounted for after demonetization.

My point is by totalling out just the amount of cash maybe 5-10k rupees the income cannot be accounted.

Sorry don't understand what this means.

But this is probably moot now.

India does have very large middle class population and most of their income is unaccounted.

At least until Nov 2016, wouldn't this income have been cash given that cash transactions accounted for 95+% of transactions[1]? (Percentage by total amount would have been useful too but I couldn't find that stat.) If these were 'unaccounted' then demonetization would have caught that. But only 1% of banned currency wasn't deposited (as of Aug 2017) [2]. The initial estimates given were for about 20% to not show up [3]. That didn't turn out to be the case.

So while I'm sure there is unaccounted income, I'm not sure this is most of the income of a very large middle class.

[1] https://www.forbes.com/sites/wadeshepard/2016/12/14/inside-i...

[2]https://en.wikipedia.org/wiki/2016_Indian_banknote_demonetis...

[3] https://www.forbes.com/sites/wadeshepard/2016/12/10/indias-c...

Much harder to throw money at luxuries when you're saving a lot.

I think this misses the larger point that Indians overall don't have that much money in hand to spend on luxuries.

I believe GNI per capita ppp [1] is the right comparison. (someone please correct if I'm wrong.) For india thats ~ $6K whereas for the US its ~ $57.5K, almost 10 times. (Also while the savings rate is more, the actual amount saved looks greater for the US.)

I think the parent is right, grand parent just proves the point of the article.

[1] https://en.wikipedia.org/wiki/List_of_countries_by_GNI_(PPP)...