skysight-inc/HackerNews huggingface dataset:
>Ghana for example has a $40-$50 billion GDP, and China recently agreed to lend them $15 billion to try to develop their natural resources (bauxite mining for one) for China's use. When you're borrowing that large of an amount of capital vs the size of the economy that has to repay the debt, it's obviously risky. Ghana's vice president optimistically referred to it as a Marshal plan for Ghana. The pessimistic retort by a member of their parliament

Bauxite mine is not a unpredictable source of future income. Much like crude oil, even if it is the end of the world tomorrow, it is really, really hard to not to make any money out of it.

Another like these are their electric station projects in Pakistan: a very populous country, but their British era grid is beyond repair. Loans given for these stations had high interest, but at the same time Chinese put in sensible conditions like force-majeure insurance, and that the project will largely be done by Chinese state companies guaranteeing that not a single Pakistani bureaucrat had opportunity to steal the funds. Given current electricity prices, there is no chance that they will ever be under water for on loan.

A lot of projects are said to be financially engineered to be self-repaying. Effectively, these are not loans, but misnamed leasing agreements. The concern should be over ones that aren't.

Saying that China just litters money around without hoping to get anything in return, is simply beyond naive.

I can admit, Chinese officials are inept at it. Lots of bureaucrats working on those projects do look for making a name for themselves over having the project succeed. Their competence is being questioned.

Every time I'm seeing a watercooler talks of officials during industry events, it always comes to "facepalm manoeuvre" when their talks cross over "a yet another multi-gigabuck loan to another god forsaken country."

I assure you, even within the party itself, these projects, at least, make people scratch their heads.
It does seem strange if you think of it as “return the last evaluated thing from the function.” But that’s not the semantic; the semantic is “everything is an expression and expressions evaluate to a value.” Removing this behavior would make these languages less consistent.

(And yes, in both Ruby and Rust not literally everything is an expression, but almost everything is.)
> JS is the assembly of the web, do you also criticize games written in assembly?

hm
I think there are at least two separate issues here; some countries have health and safety laws requiring natural light, while others require natural light in newly-built offices (as a condition of planning etc). Can you build an office in London these days that doesn't have natural light in the main spaces? I'd be sceptical.
> It is not karma.

A side point, western view has twisted karma. The true meaning (and read more about it if interested as I've probably twisted it a bit too) seems more towards 'by putting more good/bad in the world, there is more of itm therefore more of the same is likely to return to you and this good/bad you create is developing you as that person'.
I don't know if the author is experienced or not. But something I do know, is that the more experience I get, the more I fear dependencies and the more I value simplicity.

HN is a simple website. I'm glad that they decided to keep the code simple as well. I love the fact that the code almost fits in a single screen. Zero dependencies. You can understand the entire code in a few minutes.

I think new developers greatly underestimate the negative impact of dependencies. Today, something like create-react-app downloads hundreds of megabytes of dependencies. Libraries, transpilers, compiler extensions, and various tooling. Of course all those things come with many advantages, but what most people miss is the huge cost of all that. The increased complexity introduced by dependencies. The unnecessary bloat.

Sure, the way you name your variables have an impact on readability. But it's nothing compared to adding thousands of dependencies to your project.
As someone who has been employed in this space recently: No there is not.

There is however a lot of middle managers who have heard the term and want to pay crud vba developer wages for people to make pretty graphs in excel.

The credential inflation is also getting ridiculous. I have an MSc and I don't see how me being able to do quantum chromodynamics at one point in my mid 20s adds value to a business ten years later.
This wouldn't be regulated if this wasn't a problem. There are a lot of "silly" things in workplace regulations precisely because employers tried to take them away.
my guess is it allocates the value onto the stack and then inside mapinsert it knows to memcpy the value into the bucket because it knows the size of the value.

like

tmp = 9001
runtime.mapinsert(m, "key", &tmp)
That's because the electron app doesn't use the same files for your chat history. You have to use Skype Classic for that.

You can still install the latest 7.41.0.101 version of the classic Skype on a Windows 7 or newer system using one of these links:

https://go.skype.com/classic.skype

http://download.skype.com/msi/SkypeSetup_7.41.0.101.msi

https://download.skype.com/5d7ac191986ccb485223c4e4e9e3e4ce/...
Not a perk. I fired an employer for failing to provide natural sunlight for a reasonable amount of time throughout the day. I’ve also rejected offers involving lack of sunlight. One place adjusted to this requirement quite well. Apparently I was the first candidate to even bring this up when I asked about the working environment.

The cost to my health is measurable.
There's a fair bit of evidence that not seeing natural light has health effects, AIUI. In that sense, it's just like any other workplace health and safety rule.
Thank you!!! It drives me insane that residential customers expect business grade service, service support, and uptime. Yet they want to pay a fraction of the price.
I agree with your sentiment. I do prefer studying from books, but really try to just take a multifaceted approach: speak everyday, watch movies/tv, read native materials/bed/etc, also use chinese language study books.

I was curious though, when you said Chinese grammar was tough, what specifically did you think was tough? I always sell Chinese grammar as being super simple. It’s the easiest grammar of any language I’ve ever studied so far. I understand how depending on what language you come from other languages can be easier or harder of course. (E.g. Koreans can learn japanese easier than Americans, etc.)
You don’t even need to buy a plate. If you’re gonna commit a crime, why not just swap it with someone else’s who has the same make and model?
Yep, I've never worked in a room with windows. It leads to what I call coal miner syndrome: go in before the sun rises, leave after it sets. Bums me out, particularly during the winter. :(

Luckily, where I work now, we're getting a new office, and when the manager presented the plans, one of the first questions was, "Who gets the window seats!?"
> sounds like asking a phone company to tap a phone, which is pretty well established?

That is exactly what they are asking for. In fact, the legalisation enabling them to gather the data and under what conditions (the authorisation required, like a court order) isn't being changed. This new piece of legislation just extends who they can force to collect it form them. It use to be the telco's, which was originally just phone taps but then extended to internet data. They are now extending that to software companies. (Also cloud providers like SpiderOak and "secure email" companies.)

In a few words this extension allows them to order a software company to (with suitable compensation of course):

1. Develop / assist in developing an undetectable tap / bug for them, and

2. Surreptitiously install it for them via an over the air update.

This extends their reach from phone calls to any device that auto-installed software updates / patches. Whether you consider the ability to install a "phone tap" into your phone, tv, car, router, wifi camera, pc, robot vacuum, modem, that can read all the data on there, enable the microphone and camera, monitor the GPS and other sensors, read keystrokes, fingerprints and other authentication data to be roughly as intrusive as someone monitoring your phone calls is I guess a mater of taste.
Now if they'll just go back to a proper native desktop app, maybe it'll be usable for business.
When optimising code, never guess, always measure
Perhaps this why HN still uses tables for presentation - nobody dares to change it?

There's also simply no reason to change it, it works.
At some point I the worst of both worlds — a desk directly underneath a corner frosted glass skylight/window combination, meaning impossibly bright light in the early afternoon (making my display quite hard to read), and no effective nearby artificial lighting when it started getting darker. Took me maybe a month to find another job after my boss insisted I couldn't move my desk elsewhere.
What Does Science Tell Us About Sex Ed?
> An air gap may not be viable, but you can place a firewall there.

No idea how it was one or two decades ago, but modern architectures certainly have one.

I can't remember the specifics, but the one I looked at was actually pretty beefy hardware-wise, it had three reasonably powerful cores, 1GB RAM, etc.

> There is no reason for everything to be on the same bus.

It isn't. They would run into bandwidth or (more likely) latency issues anyway.
Agreed. From what I can tell the data scientists at my company pretty much are running a few SQL queries with simple stats. They also seem to have a high turnover. It looks like they got hired mainly because the company wanted "data science" without knowing what it means.
The native (they called it "Classic" on the download page) is no longer available for download. I found this out the hard way.
This was prompted by unexpectedly finding that in Python 2.7.4, the fragment:

a2, c = a2+c, c+2

ran faster than the fragment:

a2 += c
c += 2

Context and timings in the post. Speculation welcome as to why this might be true, and your predictions for Python 3 invited.
The worse part is the insistence of Ruby and Python to keep JITs away from their canonical implementations.

Sure there is PyPy and the "C JIT" on upcoming Ruby, but they don't seem to be widely deployed.

Maybe with Graal and J9 focus on increasing support for dynamic languages, that will eventually change.
Measuring errors vs. exceptions in Go and C++
I thought the article was talking about Natural Light https://www.naturallight.com/
Wow, this is pretty impressive. But where did these people go? Messenger didn't offer video calling until 2015, Whatsapp until 2016.
That's a very good advice. That expectation and reality mismatch causes a lot of problems and that's also well captured in this article.

https://towardsdatascience.com/why-so-many-data-scientists-a...
The Arabs had translated many Greek and Roman works into Arabic, and then these were translated back into Latin by monks hundreds of years later during the time of the crusades.

So not the original works, but not anecdotal either.

https://aeon.co/ideas/arabic-translators-did-far-more-than-j...
https://en.wikipedia.org/wiki/Transmission_of_the_Greek_Clas...
Android and Windows (UWP) do use quite a lot of vector based graphics.
In a work environment? I find it hard to believe you spend 8 hours every day lying on your back staring at the ceiling. If you do, it absolutely can't be healthy.
How is this false? I agree with this assertion after having used Go extensively for some time. Where Go really shines is when the stdlib offers a nice abstraction (io.Reader, io.Writer, http.Handler) and you can compose your programs from building blocks that use these abstractions. For example, from the http.Handler interface follows directly a middleware interface:

type Middleware interface {
Wrap(http.Handler) http.Handler
}

without requiring any generic types. For comparison, the same thing in Rust would rely on type polymorphism:

//assuming that Handler is a trait
trait Middleware<T: Handler> {
type Result: Handler;
fn Wrap(handler: T) -> Result;
}
//NOTE: Not using impl-trait here to make it clear that
//two type variables are involved (one type parameter
//and one associated type).

You could mimic the Go behavior if you box all your traits, which Rust does not like to do because it's not zero-cost:

trait Middleware {
fn Wrap(handler: Box<Handler>) -> Box<Handler>;
}
I read about it in Bad Blood, it was perhaps the most disturbing fact from the book. Especially given the suicide was in direct consequence of Theranos' scam, and also because I lost my uncle to suicide related to his work (which I suspect was related to ethics). There is a Wikipedia page devoted to the late Ian Gibbons [1] (I didn't verify the content of the entry though). I can highly recommend the book Bad Blood.

[1] https://en.wikipedia.org/wiki/Ian_Gibbons_(biochemist)
Gutkha Scam: CBI Raids Premises of Tamil Nadu Health Minister and DGP
Is Excel the best spreadsheet software available?
While everyone's freaking out over the code I'm remembering the old code that was only 2 functions[0], which leaves me to believe this code was changed not too long ago. I wish we had a github or something of some of these front-end changes to HN just to see how things change over time. I figure it wouldn't be too much, but still.

The original JS was inlined and contained two functions: hide and vote.

[0] https://news.ycombinator.com/item?id=11307758
I'm sure there are exceptions. What if the worker is in an office handling German classified materials all day?
In a sense they are, but they send the same updates to everyone whereas a backdoor needs to allow malicious actions to be taken against specific targets only. If vendors are forced to abuse updates in this way then users are going to demand a certificate transparency-like system to stop the abuse.
> Seems like a lot of people want to travel, and would love to spend part of their 20s doing so.

I think a lot of people in their 20s want vacation travel, but business travel loses its lustre quite rapidly. The extremely odd subset of the population that legitimately enjoys business travel usually ends up in consulting which is more rewarding and has a better career progression.
If the Image is being created dynamically there won't be anything for browser to peek ahead at.

Edit: I'd be more worried about repeated calls - but presumably the service being called is idempotent.
The US, France and other Western countries have used debt as a leash on poorer countries for a century. If “we” reduced this strategy in the last few years, it’s mostly for our own benefit (there is less money to spare, and debt-aid has become an internal political issue).

Resenting China for following in our footstep is a bit disingenuous. I think the onus, now, is on the receiving countries, that hopefully have learnt how these faustian pacts work.

The problem is not China financing poorer countries for its own benefit, but rather Western inability or unwillingness to give them a better deal. We bribed quite a few governments during the Cold War, but recently the only thing we seem to be doing is “violent peacekeeping”, if you catch my drift.
Also: https://news.ycombinator.com/item?id=17916688
Show HN: Reminiscence, self-hosted bookmark and archive manager
Also: https://news.ycombinator.com/item?id=17916735
Yup, that looks simpler than what I put in my comment. Do you know where the actual implementation is so we can confirm?
Which could be an issue with the router, device hardware, or even ChromeCast. Anecdotally Youtube seems to interact weirdly sometimes and trigger bugs in other devices.
As a counter point, I guess, I'm also from there and I don't like dark offices.
Do you have any suggestions for a first novel in Japanese? I am already reading slice-of-life manga, but the pictures and furigana are a crutch, and the vocab is pretty much limited to everyday life.
That list is terrible:

3: pillows may be considered passive weapons but that is irrelevant unless it is used as such or carried in a context where it is likely intended to be used as such (e.g. while participating in a demonstration). That said, assaulting random people in public with a pillow is probably still illegal because it involves assaulting random people (albeit with a weapon that's less likely to cause permanent injuries directly).

5: Both drilling and throwing bottles into containers cause noise pollution. It's not the act itself that's verboten, it's the noise it causes.

6: This is the same thing as 5. The law doesn't give an exhaustive list of activities that might be too damn noisy so I have no idea where these come from.

8: Calling a police officer "du" is a sign of disrespect. If you're new to the language and struggling with the distinction, the police officer will likely correct you or ignore it. Treating police officers disrespectfully is a misdemeanor and addressing them as "du" is one way to be disrespectful.

9: This is a widely held misconception. The "Deutschlandlied" is not illegal. The national anthem only has one verse and that's the third verse of the Deutschlandlied (or actually "Lied der Deutschen"). You can still sing the entire song but if you were going for singing the national anthem, you'll spend two verses singing something that isn't the national anthem. The reason people will still look at you in disgust is the same reason the anthem only uses the third verse: we don't take to jingoism too kindly after WW2.

10: I'm pretty sure it's not a law that you can't drink Export or non-Munich beer at the Oktoberfest, considering the Oktoberfest is in essence just a private event, but it's Bavaria so I'm not sure of this one.
You missed the part that IBM was a big Smalltalk vendor and they rebooted their product offering into Java, including Eclipse which has its roots on Visual Age for Smalltalk.

Eclipse to this day still has a Smalltalk like code browser for Java code.

Also in the early days although the JDK was free beer, all good IDEs were commercial, Eclipse and Netbeans only came a few years later.
Depends on who you ask. Just a few days ago there was a comment in a thread about Microsoft requiring its suppliers to offer paid parental leave that called it a "fad benefit".
> While admittedly a lot of the bloat likely comes from negative things like trackers, ads, etc there are also assets loaded on a typical page that genuinely enhance the user experience.

Such as? (genuinely curious)
In France, natural lighting is also mandatory.

source in French: https://www.senat.fr/questions/base/2012/qSEQ121002524.html
I’ve been refreshing this periodically hoping to see some discussion.

I have lots of mixed feelings over this. For one, it’s interesting how all of these are recent events.

It’s also interesting to me that out of all the times the police were called to their residence no action was taken. Which brings up more questions about his wife’s actions...
(I say this, in that it seems like /good/ police work hopefully )

Finally, while I think he went far far far astray by forging the letter, I can’t quite seem to think that Strunks involvement as an outsider, and his actions, compounded to create a situation where the punishment might not have fit the crime.

As in; are his actions worth his career being ended in academia, not to mention the fallout to his graduate students. I don’t have a good answer to this, and I say all of this more to organize and try to temper a balance between emotional and thought.
Says someone who probably hasn't worked without natural light for extended periods of time?
Maybe natural light is a perk because it is nice to have (sometimes), but a door/actual office with a lock and soundproofing would then be a minimum baseline requirement.

(I’d honestly prefer windowless to a window I couldn’t control, too. Windows with effective shades are nice, particularly if they can be opened for fresh air, but I’d be completely fine with a windowless office with a substantial door, great artificial full spectrum lighting, and HVAC under my control 24x7. Especially if my door and lock had a security rating.
Not sure that is applicable here. His advice is basically to minimize potential regret. A variation of "better to try and fail than never try at all".
It's hard to trust our leading parties when they keep stabbing their colleagues in the back, House of Cards style.
lol. do you really think "Comcast Business" magically upgrades the lines or gateway hardware that serves your home? its just $200/month for slightly better reps, who still can't do jack about how the network drops your traffic.
And I can't get enough natural light. I hate artificial light, and require windows anywhere I work. When the temperature is right, I even sit on my back porch to work.

For me, sitting in the dark is depressing.
> Code is read many more times than it's written, so it doesn't make sense to optimize for fewer keystrokes when typing the code.

That's actually probably not the case with JavaScript, so it may indeed make more sense to write it to be more efficient to execute.
My bad, forgot a probably pertinent piece of information. I am quadriplegic. Whilst technically yes I am in a work environment because I run my own company from home, you are quite correct that I am not in a work environment with other people.

Mea culpa, Mea maxima culpa.
Wire: Automated Initialization in Go
>Lina Benebdallah, assistant professor of politics and international affairs at Wake Forest University, North Carolina, however, cautions that the China-Africa relationship is "asymmetric." In 2016, for example, China exported $88 billion in goods to Africa, but only imported $40 billion from the continent.

And what is the problem with that? If China wants to subsidize African development or consumption, what is the problem with that? If China loans more to African nations than they can repay, it is a loss for China, not for the African nations.

The real problem, it seems, is that China has an excess of USD that it does not know what to do with. It is afraid to let Yuan appreciate and let the Chinese people enjoy increased consumption, as while the economy is shifting from export to internal consumption there would be a period of instability - the status quo bias.

It is also afraid of buying assets in the US and Europe as it cannot guarantee that these assets will not be seized if need be for political reasons. Furthermore, it does not want to do anything that would reduce the value of the remaining dollars it holds. Trying to establish a resource base in Africa where they can build relationships, influence, enforce their property rights and protect trade routes, seems like a reasonable choice.
I also read you can't fake it with a picture of a sunny day or whatever. I have no windows so I make sure to at least walk past one on the way to the printer and back.
This is because YouTube has servers on Virgin Media's network. In theory that's good, and it is most of the time. But when those servers get overloaded, it doesn't fall back to using the regular YouTube servers.
> There's also simply no reason to change it, it works.

It works, and it's arguably simpler than the div-soup with extensive styling, which is the "kosher" way of doing this.
> "data diodes". As if that's a real thing, practically speaking.

On CAN bus, it actually can be.

I've seen CAN bus participants with the transmit pin not connected. They were physically incapable of writing to the bus (granted, this drastic solution only works in very simple cases).