skysight-inc/HackerNews huggingface dataset:
Something like this is all you'll need: https://gist.github.com/jstimpfle/562b2c3e9fe537e378351bb9d5...

Explanation: A little macro that adds the correct element size. Of course, you can opt to add it by hand as well, or put it in the run-time data structures and only set it once at initilization time. I personally think these approaches are error-prone / ugly, though.

There is also the stretchy-buffer approach from Sean Barret, where you don't need to explicitly allocate bookkeeping data (capacity value in my example). That one puts the bookkeeping data and count in front of the actual data.

I prefer the explicit approach, though, and I MUCH prefer having an explicit count for growing vector-like things. Because I hate when I have parallel arrays and each one has its own count. Having a shared count variable for parallel arrays is much clearer.
I guess the problem is US doesn't have an employment like most European countries.
Phoenix: The billion-dollar Canadian federal payroll fiasco
I think Apple is driven by "What will make the people we care about happy?".

If they are entering the advertising market that means that some very self-aware people think this will make people they care about happy.

That's my worthless stupid opinion, that I consider to be fact :)
Have strict team conventions and being afforded the time to try an enforce them is great. Agreed. It doesn't always end up working like that in my experience though. Frameworks often have a community that provides some convention guidance. Rails, for example, is huge on this. You can tell a developer "stick to the general Rails way of doing this" and they will often be able to follow that instruction. Is that lazy? Sure, probably. But I also consider it to be a feature of a framework.
Seeking freelancer, London, UK

Looking for a Python/Django developer and/or a Microsoft Sharepoint expert for a government contract.
Work is around Victoria Station in London and is on site only.

Please contact me at harel at harelmalka dot com for the details
This is a example of great photojournalism. The images of the booksellers tell a great story on their own.
The problem is you are considered Anti-Semitic if you criticize the government of Israel. So you cannot even talk about it in public, or it will ruin your reputation and career.

Edit: The karma of my comment proves my point.
I thought the remade graphics were as insulting as the Indiana Jones 4 movie, and thus decided they never existed.
EDIT: Typo
That’s a project with appeal - dangerous, but appealing.
Can someone point me to a concrete use case for speck? As far as I understand, Speck is designed to use less resources than AES. However, even on very constrained devices I believe one needs at worst hundreds of kB of RAM and even a low end micro controller should be able to deliver 1 kb/s encrypted bandwith. So I have a hard time to think of any application were a chip that is designed now does not have enough power to encrypt using AES, but has a need for somewhat high bandwidth communication.
Are you ok with oppressing al quida, hamas, isis?
Maybe MS understands this concern and at least keeps it comfortable for the devs not to leave for alternatives else what's the point.
The Children Act - Emma Thompson and Stanley Tucci
> Agreed, why not attach it to the internal USB bus?

The FPGA has a PCIe endpoint peripheral. Making that available opens up a lot of possibilities.
More regulation around wage theft & mandatory overtime or limits on hours worked could really benefit tech workers as well. I for one would really like overtime over 50 hours to be mandatory, at the very least. It's just not sustainable or healthy to be working 60+ hour weeks and not taking any vacation because that would result in critical work not being done quickly enough for management to be satisfied. Clearly, what I'm describing is a pretty shitty job as far as tech goes, but I have a feeling I am far from alone in being in this situation.
Do you have any sources please?
Danish guy here. This cynical view of the whale nervous system and modern (effective) “spears” is exactly why the international community is so critical of the Faroese. When you have actually seen the bloodbath with your own eyes (which I have during a visit up there years ago), most people would agree.
I’m not a professional coder atm, but I learned quite a lot from “Understanding and Using C Pointers.” It’s weird knowing that I like to and can code, but being employed as a sys admin. Pretty common I imagine, as well.
Another sort of tip: do some strength training.

My experience is that I don't experience any discomfort despite having at times horrible working habits (working on a laptop on a sofa for 10 hours a day for example). I attribute that to being reasonably fit for a 30+ yo person.
"...Why do we not treat the Northern Irish who rallied around their religious identity and attracted the sympathies and support of American Irish?

Why when Tibetan Buddhists commit violence we don't say it's their religion and immediately start looking for geo-political or economic reasons?..."

To be perfectly frank, a large part of the reason is just propaganda.

For instance, are Buddhists slaughtering muslims in Myanmar? Yes, without question. But a lot of our policymakers probably are thinking, "Man, we invested a whole lot in the Buddhists against the military government over there." (You know, Ang sang suu kyi and all that.) We, kind of, can't go back now. Maybe it's a lot like the sunk cost fallacy. But on a geopolitical scale? You're only willing to fold when the whole thing just collapses. And it hasn't, yet. So we keep trying to make it work.
I see them less as agriculture starter kits and more as archives of genetic information. Perhaps a climatic catastrophe reaches a new equilibrium after 200 years. A bunch of plants have gone extinct or are so hard to find they might as well be extinct. Civilization suffers a near fatality, but recovers just enough to trek out to those seed vaults. The seeds might serve an important role in breeding projects. It's maybe not the highest utility contingency, but it mitigates risk of permanent loss of genetic information.
I believe the organization Toastmasters exists just for this purpose.

You can replay an event in a supportive feedback group instead of in your head.

(I've never been to a Toastmasters' meeting, but have heard their sales pitch.)
Clang (trunk) in godbolt.org seems to produce the same code for both C and C++ (with -O3). Maybe this is some sort of optimization chance that the C-specific parts of both GCC and Clang didn't catch until now?
One could argue that “totalitarianism” was the default government form for most of history.

The problem is, the higher we go on the Maslow pyramid, the more likely it is for it to fail. You just can’t have a huge mass of creative, inventive people without them complaining about leadership (and wanting to improve it).

And totalitarianism by definition has problems accepting criticism.

The only way for totalitarianism to “work” is if the rulers are both much smarter than the population as a whole and also benevolent.

Regarding China, let’s see. These kinds of regimes don’t fail immediately. Just the cracks get bigger and bigger. From what I heard there’s a consolidation of power going on, that’s generally a sure sign of the first cracks appearing.
It used to be said that certain kings or personages were made of glass and that if you touched them, they would shatter and the kingdom would fall. Much like a regular private hot bath, I fail to see the value of a Glass King.

Once I visited the UK and some kids threw lit firecrackers into my scarf. Then all the adults kept drinking. I assume America is currently behind the times, Europe having since updated the myth to Atomic Motorcycle Danger King.

This failure has something to do with Americans having enjoyed Downton Abbey more than Mad Max: Fury Road. My investigation continues.
Veritasium did a video on this called Inside the Svalbard Seed Vault[1]. Totally recommend it!

[1]: https://www.youtube.com/watch?v=2_OEsf-1qgY
Show HN: Bref, a framework for deploying serverless PHP applications
You can absolutely learn the syntax of C in an afternoon, or a few days at worst, if you're not having to learn to all the other concepts interesting C programs require. Much of the immense learning curve comes from th things that are "outside C", like how to synthesize high level concepts from the lower level primitives in the core language and system specific gotchas the language doesn't shield you from.
TLDR; A judge in Tennessee this week ruled that Amazon isn't liable for damages caused by a hoverboard

Hoverboards, when used in a certain way, are a complete nuisance. There's a man who rides his on the sidewalk in our neighborhood. He speeds along until he runs up against pedestrian traffic, then he hovers at their heels until they move out of his way. I've tried to talk with him about it civilly, but he doesn't listen.

There's a lot of seniors in our neighborhood, and it kills me every time I see him speeding around, but what he's doing is technically legal. Oye vey!
I have more uses for Python than the author, but one of these uses is really obvious: Python as C code generator. Python + C is a very powerful combination: metaprogramming, special constructs etc. Basically, with Python you can get rid of preprocessor hacks and messing with templates.
Ah, so I was. Fair enough.
> If the copy matters performance-wise (note: it doesn't!) then DON'T MAKE A COPY. Have a pointer argument and put the result there.

it sure does, especially if you're going to make a high performance graphics library. Some old benchmarks I found were on an average of 10-15% performance loss if calling non-RVO'ed code in some tight loop.
Not all old games had horrendous gameplay nor control... For example, on an Amstrad CPC, Gryzor or Titan schools most games released these days ;).
Well apparently Cygwin works on ReactOS: https://twitter.com/reactos/status/735141249775194112
Do you know many people in Gaza? Because I do and they complain much more about Hamas than they do about Israel. I'm far from agreeing with Israel's policies regarding Gaza, but the truth is it's far from being Gaza's biggest problem. Not to mention the often forgetten fact that Gaza has another border, with Egypt, which is closed, and Israel has nothing to do with it.

A Gazan friend told me this very week actually that they wish Israel would re-enter the Gaza strip and remove Hamas from power. Israel of course is not interested.

Reality is often much more complicated.
Youtube has been suggesting me pretty much the exact shallow stuff I need to consume to keep myself entertained while doing chores around the house. I doubt that's simply collab filtering, so it might count as AI.
What constitutes personal data hasn't been made clear. People think IP addresses and usernames will count, and really anything in someone's posts might too. Post timestamps are no doubt correlated with users timezones, that sounds like personal data to me too.

You could credibly argue that the sole purpose of a forum is to collect and share personal data.
GCC in godbolt is always C++, even if you pass -std=c89/c99 : https://godbolt.org/g/SFMB1G ; Clang doesn't even compile with -std=c89
For us the difficulty is that with React you need to let React control it's piece of the DOM. We have lots of jQuery UI components. For example, we use Select2. So let's say a dev tries to redo a jQuery heavy form in React. It's mostly fine but there's a Select2 component in there and some WYSIWYG jQuery plugin on a text area. You can't just initialize those with the React component because React will complain about jQuery touching the DOM it controls. So now you either have to find React versions of those jQuery components or properly wrap the jQuery components you have with React which, IMO, can be a bit funky and ends up feeling kind of wrong. Basically, you can end up down a rabbit hole. If you're intention is to truly modernize you're JS and your happy to rip out old jQuery plugins and make changes like that then it's fine. We just didn't have the dev budget to always be doing that.
In tech and in other liberal fields as academia it is the reverse: critique of islam, muslims, their treatment of women and education, is mostly forbidden unless you’re ok with being ostracized.
There are plans for this: https://www.nytimes.com/2016/06/08/science/ticks-lyme-diseas...
I very much doubt it is sustainable. The cost of policing is quite substantial and the productivity lost is hard to replace which adds to the cost.

What we are seeing today is essentially a low intensity conflict[0] not unlike what took place in white Rhodesia/Namibia, Northern Ireland during the troubles, etc. There is a economic reason why these conflicts could not last indefinitely, no matter what ideologies drive them.

[0]:https://en.m.wikipedia.org/wiki/Low_intensity_conflict
The Marxist/Maoist idea of the Chinese would be that the government is just part of the superstructure on top of the base. The base being the current state of the forces of production in their continual self-evolution and reinvention, and the relations of production flowing from that.

In other words, the economic system determines the political system. When hunter-gatherers became farmers, the political system changed. When farming as the center made way for manufacturing and industry, the political system changed (as did culture).

I don't see this as much different than Americans driving Lakota onto the Standing Rock Indian Reservation. Just two years ago the US federal government arrested and injured many on that reservation. Or Americans driving Vietnamese onto strategic hamlets. Or locking Japanese up in the 1940s. I don't see what innovation the Chinese have made.
You've hit the nail on the head. But I think there are two separate issues at play here. The first issue is the re-writing of the social contract that can only be done by implementing mass surveillance. This approach is arguably justifiable and gives the government more control to optimize how things work. The second issue is having one party government where there is not opposition. To me this approach is definitely dangerous long term. Complete tyranny is fantastic when you have a great dictator, however there's just no evidence that this model is sustainable. If China gets too crazy, the best and brightest will want to leave the country. It's definitely a crazy and bold experiment and it's definitely working in the short term.
Maybe. NSA wants algorithms to be secure against anyone but them. Perhaps this algorithm cannot contain something in the form of Dual EC_DRBG, where they're effectively handing out a public key as part of the algorithm and they have the private key. However, it could also be that there are particulars of the algorithm that make hardware that the NSA has and doesn't expect anyone else to be able to obtain, work especially well.
Objectively, Western corporate-military ideology has been far deadlier in Asia and Africa than religious fundamentalism. The US has attacked far more countries and killed more civilians than religious extremists have.
Its not only google lol Check the permissions for all your apps :)
Please go and read the regulations and compliance. A monkey could work it out.
Many visitors to HN are concerned with selling their skills to various customers, whereas others are concerned with the best technologies for building a successful startup. If you're selling your skills to a legacy institution and want to switch to selling them to a startup, looking at tech discussed on HN could be useful.
'Robots can't beat us': Las Vegas casino workers prep for strike over automation
Your comment is significantly uncivil and seems to indicate that you take a capricious attitude towards others.

I deny that any part of pointing out the hypocrisy, inefficiency and myopia of tech hiring in general, including specific parts in machine learning, is "whining."

Rather, speaking clearly about how ridiculous it is happens to be progress, however small, toward correcting glaring social wrongs in our myopic industry.

And finally, none of this is in connection to my own job. I manage a team of machine learning engineers in a large enterprise company. From my own experiences earlier in my career, from some of the battles I have had to fight to protect my current team members, and from some of the horror stories my team members and job candidates I've interviewed have shared with me, my general certainty that our industry gets it completely backwards has been informed.

Between this topic and the abject failure of open-plan offices, I cannot think of any more worthwhile tech industry topics to continuously and unrelentingly "whine" about, and feel that such "whining" is in fact a civic responsibility for any mature critical thinker, and indeed I am quite proud of it, and hope to keep it up with ebullience.
Organized labor is the only way to combat this kind of abuse. Workers cannot rely on policy makers or corporations to do it for them.

Organizing doesn't mean forming an official legal union, or joining an already established union (in some cases this might make sense but not always). You can organize mutual aid networks that do things like share salary data and talk about their problems.
Pakistan, Armenia, Egypt and many others are some of the most 'equal' nations in the world. I think people use income equality as a sort of euphemism for Scandinavia, and by most metrics yeah they're doing incredible there. But many of the characteristics they have, which includes relatively low income inequality when discussing matters with somebody with a left bias - and cultural/ethnic homogeneity when discussing matters with somebody with a right bias, are also shared by many other nations that are in awful shape.

I will fully agree with you on greed, however. And I'd even go as far as to agree with you on religion being a tool rather than the real factor. But there's also another thing you're missing on the religious issue. The terrorists in Xinjiang killed hundreds of completely random people - and often in close contact with weapons such as knives. Well random in at least they tried to target non-Muslims. That's something I think the vast majority of people simply could not bring themselves to do. That just takes a whole lot of hate, or at best complete sociopathic disregard, for somebody you know absolutely nothing about. And religion, fundamentalistic religion in particular, is something that helps breed that hate. And it also lets people believe that after they go kill those random people, somehow they're going to end up in a magical place where until the end of time they get to go screw 72 perpetual virgins while being served by 80,000 servants. Haha. Maybe we've come full circle and the religion itself ties right back into greed!
> Also, all of your protoypes such as

> sg_pipeline sg_alloc_pipeline() {

> should really be

> sg_pipeline sg_alloc_pipeline(void) {

Ah thanks, I fixed that :)

In the case of sokol-gfx, missing return value optimization won't be a big deal, but I'll keep that in mind.
Deep learning: a critical appraisal
If you can see MS itself is a big customer, why kill it when their own teams have moved over to it over their own code plex?
`(a)` isn't allowed because letters aren't allowed, and you can't put a number in the argument location (e.g. `((1) => 2)(3)` doesn't parse as valid JS).
Unfortunately "three human Plasmodium parasites" have been found in chimpanzees.

"If malignant malaria were eradicated from human populations, chimpanzees, in addition to gorillas, might serve as a reservoir for P. falciparum."

http://www.pnas.org/content/107/23/10561
I totally agree.

China seems to want to create a monoculture with norms that don't bend from locale to locale. I think the saying is: if it don't bend, it will break.
We're not happy with the merge request speed either. We're close to converting the merge request view to Vue, this should speed it up considerably.
Like the frog in gradually heated water, no one notices the gradual intensification.
Ah, right! I actually use python for code generation as well, just forgot to mention it. For instance the Z80 and 6592 CPU emulators use generated code for the instruction decoder:

https://github.com/floooh/chips/tree/master/codegen
'((/**/) => 5)(/**/)'.replace(/(\(\s*\)|[^0-9.()+\-*\/><=!&|?:])+/g, '')
> "((/**/)=>5)(/**/)"
((/**/)=>5)(/**/)
> 5

Yup, this does indeed work.
Yet another reason to exterminate mosquitoes ASAP. People would continue to use every weapon available to kill them even just because they are annoying. However most chemicals we use today affect basically all insects. So we either eradicate mosquitoes now or continue to watch decline of bee population. I personally would chose bees over mosquitoes any day of the year.
But what did you think of the article?
Those tech demos at the beginning (text to speech and voice control) feel funny considering that we are still tackling and demoing basically the same things. Sure, something like Google Duplex is slightly more advanced, but the concept of having computer communicate with voice (on both ways) seem to have been fascinating people since the beginnings of computing. There are also parallels to be drawn between self-driving cars and that computer controlled wheel-chair.

Plus ça change

edit: oh wow, more of the same:

> Such chips will totally revolutionarize our way of life, they are the reason why Japan is abandoning its ship building, and why our children will grow up without jobs to go to
Is there a way tech can help in this space?

Many people complain about the fact that Google has a record of where you go if you opt in to location tracking, but people should be able to extract this record to get an automated working time estimate without needing to do do anything to prepare ahead of time, if they have an Android phone and haven't disabled the tracking.

I'm not sure about the completeness/time accuracy of the logged data, but maybe you could weigh in on the presumed legal validity of such an approach?
No, it's not funny. A century or two of attacks on the region from Christians has soured relationships in the area, but those Lebanese Christians lived in Muslim controlled areas for over a millennium. By comparison, Muslims in Spain were immediately forced to convert or leave, and in 200 years any ember of the religion was dead.

The current situation stems from much more than just religious choice.
The reason we don't accuse Buddhism when a Buddhist commits violence is because very rarely do they explicitly say they're committing whatever they're doing in the name of their religion, nor in anyway to propagate their religion. That is to say, you don't have a doctrinal, linear, absolute, form of religiosity that demands conversion, demands superiority, demands singularity as is fundamental to Islam. Muhammad and his Quran is supreme, whereas in Buddhism you kill Buddha, and Sutras while important are not absolute.

The Quran is equal parts a political construct, religion, and a sociological text that covers everything from spirituality, to the idea of man, to how to wage proper war. Whereas a Buddhist text is not, but rather simply a constellation of philosophical conjectures, and assertions that mostly pertain to one's own consciousness.

The question is simple. Does ideology, and in extension religion, motivate people to be violent? I dare you to actually bring and propose to reinterpret the Quran. It simply won't happen, and until and unless Muslims in majority seek to reform/reinterpret the Quran, like it has been done in Christianity, you cannot progress Islam.

I mean if we're going to be entirely reductive then I think we can also say that ALL ideologies are also the same. The Allies, and Axis powers were in essence both the same thing, and either party weren't in any way morally superior. The Nazis were the same thing as Americans, and whoever won the war is simply a mere coincidence.

In a similar sense not all religions are the same.