skysight-inc/HackerNews huggingface dataset:
Since IO Multiplexing in go is based on Edge-triggered epoll, you always need to do a write/read syscall (it happens underneath) before blocking the goroutine to arm the epoll to poll that specific FD. Also this approach relies on parking/unparking the goroutine and there is no way around it, since it is part of the runtime.

One way go can make it nonblocking is to do the read/write and return the result immediately, but this kind of call requires a call back function to be provided, so instead of parking/unparking the goroutine, the call back function is called (either directly or by "go cb_function"), It can be tricky to make it work, since the initial goroutine might not be allowed to call read on FD anymore (maybe exit from the goroutine if the read was unsuccessful). In addition, you still need to provide a buffer to read from, the 1 byte trick works though, but the buffer management can be done either if the read was successful or in the call back function. Also this approach makes the programming asynchronous and similar to event programming.
They went on about how this type of device was difficult to manufacture but didn't at all explain how the recent findings help make it more manufacturable :/
Keep your chin up. I also don't like hearing the naysayers, and we can still prove them wrong.

https://news.ycombinator.com/item?id=7483648

https://lobste.rs/s/eftgy8/switching_ubuntu_from_apple/comme...
I always liked the idea of being a small farmer. In particular, a tea farmer.

Most recently I have enjoyed doing physical therapy with my dog -- so that'd be another option.
Accountant! The only use of pure math in real life!

No pesky real world to mingle with your results, if a cent is missing it is because somebody took it. Also, when 0 = 0, you know when you're done!
Agreed. One thought I had was to just toss project names into Trello columns and move people around as a starting point for management.
park ranger or physics teacher
so why aren't more shops implementing a functional organization? It's still divided into front-end and back-end. What is the hindering factor and what tools would be a good fit for functional organization? AWS Lambda where people push their own backend along with the front-end thereby managing the full stack?
That's a false equivalency to be sure. Right wingers were afraid of what they claimed President Obama would pursue in policy. Critics of President-Elect Trump are fearful of _his own stated policies._
Retro Computer Pi
Tbh one of these days I'll just hack in support for the ircv3 features to [popular android client] and call it a day. Gotta love open sores :)
Absolutely, that's indeed the reason behind GNU/Linux as opposed to GNU Linux.

Linux is not a GNU package and hence not GNU Linux, however when it includes the GNU userland, it runs many GNU packages, hence GNU(userland)/Linux(kernel).

RMS is not taking credit for Linux and does not want anyone to call the kernel GNU/Linux, but rather the whole system IF it is using GNU userland.
I don't know much about this, but I'm assuming it is a replacement or supplement to a transistor.
If you are just doing polling when your app is in the foreground, you should not have to write any native code. All of the polling can be handled in your actions.

If you need to poll in the background when the phones screen is locked, then you will need to write native code. Writing native code to do this isn't that hard (react native docs are good), it's just annoying that you will have duplicate business logic for Android/iOS.
Ask HN: What is something you'd execute a $10+ purchase order for?
In the Peruvian Amazon, the restrictions put on aviation because of the "war on drugs" have effectively crippled any private/small commercial aviation activity.

Some examples:
It is illegal to transport or sell aviation grade fuel without an (impossible to get ) permit.

The bureaucratic (permits/certifications/plain corruption) obstacles to operate an aircraft makes it to expensive to operate. To certify a pilot or an aircraft takes at least a year.. including flying an inspector to the US to inspect the aircraft before it can fly into the country.

I could go on for hours on this topic...
I'm using this one right now to get away from a computer at the end of the day ... Much better than watching TV or similar. Heck even when I'm writing (fiction ...) I'd be sitting in front of a computer screen.
Switched from Sublime Text 2 to VS Code at the start of the year. So far it's great apart from some annoying linting problems (eslint gets confused between ES6 with decorators and TypeScript).
Most RTS games are simulations, so the client has to have the enemy unit positions in order to conduct its local simulation. In this case the best defense against map hacks (assuming it's closed source) is frequently updating the game, and messing around with the underlying unit data structures or systems each time there's an update. A map hack isn't very effective if it breaks every week or two on a regular basis, requiring more reverse engineering effort each time.

One notable exception to the local simulation model is Planetary Annihilation, which uses a traditional client/sever model as far as I'm aware.
I did some tests years ago and a single-threaded event loop was able to handle more than 10,000 short-lived connections per second sending and receiving ISO 8583 bitmaps (38,000 with 2 threads if I remember correctly). And the bottleneck was not in networking APIs or code but in middleware (Oracle Tuxedo) calls that were done in the same thread. I think you can do even more with modern hardware.

You just have to use select() correctly:

1) You can raise the 1024 limit of feed set size by "#define FD_SETSIZE 65536" (required for SunOS to use select_large_fdset() instead of select()) and allocating memory for fd_set yourself.

2) Do not loop over descriptors and use FD_ISSET to check if file descriptor is in set. Instead loop over fd_set one word at a time: if word != 0 then go and analyze each bit of that word (see how Linux kernel does it).

3) The other thing is to limit number of select() calls you make per second and do short sleeps if needed. That allows for events to be processed in batches and the cost of select() calls gets relatively smaller compared to the "real work" done. It also increases latency but you can work out a reasonable number of select() per second. This idea I got from "Efficient Network I/O Polling with Fine-Grained Interval Control by Eiji Kawai, Youki Kadobayashi, Suguru Yamaguchi"

I learned how to use accept() correctly from "Scalability of Linux Event-Dispatch Mechanisms by Abhishek Chandra, David Mosberger". The main idea is to call accept() in a loop until EAGAIN or EWOULDBLOCK is returned or you have accepted "enough" connections.

I don't get why author claims that epoll() fixes the problem with registering and unregistering descriptors. If you use epoll then adding or removing a descriptor is a system call but in case of select() you just modify a local data structure and call select() when you're done adding and removing all of descriptors. And you shouldn't call accept() from multiple threads, a single thread calling accept() is enough for most of us unless you're web scale ;-D
as far as I can tell

Genuinely curious, but what are you using to measure this, or better asked: how do you define flopped? A year ago before I finally had everything in line to drop out of the workforce and go to Grad school I spent a lot of time in rural America and I met a LOT of people who didn't have Cable, but relied on rabbit ears plugged into converter boxes to get digital TV.

Heck, for a while I even used it-and preferred it, forced me to do something other than sitting on the couch staring at a big rectangular box. Got me my local stations, which were more than enough to have soap opera / background filler noise on while I worked from home and got my Sunday football fix.

Middle America conveniently forgotten once again?
The problem is collecting all this quality writing in an easy-to-consume and easy-to-access fashion. Of course we all know 10+ bloggers who we read and who offer great perspective, quality writing etc. The idea is to consolidate this content in one place which makes it easier to access and also to find new good-quality stuff.
The sinking feeling you get when you think you dodged a bullet and realize it's actually a very determined smart bomb who really, really wants to be with you...
> The most straightforward ones are that I want to create something tangible and enduring with my time.

Maybe not tangible, but a lot of the backend code in financial organizations etc. is pretty enduring ;)
KAİNAT, DÜNYA İÇİN KUTSAL İNANÇ GHWSTB
>Except I hate people, which is why I work in tech.

I once met an older guy who was a software developer and asked him how he got into the field. He said that he'd originally received a doctorate in psychology and was a psychiatrist for years before he realized that most people don't want to be fixed. He said he'd got into programming because, "Computers always want to be fixed."
Exactly. I didn't buy a pocket computer, I bought a phone that can play music files and show a map. When I wanted a general purpose computer, I bought a general purpose computer.
Why not? 1Password is built on the assumption that your vault could be copied by an adversary at any time, a 1Password account is even theoretically more secure because in addition to needing your master password they also need your account key which can only be retrieved from an existing device (or your recovery toolkit that you promptly printed and stored in a fire safe, right?).
Show HN: Popper.js v1: How I managed to create a powerful positioning system
Wouldn't replacing your 5kg laptop with a <2kg one be a significantly more realistic upgrade? Which you can do RIGHT NOW?
Are you really going to let that stop you? https://luminati.io/ http://www.deathbycaptcha.com/
I do understand that it's a tricky market to work in commercially. I have nothing against charging for your work if it provides the value to justify it, and similarly I have nothing against developers paying for tools that will help them do a better job and/or save time. Your site didn't sell me on why your particular product is better than what I could do with other tools, but obviously that's a personal judgement and others might take a different view.

I also appreciate that writing a good licence is hard, but yours does seem to be particularly awkward. For example, if we're developing a project for a client, our terms typically state that they will have a certain minimum standard of licence for any third party code we use, so they know they're in the clear deploying or distributing whatever we build for them. Your terms giving only a revocable licence would immediately disqualify your library, as would any other hedging about being able to use it indefinitely once it was paid for.
You are also a human. You may be a father, a driver, a shopper, ... Most widely spread projects are not about jobs.
In a much older role (nearly 20 yrs ago) my team tried using (quite successfully) a Resonant Tunneling Diode (RTD) as an electronic pulse generator to drive a fiber mode-locked laser.

Fun note - the pulses it produced were so narrow that one of the visiting oscilloscope dealers (I forget if it was LeCroy or Tektronix) was using it to test out timing resolution of their top model oscilloscopes! (Normally we had to use a sampling scope to see the pulses).

It was a "quantum well", and IIRC grown as using layers of doped GaAs. (I might be way off here, I didn't work on the fabrication).

If you plot current vs voltage across a device : an ideal textbook resistor has a straight line. Normal resistors will have some curvature but generally be monotonically increasing.

Out RTD showed a current that went up, then down a bit, then back up again. We biased it with a chosen current and load that put the current smack in the negative differential region. If you draw a horizontal line through this current, it intersects the graph at three voltage points. The middle voltage point has a negative slope, and is an unstable state. At this bias level, the device would flip back and forth between the two same-current points on either side where the slope was positive.

The cool part of this thing was that each 'bounce' sent an EM wave through a waveguide we attached, like an antenna, and the returning wave would trigger the next flip. So the length of the waveguide set the period of the oscillation. It had horrible timing jitter on its own, but we could make it very stable by driving it with a sinusoid oscillator.
Hahahah! You just made me think of creating a chatbot to answer people's questions about me for phone screen interviews, since answering the same questions over and over and over again has gotten me to the point where I sometimes procrastinate getting back to recruiters because I don't want to go through the process for the fiftieth time.

"How much experience do you have with Unity?" <chatbot-version-of-me>: "I worked with Unity on projects blah and blah and....". "Tell me more about your leadership in project blah?" <chatbot-version-of-me>: "With project blah, I was in charge of X number of people. The project was completed over a period of X months and ...etc."

That's what you're suggesting, isn't it?
Ordering of stuff from central IT. I waited 3 months for my RSA token (which I need for working remotely). My boss waited 4 months for a dev server he desperately needs for a customer project. The request for the server was only processed when my boss talked to some other guy who knows someone from the central IT department. And the requested server wasn't even physical hardware but a virtual server!
I must admit, I am a bit surprised to see "easy to learn" as an answer to "why" in so many recommendations. I would think that after a week (or a month in extreme cases) the value of "easy to learn" would quickly approach 0.

I value my editors for their power and responsiveness, not for the frustration spent years ago on learning them.
Cool thanks. In which case I wonder if flash is even available on that process. Were 180nm parts doing mixed flash and logic ever?
Gorilla Glass is jumping from phones to cars
Consider hand tools. It's a bit more labor, but if you're not building for profit anyway, you may enjoy it more. I have some thoughts on this on my blog, see my profile.
I use Atom for frontend web dev. I don't particularly love it, honestly.

I used Webstorm from Intellij when I was doing pure JS work. Loved it.

I'm considering going the full Intellij suite, but the cost is prohibitive.
so much FUD around crowdfunding from people that don't know how it works or how to mitigate problems

Everything from the idea of "annoying peons", to the idea of VCs balking at a warped cap table even though the crowd can be grouped together as one

Self limiting.
Little known fact: zooming out to see whole map appeared first in Mechanized Assault and Exploration 2 from 1998.
haha, oh crap mbrookes. Looks like I fell on my face with this. Thanks for the 33mail tip. Hey, hentrap - email me here:

hn@robodale.33mail.com
Yes.. a few years ago one got shot down by an "overeager" drug patrol interested in cashing the $$ reward the DEA puts on such planes. https://en.wikipedia.org/wiki/2001_Peru_shootdown
"Broken" is the wrong word. The argument is actually, "it's slow." Broken would imply logically flawed, impossible to make work consistently, something along those lines. The title to "Select(2) is fundamentally slow" would be more accurate (but less interesting).
In my corporation people usually use Outlook.
Old pricing:
$0/mo (freemium)

$29–$249/mo (~8,600,000/month)

$999+/mo (for unlimited events)

It seems like step in right direction. 499$ plans were overkill for bootstraped startups (in general)

I am using sentry myself - self hosted version of it. When you already have large dedicated server, running open source "SaaS"'s is cheap.
JetBrains based editors are quite nice if you can afford it. Free for students and open-source developers.

PyCharm for python,
IntelliJ for java,
Cursive for clojure
> Has anyone written a guide or supporting tools for creating your own config as a reusable module from the beginning? It feels like there's a gap which needs filled there.

It looks like you did!

https://github.com/insin/ad-hoc-reckons/blob/master/Creating...
Stuff the Internet Says on Scalability for January 6th, 2017
Visual studio 2015, visual assist, a couple of specialized addons like tangible t4 editor.
It means that $30 may or may not be the optimal price. People may value the same facility at $1 or $100. The onus is on the entity who justifies the price to prove that $30 is indeed the best price point. At this moment, I've seen no justification for the $30 price point.
Like the stock market :).
This is awesome. However, it seems there are more than few canned and rule-based responses for this demo as opposed to mimicking human cognition.
Creating Inout UI Elements for a Chatbot Platform
Logging jira tempo hours.
To Address Afrika’s R&D Challenges, More Funding and Citizen Science Are Needed
One could argue that in the larger context of modern cities (outside of specific places like the Netherlands, or some Chinese cities), biking is mostly a fad too.
I waited 3 months for my RSA token (which I need for working remotely). My boss waited 4 months for a dev server he desperately needs for a customer project.

Pardon my language: holy shit.

How large is your organization??? All I do at work is build dev environments, manage credential storage, and every now and then get roped into server upgrades kicking and screaming...four months for a freaking dev environment???

FOUR? How does this happen?
US identifies go-betweens who gave emails to WikiLeaks
IDEA for Java / Scala / Kotlin.

Emacs for everything else: JS, Python, Haskell,.. all the way to bash scripts.

I have high hopes for JetBrains, and possibly MS, making their IDE "engines" available for integration with third-party editors, similar to the way Rust [1], Haskell [2][3] and JS [5] "IDEs" try to follow (and apparently MS specifies for some of its tools [4]).

With that, you could use your best-loved editor (and people love a variety of them) with whatever language support engine(s), possibly even remotely.

To some extent, the venerable Plan9 ACME shown the way to that. The Xi editor seems to follow this design.

[1]: https://forge.rust-lang.org/ides.html

[2]: https://commercialhaskell.github.io/intero/

[3]: https://github.com/haskell/haskell-ide-engine

[4]: https://github.com/Microsoft/language-server-protocol/blob/m...

[5]: http://ternjs.net/
Digital broadcast TV is usually better quality for the main channels than cable. Plus its free, a great companion to streaming.
Brilliantly done. I wonder how the rules are programmed in or is it some form of real AI?
My mother had a friend who just had her daughter die. I volunteered to help her clean up her house. I had a Commodore 64 and was learning how to program on it. She was going to throw away the Compute and Compute Gazette magazines, but I asked if I could have them instead. Changed my life reading them and learning how the games worked and changing them. Using joystick routines to make a menu in Basic to load programs off the floppy disk and execute the address for the sys command in the menu so the user doesn't have to do it.

It was so long ago I've forgotten most of it.
doctors stare at screens all day now also.
Vim because it's burnt into muscle memory. For things like Java-programming I'm also happy to use IDEs.
Voice recognition obviously?
At the end of the day, easy debugging is my #1 concern when choosing an editor. Intellisense a pretty close #2.

I just wish I didn't need a completely separate editor for each language. Right now I regularly use PyCharm, PHP Storm, Ruby Mine. I guess I also use ReSharper a lot, but that's slightly different :D
True, or _a credit card_, given credit cards have chips too.
Those fucntions all map quite well to programming or problem space constructs. For example, Polynomial time comes naturaly from nested loops over the input. Exponential and factorial complexities come naturally from exhaustive searches over combinatorial explosion, and exponentials also crop up in the context of naive recursion. Logs come from anything that looks like "recursively eliminate a fraction of the possibilities".
I don't...wait...hold on. How is PHP that high on the list?!
OTOH, communism doesn't need to be perfect to be better than unregulated capitalism.
Until they aren't. Bear Stearns paid its bills every year until it suddently didn't.
Using word vectors to decipher Swedish culture
Does Android have a similar indicator for background apps recording audio?
I use VSCode for front-end dev with TypeScript due to the simple out of the box setup and snappy interface. For back-end in Java/Kotlin, I use Intellij IDEA - I've yet to find another IDE that can provide the refactoring and static analysis tools IDEA can provide.
tmux + vim on the server because it's there and does what I need it to do.

sublime text on the desktop for easier clipboard managment and motion keys that are consistent with the environment
I would love to open a distillery and make Rye.
My only regret about getting into his channel is that now I have seen all of his videos and I have to wait 7 days for each new one.

His channel is great for more than just its content; it's also inspirational. My father has been a hobbyist woodworker and he has a small basement shop. Growing up I would frequently be down there with him 'helping' here and there, but never really built much of anything on my own besides a few small projects.

Watching Matthias' videos rekindled my interest in the hobby and I even picked up some new tricks along the way. It has also been great to get back into the shop with my dad and spend real quality time with him.

Matthias, if you ever read this: thanks!!!
As long as the metrics are consistent, then for most applications it doesn't matter whether they precisely measure actual unemployment, only that they track it. The second graph indicates that this generally holds true, with some divergence due to the Great Recession. Public policy initiatives are pretty blunt instruments, and it is usually enough to say that they are working when the unemployment index is going down and not working when it's going up. Anything beyond that is relying on a level of precision that neither the measurements nor the policies justify.
Link to the tooltip library: https://popper.js.org/tooltip-examples.html

Link to the popper library: https://popper.js.org

I found Tooltip.js library really helpful for people who are less technical and want something ready in a short amount of time.
In my opinion, Popper.js instead, is more powerful but it requires time to work with it.
You clearly don't have site to site mass materializers (ie star trek transporters) then you could just move it to your location when you need it. Get on the ball!
I liked this explanation better, it's rather clearer: https://physics.aps.org/articles/v9/155

Here is the original report of the effect: https://journals.aps.org/pr/abstract/10.1103/PhysRev.109.603
Re: automated testing. This can be quite time consuming to set up in many environments. Step one: get an Oracle database instance/schema that you can snapshot and roll back to a known starting state at will. Step two: get multiple connected app instances into a state to support each test run. Step three: just drop it, those things aren't gonna happen before you update your resume :-)

I'm ignoring the approach that says: Let's just spend a LOT of time writing mocks that stub out 90% of everything that matters, and pretend that the tests actually show something that matters.
I'm a web developer now. If I could switch, I'd absolutely love to be one of those forensic science technicians. To use science to put away the bad guys (or exonerate the good guys) sounds so gratifying.
Zombies apocalypse might wipe out humanity in 100 days