skysight-inc/HackerNews huggingface dataset:
Hi, everyone!

I want to share with all of you my article about modularity in JavaScript. I know that there are a lot of other articles about the same theme, so I took a different approach. instead of simple repetition what has been already said in the other articles about AMD, CommonJS, UMD, ES2015 Modules, you will learn a lot of other approaches for the modularity. Also you will find a lot information about the history of emerging these technologies and you will learn about the people who stood behind of them.

I wanted to write this article as comprehensive as possible. It may sound ridiculous but I was working on this project in course of more than a half of year in my spare time. So I hope you will probably learn something new, even if you are already seasoned JavaScript developer.

Enjoy!
The reality is that if you are creating a library you probably should prefix your types and functions anyway. And rely on the prefix to minimize collision probability. So it doesn't really matter if you put _t and the end of your type aliases. You will probably not get the collisions anyway. Unless POSIX is going to suddenly introduce mylib_array_t or something.
Interesting idea! Maybe when Uber finally comes to BC I'll give it a try too.
You do not buy a perpetual support license with those OSes.

The cost of those operating systems was for a given list of compatible hardware. Windows 7 support ended, Windows 8 support ended, and Windows 8.1 is no longer sold, but still supported (so security patches still arrive).

Like it or not, I understand MS, as backporting and re-valdating anything is a huge cost. Been there, done that, although for embedded systems.
Exactly. As a non-American tipping seems like such a crappy concept to me.

Why should service providers be subject to arbitrary decisions of random customers?

A service has a price. Either it is provided adequately and you are happy with it in which case you pay the full damn price for it and move on with your life.

Or there's a specific problem in which case you can complain specifically and ask for a discount or refund/partial refund.

From a business perspective tipping can also be seen as an admission of failure and weakness. In the sense that the business is admitting that the quality of the service is so variable that it calls for a variable judgement of its value. Like maybe you get a crappy waiter and you don't tip, maybe you get an excellent one and now you must leave a good tip.

It is also "lazy" because it dumps the responsibility to the consumer. "Just judge how well we do and tip accordingly".

Instead as a consumer I want to have certainty and confidence that a given service provided by a business has a predictable and consistent level of quality.

And also as a consumer I want the employees to not be subject to my arbitrary personal judgement on a day to day basis. If there's a particular problem I may complain, otherwise just move on with your life.
I feel this pressure whenever I come up with a new startup idea. I hate doing lots of research, only to find that my idea has already been done. Most recently, I wasn't very happy with a portable router that I had bought, so I started brainstorming ideas for a new travel router that would be extremely easy to use and to set up. My idea was that your new wifi password would seamlessly sync to the router, and you could set it up from streamlined OSX toolbar or mobile application. But then I found the ASUS WL-330NUL, which already does everything I was imagining. And I also realized that I could never compete with hardware like that. I was just going to build a prototype with a Raspberry Pi and a few wifi adapters.

On a related topic: I hold very liberal views, and I've recently tried to expose myself to more conservative opinions. So far I've just subscribed to /r/Conservative on Reddit, and I've read a few articles on Breitbart and other conservative sites. I also read through some of the comments, which was very frightening. That is not a place for intellectual discussion. I have relatives who often send me articles from http://creation.com, so there's another source of information that I try to avoid..

Also, a few days ago I was on a flight, and the person next to me was telling me about his flat earth beliefs, and a wide variety of other conspiracy theories. He mentioned how Breivik was just a scapegoat, because the government had ordered the killing of those children. And also 9/11 was an inside job, Stalin was a hero, and how The Hunchback of Notre Dame takes place in Saigon, Vietnam. (I believe he came to that conclusion after visiting the Notre-Dame cathedral in Saigon.) It was an interesting 3 hours. At one point he was telling me how the sun is only 50 kilometers wide, and it moves around on giant cables. Also, there are no satellites in space. They are all underground, and that's how GPS works. Also that's why GPS sometimes has problems, because Google's Maps are all wrong. I tried to really understand all of his views, but I can't say they were very compelling. It's strange, because he was a very well-read person, and seemed quite smart, apart from these insane views.
Best Color Picker for Mac
It's worth keeping in mind that making stuff more maintainable for you does not necessarily make it more maintainable for others.

It's nice if your successor can just use your abstractions, but if he needs to modify them ...
Yes, absolutely - black holes don’t need singularities inside them in order to be black holes. Just enough mass in a small enough volume.

(Of course, we don’t actually know whether stellar or galactic centre black holes have singularities inside them - we just don’t know of any process that will prevent one from forming in current physics.)
Their "Chemistry Engine" model (described starting at 39:55) includes Rule 3, which says that materials can't change another material's state. But what about a player (a material) eating an object like a poisonous mushroom (also a material) that makes them sick? Or eating a magical mushroom that heals them? It seems like there are cases where you would want to model materials changing another material's state.
Close Encounters of the Steve Kind
It's painful for the compiler to assume non-local variables may always be shared if the language does not reify the concept of "sharedness" like Rust does. Given that in any reasonable program the vast majority of state is non-shared, it really is somewhat unreasonable for the compiler to always assume the worst without the programmer even being able to override it.
> Anyway, if they can be used to synthesize signals at very high speed, what about using them to build a DVB-T transmitter?

Not possible, unfortunately.

IIRC The PRUs run at 200MHz. I'm not an expert at signal magic, but unless somebody has a really smart trick up their sleeve, it means you can synthesize at most a 100MHz signal (assuming changing the state of an output takes only one cycle, which I believe it does).
Do CTO manage CSO ?
I want to know if in real life, a CSO is managed by the CTO of the company or if he is also a top manager as CMO nad CEO ?
Libertarians keep peddling their unsubstantiated, utopian dribble, including objective truth and anarchy, when their political philosophy is obviously a 1%'ers smokescreen exploiting Ayn Rand (refer to Thom Hartmann).
I don't use terraria assets. We use a texture pack. I'm not talking about C# vs Java now. For me, because Java is crossplatform, it's better.
please don't turn this into a "the warrior forum" full of advertisements for products that about earning money, or "growth".
Why do you care about votes [whether up, down, or sideways]?

At the end of the day it's only people being "wrong on the internet"
Long time lurker here, first time poster.

I am an American living in Japan and enjoying all the trials and struggles of living somewhere utterly different from where you grew up. In Japan I'm American, however back home I am Asian-American. Among Asian Americans I'm further subdivided into another category. I have very few close friends of my own ethnicity and those that I have I would consider as just Americans anyways. The thing is that even with people of my own ethnic group, I don't have much to relate to since I don't speak the language and I grew up somewhere completely different. I discovered after coming to Japan that the thing I relate to the most is being American. However it's funny that in the US I knew I was American but I always felt I had to put an asterisk on that or a hyphen since I wasn't part of the majority.

My point is that I've always felt as somewhat of an outsider no matter where I've gone, but still I have a concept of home and that is the US. I think it took going to somewhere completely different to REALLY cement my own self-identity and self-image.

Coming here I had no idea what I would come out identifying as culturally, but I think it should have been obvious that it's the place that I grew up in and spent most of my time despite feeling like an outsider at times.

I'm likely going to go back home soon for many reasons (culture differences, language barrier, heavily reduced respect/pay for programmers over here, missing friends/family) and I'm curious how I will handle the reverse culture shock. From this experience though I'll gained have a stronger identity and how important being an American is to that.
No explanation needed if the age of the universe is finite.
OP mentioned ethical and environmental concerns. "lovingly raised meat" might address the former if your ethical concerns are about specific livestock conditions, but not if you think raising animals for human consumption is unethical, period. And it does nothing whatsoever to address the environmental concerns, which are considerable, and are a primary motivator for many people who reduce or eliminate meat (judging from the medium post, OP included).
Also in Kotlin you can have extension methods with multiple receivers:

class Dictionary {
val wordList = setOf<String>()

fun String.isWord(word): Boolean =
word in wordList
}

...

val myDictionary = Dictionary()

with (Dictionary) {
println("dog".isWord)
}

(you can skip the "with" when being inside Dictionary)
3 none-technological positions in high demand in the cybersecurity industry
1. Not sure how to get a single global namespace on FreeNAS right now, that might require further upgrades to NFS (or maybe it's in 10 now, I haven't tried).

2. Early in the development of FreeNAS 10 SwiftStack, IPFS, and Riak were planned as features. It's still possible those will make it into the project some day, but for now you're on your own for clustering/multi-node use.

3. Snapshots and Snapshot Replication are a core feature of FreeNAS since 8. I don't know where the 10 docs are but in 9.10 they're here: http://doc.freenas.org/9.10/storage.html#snapshots
Distro is synonymous with OS at this point. No one is using it as a derogatory term for OSes that aren't different enough to give them the denotation of "OS".

That said, you're going to have to come up with an argument stronger than "this was forked ages ago" to suggest Dragonfly and FreeBSD are different enough to warrant thought. Ubuntu forked before 2004 and you don't see anyone being called out for comparing it to Debian.
You know another way they could increase Windows 10 adoption? By making it better, not worse, than past offerings. Adware baked into my OS? No thanks.
I find it very hard to believe that no-one is moving to node.
Only because Microsoft wrote a line of code that says if CPU is this model than do not run.

There is a big irony in Microsoft writing that sort of code given the efforts they have to go through to make applications with similar code (if OS version > 7 then do not run) run anyway by lying to the application about the windows version.
When I hear the word "tips" after massage in Asia I never come back, even if I liked the massage.

This is very rude to ask for them, so I act proactively.
Intel's Skylake processors caused kernel panics on earlier Linux versions, but that never affected Windows, and Microsoft still supports Skylake on 7/8.

And Kaby Lake is just a rebranded Skylake with higher clocks, with no hardware differences. So this is just Microsoft fucking over users.
Nintendo+Switch:+Already+sold+1.5M+times
I cursory read the FAQ, somewhat funny that it's a series of questions with a "no" answer, that made me curious about the author, so I looked for public speakings on YouTube. Right now the first hit is a 18 minutes presentation of this book (so I think as I haven't watched it yet) called "(sixth RacketCon): Matthew Butterick -- The Making of “Beautiful Racket”".

I thought that someone else here could be interested...

edit: clarifications
>WASM is basically asm.js, but without having to go through javascript?

No. It also has non-JS accessible language features, and the article lists several of them.
Think of a circle with a dot at the center.

When you define things positively - "do this, do that" - you're saying "get to the center dot, and come from anywhere on the circle".

When you define things negatively - "don't do this, don't do that" - you're saying "get to anywhere on the circle, and come from the dot."

"Test your code". Your code could be library code, it could be core language features, it could be framework patterns, it could be executable utilities. Ends up all the same - tested code. From anywhere, to somewhere specific.

"Don't test controller actions". You can test requests, you can test at a feature level, you can test the models and functions used by the controllers. Ends up all kinds of different - no tested controllers. From somewhere specific, to anywhere.

Something telling to do or not do something doesn't mean it's positive or negative; that comes from tone and presentation, not content.
>Define where "initial page load and rendering" ends for a single-page web application

It's not hugely important. It could be DOMContentLoaded + x seconds. It could be onload unless it doesn't fire within a reasonable amount of time. As long as the browser starts throttling within seconds I don't care much about the details. Login is not a concept I find relevant in this context.

>Also, how does one control what set of pages a given permission applies to?

It should apply on a per-domain basis. That may be too coarse in some cases but nothing is perfect. Let's go for good enough.
True. That's why I'm hoping more people will start using these.
April release of a new MQTT Client
Quite so
> For example, "Do not use fixed size buffers". It's all very fine, but 1) it can be exploited as well if someone managed to fudge the size you are going to allocate

Fuzzing really underscored just how terrible "dynamically sized buffers" are to me as well. Even if your logic is perfectly correct (e.g. no possibility of buffer overflows), something as simple as deserializing a length-prefixed array needs a quota or cap. It's not enough to handle malloc failing: Someone will successfully allocate 1.9GB via your 32-bit deserialization code, spreading the actual allocation failures across the rest of your codebase - including all 3rd party and system libraries - most of which almost certainly have at least one oversight in OOM condition error handling, invoking all kinds of potentially exploitable undefined behavior.
Yesterday I received a Gigabyte Brix i5 and wanted to run Windows 7. The process was painful.

The Brix has no USB 2.0 ports and no legacy USB in the bios - So keyboard and mouse were non functional. Presumably the ISO was built pre-USB 3.0 era. So I had to customize a untouched image with USB 3 drivers. Drivers had to be downloaded from Gigabytes website. All to learn that MS update doesn't work with Kaby Lake. Great.

Windows 10 setup was quick & easy.

Running 10 feels like I've lost control over my own OS. It updates when it wants and I have no way of turning it off. It is connected to numerous IPs I have no control over except to painfully block in hosts. Onedrive has no official uninstall option, Windows updates can no longer be postponed with 1607 and burns 15-20 mins productivity when restarting. There are a handful of services I don't need or want that I cannot disable (Wifi password sharing anybody?). It is the exact reason why I wanted to run Windows 7 in the first place.

To me it feels like another forceful tactic to push me to use Windows 10 for which I have no desire. Win 7 is supported till 2020 so don't choose for me but that doesn't matter.
The anti-vax narrative gets darker
First point doesn't contradict what I said. Your second point is unsubstantiated. Nothing in medical science is absolutely certain beforehand. Sometimes we have good reason to think a treatment might work, but it fails upon trial. That is learning from a negative result, not peddling snake oil.
No nation can exist in a vacuum. Your "criteria" excludes pretty much every country in the world.

Even then, USSR-India cooperation was mostly limited to military matters, like when the Soviets sent a carrier during the '71 war of independence for Bangladesh to keep the Americans from joining in.

India(under Nehru) and Egypt(under Nasser) actually founded the Non-Aligned Movement to avoid being pawns in the games of the US and USSR. This move confused and antagonized the Americans(if you are not our friend, you must be our enemy), which was why they had much closer ties with the Soviets. Nehru even rejected a permanent seat in the UNSC because of the NAM. You can hardly find two countries that did their best not to depend on foreign influence and benefactors. Of course in Egypt, after Nasser's downfall and the destruction of any hope for sovereign, secular Arab nationalism, the US gladly stepped in and took control of the pieces. The consequences of that are for all to see.
>Why don't we just use an existing bytecode format and skip all the pointless design? LLVM? Android DEX? Java Class or C# IL formats aren't enough?

Because the major browser devs that designed WebAssembly are not smart enough to have thought this

/s
"lovingly raised" would mean you're buying the animal still alive?
No, it's because of missing drivers for the chipset.

Try running an old Linux or bsd kernel on these new chips -- it won't work either.
The defintion of 'something' uses it twice.
Tips avoid taxation, so employees can earn higher wages than they otherwise might, with customers spending less than they otherwise would, and owners paying out less than they otherwise would.

Now, tips are not supposed to avoid taxation but it works out that way...
In Kotlin you can do:

when (value) {
1 -> ...,
2 -> ...,
null -> ...
}

The compilers doesn't let you forget to check for null.
It's smart enough to correctly evaluate and cast nested expression.

when (value) {
is null -> "nothing to see"
is Number -> "a Number: ${value + 1}"
is String -> when {
it.isBlank() -> "Blank String"

null -> /* compiler error, you already checked for null */
else -> it.trim()
}
}

Or

val x = value ?: 5 /* use 5 if value is null)

val x = value?.some?.nullable?.chain ?: 5 /* use 5 if the chain can't be called */

Or

val x = value?.let { /* work on non-null value */ } ?: alternative
Converting 1% the speed of light to km/miles-per-second gives: 3000 km/s or 1860 miles/s. That's Paris to New York City in two seconds.

I don't understand why they use distance-per-hour, either. It ends up being millions of miles/km, which no human has any sense of.
In Germany at least, it is common to round up. Probably because we like paying with cash, since it's just less of a hassle if the price is odd. Round up to the next full Euro, or the next 5/10€ if it's close/you're feeling generous/don't like coins.
AFAIK this is a common mode for the other European countries as well.
Analysis Users Demands Before Prototype Designing
ah ah, this sound paradoxal! But it just because in english a cold is called a cold and not something less connoted like nasopharyngitis.
The Predictive Model Mark-Up Language (PMML)
Hey hop rafting manavgat
+! for The Morning Paper. InfoQ runs a quarterly eMag based on it which is easier to keep up with.
https://www.infoq.com/morning-paper-quarterly-review
Comparison Between Alaskan Klee Kai vs. Pomsky
we've reached peak meat, it's impossible to feed the whole population meat past 10bn due to there not enough land, and if only grass fed meat/etc is consumed there is only enough land for 1bn.
But if the effect of RapGenius's hosting of lyrics led to them being the first results for all searches of lyrics, whether the lyrics were significantly transformed or not, it could be argued that they are directly profiting from unfair use of those lyrics. Else, what would stop any site from copying and republishing any material wholesale and claiming that users come to the site to comment via Disqus?
Just take an 'i' or 'f' or 'l' on the end. Not a big deal. Literally one extra character.

I don't think you understand. At a minimum, you would need parsenumi, parsenuml, parsenumll, parsenumimax, parsenumu, parsenumul, parsenumull, parsenumumax, parsenumi8, parsenumi16, parsenumi32, parsenumi64, parsenumu8, parsenumu16, parsenumu32, parsenumu64, parsenumf, and parsenumd.

All code is liable to use an outdated syntax or features in 10 years. What if the stdlib does improve and adds functions that supplant these? What if they do so only partially? What if your functions could be improved to rely on a new stdlib function that's safer/faster/etc?

This is C, not perl. Features don't become "outdated" in a mere 10 years. And if there is a new standard library function which is useful here... well, (a) I wouldn't want to use it for at least 20 years, and (b) I'd probably be one of the people writing said standard library function, so I'd have no difficulty updating my macros.
Well I think it's mostly a case of deciding how much of a priority it is and how that's reflected in the overall design.

As you say, if you make easy for people to pay you, more people will pay.

Ease, I think, is a function of the quality of offering, i.e how good it is such that people will more readily part with their cash, and the actual ease of making a payment.

If you have great content and people want more yet the path to subscribe is tucked away so no one can find it, people won't pay (or can't in extreme cases).

If your content sucks, including devaluation via aggressive pushes for payment, I don't think people will be so keen to pay.

That said, I think more people tend to pay for the latter. Your get rich in 30 days with a pay now button every other paragraph and huge discount-that-isn't-a-discount is a prime example.
https://www.os-js.org/
Yes, let's just let these ladies go blind and die infirm because the treatment hadn't passed stage 3 trials yet.

There is such a thing as medical experimentation under informed consent.
is the minimum wage not legally enforced?
But the drivers aren't part of the OS nor are they written by microsoft. I don't see why Microsoft would block the OS running on a particular generation of CPU.
Toptal, gigster.
I used to typedef my structs but I stopped doing that a while ago. Even if something is an opaque type it's still useful to know that it's a struct and not some random typedef for an integer or similar. You might not be able to copy it for instance, and if you can you might not want it if it turns out to be a few kilobytes in size and harms performance.

The linux kernel coding style in particular forbids such typedefs: https://www.kernel.org/doc/html/latest/process/coding-style....

I don't agree with everything in the kernel coding style but it's mostly reasonable and I think their approach to typedefs is perfectly reasonable.

And why do you use separate typedefs for pointer types? That's borderline obfuscation IMO, if I'm dealing with a pointer I want to know it. If it's in order to save a single keystroke it really isn't worth it IMO and I don't see how it helps reworking anything.

I agree with the fixed size buffer thing though. There are plenty of situations where fixed size buffers are completely fine, that's way too broad as a general "principle". I guess the idea is "make sure you don't reserve less memory than you need" but that's rather obvious, isn't it?