skysight-inc/HackerNews huggingface dataset:
Both your convenience function and the quotes in the type name can be removed via the use of static opDispatch:

struct FlagImpl(string name) {
bool value;
alias value this;
}

struct Flag {
alias opDispatch(string name) = FlagImpl!name;
}

struct Yes {
static auto opDispatch(string name)() { return FlagImpl!name(true); }
}

struct No {
static auto opDispatch(string name)() { return FlagImpl!name(false); }
}

void fun(Flag.foo a) {} // Look ma, no quotes!

unittest {
fun(Yes.foo);
fun(Flag.foo(true));
}
I second the "delay-then-send" approach. Don't bother with a digest. Just hold email until the scheduled time then release them. Might want to put suitable intervals or you might get zinged for spam or otherwise throttled. You've probably hit that already.

I use a similar but far less fancy approach with email filters: I have everything put into its own filtered folders then only check them on a schedule.

Your approach is good because the schedule is right there in the email address.
We had somehow acquired a copy of photoshop when I was growing up. I ended up installing it and using it solely to draw mustaches on family photos, and in the process ended up being drafted as the resident IT admin for the entire extended family at like 6 years old. Ended up getting a trojan on that computer and we opted to shrug and throw away the entire tower.
The extension method syntax is the de facto idiomatic standard.

The idiosyncratic special syntax was misguided and fortunately is largely abandoned. Alas we are stuck with the reserved keywords forever.
General experimentation does break tech quite often for adults. If they mess with settings, they are unable to later fix them. For example, they end up without internet working and have absolutely no way to figure out that proxy was set to something random.

Or even something as simple as having all the fonts too small/too big and being unable to fix them back. Accidentally hiding toolbar you need. There are many ways how to break tech by experimenting it is quite hard to figure out what went wrong later.
You need to think of security. If your server gets compromised I don't want any documents that I would have stored with the service to be able to be read by the attacker.
None of these figures have ever supported a wealth tax.

Fixing the water situation in Flint, Michigan would be a good starting point.
I'm building an AI agent to help develop foreign language skills through realtime (spoken) conversations.

It's funny how we're all working from different definitions of the word "problem" - I'm certainly not changing the world with medical supplies for developing countries, renewable energy, payment systems and so on.

But it's something I'm really passionate about, and I'd be over the moon if I came anywhere close to the picture I have in my mind.

Back when I was studying German and Chinese, I would spend hours and hours on rote practice with little to show for it.
My brain almost felt like it was on autopilot - the eyes would read the words and the hands would write the sentences, but the neurons weren't really firing. It didn't feel like I was properly building the synaptic bridges necessary to actually use those words in conversation.

On the flipside, after just 20 minutes speaking with a tutor, my proficiency would improve leaps and bounds. Being forced to map actual, real-world thoughts/concepts to the words/expressions I had learned - that's what made everything clicked. It felt like the difference between just reading a chapter in a maths textbook, and actually doing the exercises.

So after keeping track of progress in NLP and speech recognition/synthesis in recent years, it seemed like a logical time to start. Progress is slow/incremental, but it is there.
Show HN: Byte for Web (Unofficial)
Unique Delphi Features for Windows 10
It should also learn the caller's speech and slowly overtime change it's own voice to sound more and more like the caller. Eventually the caller would be talking to themself... same accent, cadence, vocabulary, etc. LOL
what's with the hostility? I'm just proving that even a 4 year old would be smarter than an AI agent.
Well, you could always try it and see.
I kinda miss those times where you could talk about those Thinkpad clits at work and no one would bat an eye. The degree of puritanism of the new generation is a bit terrifying.

We had plenty of women in the lab, btw.
Stack overflow questions should be flagged for deletion if the answer is in paragraph 1 of the man page
It's not a standard, they're extension methods on IEnumerable<T> in the System.Linq namespace, extension methods anyone could write and use instead.

The "idiosyncratic special syntax" you're referring to is called LINQ.
Because this wouldn't be national news if it were any country but China, and if things continue the way they're going, at best I'll get deported without cause. I know that I can't change any minds on a forum like this, where any comment that isn't fully critical is "biased", but I can't go without at least trying.
I've always wanted a tool that can create a flowchart from the flow control of a piece of code. Ideally it would be bidirectional - you could drag and drop things in the flowchart and the text sourcecode would change, and vice versa. There are a million tools that do this with object or class diagrams, but I've never seen one that does it with imperative flow control code (if/then, switch/case, while & for loops, etc.).
To anyone interested in running Wireguard on Ubiquiti have a look at https://github.com/dynamist/ansible-role-wireguard-vyatta
Two of my closest friends (who are much better musicians than me) and I get together occasionally to jam. It's become a running inside joke at this point that invariably someone will end the jam with a Picardy third. It's so saccharine and absurd sounding. I love it.
His story gives me hope... Sometimes, it is everyone else who's crazy.
Injecting Electromagnetic Pulses into the Electric Grid: The Poor Man’s EMP Nuke
It doesn’t seem so outlandish when you think of it as paying for the labor of 500 people for a year, some of them a lot, some not so much.
A while back, I posted a list of my long term focus problems here [1]

Short list:

* Pollution and the climate

* Privation

* Avoidable death

* Interplanetary settlement

* Liberty and communication

* Transportation

My primary focus is developing and commercializing reliable clean energy, because I believe that is the most effective way to further progress in the majority of the above problems.

To that extent, I've come to terms with an inability to spread my focus across all of them simultaneously and drive great results so instead I've taken an approach of working on a few of them full time myself and investing in efforts that work on others. My intent is to keep ~100% of my net worth invested in these main problems (either in my own or somebody else's projects) in perpetuity.

In my personal life, I've also recently been spending a lot of time thinking about health and purpose: how to build discipline, how people can/should decide what to do with their life, how to stay healthy and built fitness, etc.

Side project: in my free time over the last few weeks I've also been thinking more about how to create lasting models for information and media, and so I'm building a markup language / static site generator in that pursuit [2]

[1]: https://jwmza.com/long

[2]: https://jwmza.com/polymath
Aren’t there some legal hurdles to providing investment advice like that? Didn’t find the standard disclaimers on your site. You might want to look into it before showing up in SEC’s Radar.
What does it do? How does it work? It’s asking me to sign up.
Assuming a spherical VPS in a vacuum...
and other findings that indicate they used it as part of tool fabrication processes

https://arstechnica.com/science/2019/10/neanderthal-glue-was...
Awesome! (For some reason, the demo gif doesn't display for me in Safari, but I can see it in Chrome/Firefox.)

I feel like this sort of thing could really be an essential tool in teaching programming. I've been working on a somewhat similar project for visualizing execution of javascript code (but it works by instrumenting the code, rather than interfacing with a debugger, so that it can all be done in the browser), which I'm hoping to release soon.
The only cs experience even available to me growing up was a summer camp in town at a local college, where we spent three weeks making a four function calculator in java. I didn't write another line of code for years after that experience, which was pretty unfortunate.
I've had an idea for some time now to create a website that would act as a better codereview.stackexchange.com. It would incorporate some of the features of the GitHub Pull Request system like inline commenting and reactions.

I arrived at this idea from two directions. The first direction is that I sometimes try to code review some of the questions over at CodeReview SE, and the whole thing feels unergonomic. I dislike scrolling up and down to check the code and constantly losing track of the things I'm reviewing. This is where I think inline commenting would help. Also, there is not a lot of room for discussion. You only get those comments below the review, where you only have a few characters to argue your point. The second direction is that I produce code snippets (programming homework, short snippets at work, etc.) which I would like to submit for review. I don't always want to submit it to the entire internet for review. I just want to get a private link to the code review, which I can share with my colleagues so they can review it. Kind of like a reviewable PasteBin.

Some of the features I would like to add: importing files from GitHub for reviewing and users could import their unanswered CodeReview SE questions for another review.
They are contextual keywords and not reserved. C# has never introduced new keywords that change the meaning of existing code.
New hardware would be great, particularly in the Mini. It has more CPU than anything else that size that I can find and with an internal power supply. The lack of compelling upgrades made by Intel seems to be the main problem.

The Hades Canyon Nucs come close, but are larger, have a power brick and are not my taste in design. But the 2x nic, graphics, storage options and price are compelling.

Bring on ARM.
An inmate died after being locked in a scalding shower for two hours. His guards won’t be charged.

https://www.washingtonpost.com/news/morning-mix/wp/2017/03/2...

Just one of the many cases of institutionalised torture.

And it is the states, the prisons responsibility to find a humane way to incarcerate people, if you fail so miserably at it, it just shows how morally bankrupt your country is.
Game Made Only with HTML
Hello,

I think the article is not very good, however its main point still stands.

Part of my activity is teaching basic word processing and basic html/css to non-IT students. And it's quite a struggle because most (I say most because of course there are exceptions) students don't know how to use their computer for the most basic tasks.

Most have no idea how files are organized on a computer, ignoring the concept of file system. They simply can't navigate their file system and end up stuck between their "Documents" and "Downloads" folder. They routinely "lose" their files.

Once they've been introduced to the notion of file system, most don't understand the difference between regular folders and files and zip archive. Arguably, Windows is to blame here since it tries to hide the difference. Then they try to edit the files directly from the archive and don't understand why they can't save them right away.

Most don't know how to use a keyboard. Basic shortcuts (ctrl+c/ctrl+v and the like) are ignored. Most rely on the mouse and the menus for everything, and of course are terribly slow to achieve their tasks.

So we have to explain all these things before we even start with our subject, to the point where I wonder if they've been exposed to desktop computer before. I think most have only been using phones and tablets.

So, from my point of view, the conclusion of the article is right: teachers and parents should not assume their children and students know how to use a computer, because it might not be the case.
Diseases are rivalled only by war in bringing out the best in human creativity and ingenuity.
I believe I could be working in solving bigger problems, but first I need to focus on my mental health, a healthier work-life balance, and providing the primary income for my family.
Wouldn't you really need a log scale or further interrogation to make that claim? To me it seems mortality dropped about 40% in last 50 years which is quite substantial.
It seems that in the common, accepted terminology, text editors [1] are used to edit plain text documents and word processors [2] are what LibreOffice Writer and Microsoft Word are. They process formatted text document, and sure, they can even be used as text editors. So yes, they edit texts, but calling them text editors can be confusing if not clear from the context because of the common terminology (here, the context was clear for me though).

[1] https://en.m.wikipedia.org/wiki/Text_editor

[2] https://en.m.wikipedia.org/wiki/Word_processor
Social dynamics of open source were already discussed, maybe few more words on technical side.

Most (all?) examples on that article are in MIDI format, which is not a trivial sound clip. The MIDI file doesn't contain any actual sound, just 'meta' information on which insturment is used, which notes are being played, dynamics of each note and so on. The rendering of this data into actual sound is left to MIDI player.

Usually the player will have support for 'soundfont', which is the other ingredient needed. It is a bundle of few hundered of instrument samples. To produce music, those samples need to be pitch-shifted, amplified and reverbed using the information from MIDI, and mixed together. The collection of instrument samples requires much work to make it sound well in various contexts. There are precious few open ones and others are burdened with copyright.

The action of 'seeking' through MIDI file is non-trivial because music state/context is collected from events (just as OpenGL is sometimes called a state machine). So to play the last bar of music you always have to fast-forward from start.

MIDI as a standard is considered a bit obsolete, but doesn't yet have the replacement that covers all its different uses (synchronizing and controlling musical equipment, reprograming equipment's presets, capturing musical notation, reproducing music file or from input stream). In 90s the MIDI on web reached its peak because of small file sizes and hardware-accelerated support on sound cards. Since then it is in decline and its future is uncertain.

Being able to just click and hear these music samples on wikipedia, without installing browser plug-ins or hunting for players/soundfonts? Don't take it for granted.
How to Close a Sale: 12 Sales Tips for Success
I'm trying to finally learn parsing properly. I run into a lot of little problems in my day job and have a lot of ideas for side-projects that I think would be served by having a better handle on it. So I'm creating toy languages and writing toy parsers for them.

One reason I'm targeting parsers in particular is because I've been finding a lot of modern programming language books are a bit anti-parsing these days. EOPL avoids parsing altogether by using a parser generator, effectively saying that it's a hard problem. PLAI outright calls parsing a "distraction". SICP (not strictly a compiler book, I know) and Lisp in Small Pieces just use the triviality of parsing () languages, which I feel doesn't generalize well.

I emailed the author of PLAI (Shriram Krishnamurthi) about this. His response was effectively that modern books come off anti-parsing as a reaction to old books, which were parser heavy, and tools like YACC -- "Yet Another Compiler Constructor" -- even though it's just a parser generator, not a compiler constructor! He went further to say that, given parsing is roughly trivial in () languages, it sort of seems parsing is only incidentally a compiler/interpreter problem, and users of () languages view non-trivial parsing as signalling a design flaw. I found this to be an interesting take, but in my day job I generally don't have much say in the design of "languages" of semi-structured text that gets thrown my way.

Anyway, I know the Dragon Book covers parsing in some detail but for some reason it's been kind of impenetrable for me -- it feels a bit more abstract than I like. I can follow it, but while reading it I can't help but wonder -- "is this actually going to help me in practice?"

I recently have been reading Niklaus Wirth's stuff though, like the last chapter in his algorithms book and his Compiler Construction book, and those have been absolutely fantastic.

I also asked a question on SE about a particular parser I'm working on -- if anyone has some thoughts I'd love to hear them :)

https://codereview.stackexchange.com/questions/236222/recurs...
Tinc a VPN daemon with automatic full mesh routing
Is there a link to the live stream?

Edit - Found it: https://www.youtube.com/watch?v=Ypti_cB0JTc
If you read it, please let us at least know where. Speculating doesn't assist anyone.
> There was no help or documentation. No Internet to download the most basic of resources.

I remember my grandparents had internet before we did at home so I had to cycle to their house and print out documentation to bring home and continue working.
Do you have anything written up about your wireguard setup?
Ben Evans – Tech in 2020 Presentation
Here are the said streams:

https://www.youtube.com/watch?v=Ypti_cB0JTc

https://m.yangshipin.cn/static/2020/c0126.html

https://m.yangshipin.cn/video?type=2&pid=600016637
Naming Convention Transfer
HTTPS productsco com/keto-gedeon/
Keto Gedeon
Keto Gedeon this is certainly a lot for you and it is a solid item too so you don't need to consider this thing especially before acquiring it. It is certainly going to be a totally sheltered arrangement for you and on the off chance that you are going to utilize it routinely, at that point you will accomplish your fantasy body figure effectively. Audits of this item have consistently been extraordinary and it is profoundly mainstream also. This is the explanation that the offer of this item is high and now you ought to likewise buy it so you can likewise accomplish a keto diet and put an obstruction against unfortunate nourishment effectively. It has been made by utilizing just characteristic components which are tried in the research center also. You are totally liberated from symptom with this thing and there are numerous specialists who are likewise endorsing this weight reduction item to their patients since they have just tried at this enhancement will be powerful with no sort of sick impact for their patient.
https://productscop.com/keto-gedeon/
https://www.youtube.com/watch?v=VZ1z69YFUb4&feature=youtu.be
https://letsfindtoday.wordpress.com/2020/01/29/keto-gedeon-scam-should-you-try-read-first-price-ingredients/
https://letsfindtoday.hatenablog.com/
http://letsfindtoday.over-blog.com/2020/01/keto-gedeon-pills-review-2020-update-is-easy-to-use-read-before-buy.html
https://works.bepress.com/letsfind-today/52/
While I do agree that the article is written in an ill-conceived manner, I do believe that much of the discussion regarding it is fairly biased.The user base on hackernews is not comprised of people who are unfamiliar with development or "figuring things out themselves". The problem resides in how highschools are not staying current with the science curriculum. All of the highschools I've visited, in the past 4 years, both in Ireland and in the Netherlands have not offered any sort of computer science education, which I myself would believe to be fairly important in a modern education. Of course it shouldn't be a mandatory class, just like how the other sciences are not mandatory. It should simply be a subject which is available to be chosen. While we did have an "IT" class in Ireland, it was solely about teaching the kids about typewrite. This doesn't give the students a chance to learn about the world of Computer science in school. I study computer science now despite this, but many students never decide to study something irrelevant to school in their free time.
What a beach merchant in Sri Lanka can teach you about business
I was wondering that. Why would you to to a restaurant without an ability to pay?
Sanitation is good, but too much sanitation is not so good. We're only just beginning to understand our relationship with bacteria, virii and micro-organisms. While sanitation was a great boon to reducing deadly pathogens, we're now in the process of swinging the pendulum too far, using antibacterial products that should really only be used in hospitals, keeping children out of the dirt (with growing indications that this leads to allergies), and generally living in fear of anything not institutional-clean. Our immune systems are beginning to atrophy from lack of "exercise".

Have you ever wondered why lovers touch their lips together, effectively sharing the bacterial brew in their mouths with another? I can guarantee that such evolved behavior is not simply coincidental.
You can write custom CUDA kernels, and I've written a few to support operations over our ragged format. Actually Thinc makes it pretty easy to optimise a specific bit of code with a custom op...cupy's fused decorator can also work well in some situations.

What you don't get is the compile-time auto-optimisation. Like, there's no asynchronous dispatch like you would get from PyTorch.

If you write a chunk of operations as just cupy maths, and then write the same thing in PyTorch and use the PyTorch wrapper, you can expect the PyTorch one to perform better. You would also need to write the backprop callback for the cupy maths you did. Sometimes you might find optimisations PyTorch doesn't though, especially around speed vs memory trade-offs.

Part of the philosophy and difference between this and other frameworks is that we do not do any compilation or trickery of any sort: what you write is what gets executed. Obviously this is slower a lot of the time, but it means we can play well with others --- we're not wrestling for control of more of the graph so we can make more optimisations, and we're not limiting the hand optimisations you can do for custom situations.

Here's an example of how I've wrapped CUDA kernels, using Cupy's RawKernel feature. Most people do these as strings within Python source, but I find that super ugly. I like to keep the cuda source in .cu files, and then read in the file to compile it.

* The CUDA kernels: https://github.com/explosion/thinc/blob/master/thinc/backend...

* The code that calls cupy.RawKernel and the wrapping functions: https://github.com/explosion/thinc/blob/master/thinc/backend...

* The wrappers are called by the CupyOps object: https://github.com/explosion/thinc/blob/master/thinc/backend... . This object has the same API across backends, with some functions redefined with backend-specific implementations. In the NumpyOps object, I instead call into custom Cython code.

My CUDA skills aren't great, so I'm sure there are improvements that could be made. I'd welcome suggestions if anyone has them.
QAnon: A wild conspiracy theory with Donald Trump’s support?
Most likely it'll drop at the kernel release in April I believe.
Mistakes and Discoveries While Cultivating Ownership
http://whuflu.live/ is another one (for multiple camera views)
Long live their fake world
Mr Bryant dying on the week of Mr James passing his scoring stats. Is it not fixed?
How is having children a fundamental right? It's a hobby. In fact, in this case I'd consider it worse than many other hobbies because you are making another person, statistically speaking, suffer because you want to have a pet project that you cannot afford.
Links to the streams;

Leishenshan: http://t.cn/A6PIeT14

Huoshenshan: http://t.cn/A6PIYNvD
Elizabeth Warren's battle against paid political speech