skysight-inc/HackerNews huggingface dataset:
My experience so far with functional languages (as an OOP-er):

* After a whole evening studying I am able to subtract 1 from 5.

* After spending hours checking what is wrong it just does not compile.

* After the hello world part there are no libraries that can be used for web development.

* Lack of good documentation.

* Lack of good tutorials.

But lately I discovered Elixir and I believe this could be a language that would change my mind about functional programming. Phoenix looks great and LiveView matches .NET Blazor (which I use a lot).

But then there is still the question: why even bother using a functional language? Because I have little experience in functional languages this is hard to answer for me.

Edit: "After a whole evening studying I am able to subtract 1 from 5." I should have formulated this different. What I meant was: sometimes you follow a very long tutorial about a functional language. You will learn a lot about the syntax but in the end when you try to use it, you will only get to the basics of writing a function that subtracts x from y.
I have spend the quarantine hacking in C. On FreeCIV.

Still used lots and lots of places
> however, did get UT2004 working! (no sound so far though)

It has been some time since I tried, but IIRC UT2004 requires the OSS sound API. It can be emulated with Pulseaudio using `paoss`.
This is due to an old version of SDL being shipped. IIRC, deleting the SDL so, or upgrading it works, and also provides other niceties, such as alt-tab support, steam overlay, etc.

There's also a project from Icculus to expose an SDL 1.2 API for SDL2, but I haven't tried it. IIRC his video demonstration used UT2004 on Wayland.

BTW, this is why statically compiling is a bad thing, and LGPL a good one: let users upgrade the libraries :)
Posted this three hours beforehand with the same format (https://news.ycombinator.com/item?id=23265445). Would've been nice to see an attributable comment, but at least some people will make use of the information.
Where do you have real time constraints but don't care about things blowing up?

I guess there's lots of places that have soft real time constraints like in games and other entertainment? But hard real time usually means you do care about not blowing up.
Actually it depends who you ask. There's kind of two school of thought.

One says FP is about using functions with closures, higher order functions and anonymous functions as the main building blocks for modeling your program logic. This style is championed by Scheme and other Lisps. It is also slowly creeping up in all major languages.

The other is about immutable data and pure functions, and modeling your program using those as your main building blocks. Either as much as possible, and sometimes even going as far as restricting yourself only to this.
Looks great, I will check it out
Monads are among the simplest abstractions you can find in computing. Compared to almost anything you need to understand in software development (how the hell do I make webpack do the thing I need?) they're ridiculously easy.

The fact that so many devs are scared of monads and believe outrageously silly things like you need a math phd to understand them seems to be similar to being afraid of drinking dihydrogen monoxide. Even though it's only water, it has a complicated sounding scary name, so it must be bad.
Use dailymotion, or vimeo, or host your own site.
The code font I use is Triplicate: https://mbtype.com/fonts/triplicate/

I use the Poly variant by default, only disabling it in places where the monospacedness matters for layout purposes, e.g. the terminal recording in this article (because of Vim), and Rust compiler output in some of my other articles. The Poly variant does things like make i, l and space a little narrower, and m a little wider, which makes casual reading more comfortable than a strict monospaced font.

I do this because I believe that monospacedness is substantially overrated in most places, and that most things actually look better not strictly monospaced. I contemplated not even using a monospace-style font at all but decided that was probably going too far for most people. (And as a Vim user I necessarily work in a monospaced text editor; but if it weren’t for that, I’d probably go full proportional.)

So I’m curious if you have further feedback on this matter and why you find fault with what I’m doing. It may influence what I do.
Everybody should also have a computer and a fast internet connection to access knowledge.

People should also get free books.

People should also get free fitness coaches, so they can be healthy.

People should also be entitled to a job, so they can have a sense of purpose.

We can spend days thinking about what should be a right that everyone should have for free. The only problem is figuring out who should pay for these things and what’s the correct price of things without a market

I wrote some thoughts on why I think free healthcare is just bad: https://ferrucc.io/posts/healthcare/
I mean the revealed text - what does it say?
Nice try.

http://www.hntoplinks.com/all
>- Stealing C# attribute notation instead of having the ridiculous __stdcall sort of convention

C++17 introduced the attributes in the form of [[attribute]], e.g. [[maybe_unused]], [[fallthrough]]. Clang also supports e.g. [[gnu::packed]] instead of __attribute__((packed)).

>- A real keyword for include guards

"#pragma once" is de facto supported everywhere. The general stance seems to have been to not bother with standardizing, as modules were a better solution anyway.

>- Function pointer syntax sugar

Aliasing function pointer seems mostly reasonable?

using my_function_pointer = double(*)(int a, int b);
It's not 'dismissive' it's just a bit more cautious now. Off-shoring has been a 'thing' for over 20 years, and so far wipro and friends haven't put us all out of work.
I think you either haven't thought about this hard enough or you're embarrassed at being asked to spell it out. Again avoiding any kind of actual answer isn't nearly as clever as you seem to think.
The one that controls the web application you're currently using.
back in the early 00's when I was in university I did some research assignments concerning the outsourcing and offshoring of it jobs in small and medium sized businesses. The main gist of it is that most ended up switching back to local or hiring back part of the staff. The main problems I was told were:

Cultural (mostly with eastern Europe) which introduces additional overhead due to cultural things not being equal especially for custom software for things like school districts as an example. You have to specify more which you assumed was common knowledge. Also things like meeting hours are somewhat more flexible in other places than in N/W Europe.

Timezones: many things have been said about it but it didn't work for most companies combining Europe with (South)-East Asia. Ukraine and Russia was not a problem.

Management capability: a managerial job locally is not the same remotely and most could not adapt or required more people offsetting the cost savings. This tended to count more for smaller businesses.

Emotional: lack of affinity with the product, remote workers are counting just hours spend and thus the TCO was ignoring the hours local people spend in their own time working on the product. This is not a given for all but was one of the reasons companies switched back.

These are just some examples. Most companies, especially the smaller ones, switched back to local hiring. Some made it work but not at the expected savings. The most successfull were the bigger businesses and my guess would be they had/took a longer time to prepare and hired the correct people for the job instead of relying on already hired employees which is not something you can always do in smaller businesses due to continuity.

I really wonder what is going to be the effect this time as everybody is forced at least to train all the soft skills like remote communication and scheduling.
Many regular jobs are outside of the 9-5 interval so having a different schedule is not exploitative per se. In this case many people would probably appreciate the flexibility to actually have leisure and see their families in daylight hours.

Of course, in the end it is all about personal preferences.
If your company starts using Tata or Wipro or whoever, then they are both outsourcing and offshoring so the two concepts are very closely intertwined.
Yes, value velocity. It’s linked from the above blog entry.
Please also open-source MS DOS 7.1 and QuickBasic 4.5. These are equally nostalgic and slightly less useless.
I thought there was an interesting point in this economist article:
https://www.economist.com/business/2020/05/21/americas-lates...

"tsmc could equip the Arizona foundry with American gear from its existing factories, freeing space in its Taiwanese operations for brand new non-American kit that can freely serve Chinese customers"
Fun fact (and obscure feature):
If you edit a pic on your iphone, even just slightly cropping it, the system saves it as a jpeg.
This to me is a testament to 2 things: phone manufacturers have a problem with feature discovery; these students are lazy and unable to operate even the most basic Google search, which would have resulted in this or many other quick solutions to make the file compatible.
Frankly? They better be smarter next time, instead of putting the burden on the developers (who actually baked in the right exception)
> When possible, employers use private wage surveys to satisfy the prevailing wage requirement and in many cases pay a market wage above those detailed in private surveys

"In many cases..."

And I'm many cases they don't, all my many friends who are H1B (except 2, which are paid at market) are severely underpaid, severely, and can do nothing about it.
There are lots of performance sensitive tools, language runtimes, and cross-platform libraries written in C.
Typically, where does one look for quality remote talent?
AFAICT she’s not using anything besides basic branch management and cherry-pick.

I think having a decent grasp of interactive rebase would help with this flow, but not strictly necessary and author doesn’t mention it.
Show HN: Will My Job Give Me Covid-19?
At what point are more people killing themselves than are getting saved by quarantine orders? No one is seriously making this calculation.
This article is just an advert. I have worked on practically the same project as the second example with a different manufacturer and can tell you it is a lot more expensive than 5 million. This project was 90nm,3 years ago so comparable to 55nm nowadays, and minus the mcu, so there is no licensing costs. NRE of 20 million for design, development, and bringing to production. And I think it ran over budget, with only 1 silicon revision. With a final component cost of $1.20, it finishes up cheap compared to the cost of individual components, but the up-front costs are much larger than they are suggesting.
They only list mask sets here, not mentioning engineering time for 12+ months and design license tools, costing upwards of 1 million per seat. Then on top of that the PDK from the manufacturer. I would love to see the full cost breakdown and see where it becomes viable.
Learning About Data Science the “Scientists” Way
I'm no assembly genius, but the GWBASIC source is for the 8088 CPU and not the 8086 (the chips are slightly different) - maybe that is why? Also, DOSBox is not 100% compatible with original hardware - Try it again in a VM under VirtualBox maybe?
FP ideas have been seeping into the mainstream for quite some time now.

The oldest: GC was originally invented for Lisp. It's common now.

Type inference was big in FP before it made the jump to language like Java or C++ much more recently.

Generics were a natural idea in a typed FP context. Mainstream languages got them, now.

I'm looking forward to algebraic data types becoming really common. (The simplest explanation is that they are C-style unions with tags to tell you which case you are in. The compiler enforces that the tags correspond to how you use them.) Some mainstream languages are starting to add them.
Waterloo is the best computer science University in Canada. And a coop is essentially an internship for 4 to 8 months.
No, it was about encapsulation. Consider the save dialogue: if wants to have an array of the json saver, sql saver etc and perhaps display them in a pull down list. Virtual inheritance let’s you make the std::vector of the base class. Otherwise what could you use? A pointer, and manypually reimplement the vtable?

Also this means changes to the underlying representation don’t always require changes to the dependent classes, which I suppose you could consider an ABI change.

Maybe an easier way to characterize it is to consider the virtual classes a way to implement plug ins.
Could not agree with you more.
> Concurrency and parallelism without debugging hell is huge.

There is plenty of libraries in C++ that haves you concurrency and parallelism without debugging hell.

Hell in concurrent code comes when you have shared state, and that is valid for both Go and C++. Using shared Golang Map in multi-threaded code is a very good example of deathtrap, even if it's in Go.
Data Annotation Tools – Demand for Smart Products to Underscore Growth
> Apple OSes use C++ for device drivers

Embedded C++, and the kernel is pure C.
What does it mean to be local? Behavioral dissonance: local/global
Free Listing on Google Shopping Updates: Local Surfaces Across Google
I can't help myself but ponder deeply about the definition of being local after following few posts in this thread: https://twitter.com/hashtag/VocalForLocal?src=hashtag_click

While the pandemic has globally stoked a sentiment to support local products, the very voices supporting them seem to be using platforms built for a globalized world. I can't come to terms with this behavioral dissonance where global platforms like twitter are used to post harsh comments on multi national companies and their products. Where are we headed? What does this behavior mean? What is a healthy way to support local products?
?

Edit: I don’t understand
This is bizarre to the point where there are a bunch of questions raised.

> Among the misinformation disseminated by bot accounts: tweeted conspiracy theories about hospitals being filled with mannequins or tweets that connected the spread of the coronavirus to 5G wireless towers

> We do know that it looks like it's a propaganda machine, and it definitely matches the Russian and Chinese playbooks

What exactly is mental state of the Chinese or Russian propaganda departments that they would be doing this? How could the Russians possibly benefit from US citizens aged 60+ dying off at 2-4 times the normal rate? How could the Russians possibly sow more division amongst Americans vs. the normal state of American politics? Just this week Pelosi called Trump morbidly obese, and she is the underdog of childish name-calling in that pairing. How could foreign agents trolling on twitter top that level of incivility?

And who are the idiots who are looking up random twitter accounts as their information source?
I have a job in a tech center and I make a great salary because of competition for my services, in NY or Seattle or SF or where ever. Right now I'm working from home entirely. If I'm in Seattle and I work from my cabin 100 miles from Seattle, no one will know assuming I have internet. Taxes are the same too afaik (no local or state taxes). Presumably this is okay with everyone.

How much working away from my supposed seattle job (that doesn't even exist right now) do I get before I am not working in Seattle?

Suppose I saved so much money from my seattle job that I bought a weekend condo in another state, in Oregon. If I go there many weekends, I think I can still keep my seattle lifestyle (there's some matter for the oregon tax court to decide I guess). But am I still "working in Seattle"? Now suppose I go from my cabin near Seattle to a cabin on the other side of Washington state. Or I go spend 40% of my time in my Idaho cabin (boy, I have a lot of cabins, they are so cheap with my Seattle salary ;-)). When do I stop being a Seattle employee and become a whatever employee?

If I have 3 houses in states with the same "no income tax" like in Seattle can I live 51% in Seattle and split time in the other places and still be a seattle employee? Obviously I'm trying to point out the arbitrariness of these policies.
> At what point are more people killing themselves than are getting saved by quarantine orders? No one is seriously making this calculation.

>> Doctors at John Muir Medical Center in Walnut Creek say they have seen more deaths by suicide during this quarantine period than deaths from the COVID-19 virus.

Looks like some people are, and it made the news.
Scratch is great. If you want something like that but less open ended and more directed (with exercices and training videos) try
https://code.org/

It also helps they use known franchises like minecraft or angry birds =)
That's basically the crux of it, syntax matters a lot less in language adoption. Most mainstream languages benefit from a "killer" app, feature, software-class or platform, which is what sees Swift become hugely popular because of iOS, Java/Kotlin getting a boost from Android, Browsers popularizing JS and many games & OS Software still written in C++ for its zero overhead abstractions.

Ecosystem, native libraries, community, knowledge, tooling, familiarity, domain suitability, hireability and overall general dev productivity & UX matters a lot more in language adoption.

I'm not seeing any big draw card from a Killer App that clearly highlights its superiority over more popular alternative languages. There's many niche areas where FP shines like implementing compilers, statistics & math models, but I don't see much appeal in mainstream usage where it adds enough value over dominant languages to overcome its deficiencies in other areas. A clear example is AI which is an area that FP would excel at but is still dominated by Python & its dominant ecosystem.

The value proposition of pure FP languages also gets diminished as mainstream languages adopts FP language features.
What are examples of cultural musunderstandings?
He said it better than I could:
http://www.youtube.com/watch?v=Jtk6DtkJhrA&t=4m23s
Charity has never adequately addressed social problems in America.

signed, a surfer
Which language did you try to come to terms with, and what material did you use?

How much are you exaggerating?
I don't know from this comment on what side of the fence you are but plugging a mouse into a mac has always felt horrible to me, like I was mousing through mud, I would always feel like the pointer slowed down too early and then I would have to reach a long way to actually get to the target. May just be my muscle memory was attuned to Windows/Linux.
It has happened twice during my career that a colleague got actually, literally hit by a bus.

Both of them were back at work after a week, one of them had problems with their arm for a while longer but this risk is way overblown.
As far as I can tell, prisma has turned into just an open source typescript query builder (probably the best in it's class though). Prisma used to be graph.cool which was very similar to Hasura.
Do you mind sharing what those skills are so I can focus on them as a younger developer?
They are roughly on track. I don't understand their thinking, but those numbers are roughly as forecast. They expected 18% infection by the end of April IIRC, and measured 7.3% antibodies (which trail infection by a few weeks). Hospital admissions have been flat or even shrinking a little in Stockholm for weeks now, which can only be a sign that they're approaching herd immunity, AFAICT, even if they're nowhere near the common estimate of 60%.

Note that herd immunity isn't a goal in Sweden. It's a state they expect to reach (before vaccines become available) but it's not a policy goal.
Cutting headcount rather than dividend isn’t a good look.

But this makes sense now that IBM has become a body shop. I doubt the cuts will come in what remains of research, manufacturing, or design. Likely all in “services” and its sales teams.
BEM is awesome and simple mapped values in SCSS + functions let me do things like:

padding: p(‘s’) p(‘m’);

For that 8-px magic.

c for colors, bp for breakpoints, f for fonts etc.

This solves all the inconsistencies addressed by css frameworks and gives me slightly larger LEGO blocks.
> These are relatively simple steps that would improve public health dramatically

And nuking a city stops all crime in it. If you only look at one tiny aspect and ignore everything else, just about anything can be made to seem sensible.
Removing headcount and still maintaining the dividend will make it hard to hire in the future. It sets a clear signal where the priorities are.
> Will this be well-defined behavior?

No, it’s illegal in C++. Use std::bit_cast.
Shameless plug time again. If you are on Windows, why not try my Gopher client:

http://www.jaruzel.com/gopher/gopher-client-browser-for-wind...
A PostCSS plugin for people who prefer to write English properly
It looks like Evan Spiegel of Snapchat still spends a lot of time on product and design.
Okay then I'm lost. Why can't you have JsonSaver, SqlSaver, etc. inherit from a Saver class the normal way, and store instances of them in a std::vector<std::unique_ptr<Saver>>? Then you'd just need struct Saver { virtual ~Saver() { } virtual void save(...) { ... } } along with struct JsonSaver : Saver { void save(...) override { ... } } and it should work, right? I'm confused why you need a virtual base class on top of that. Are you by any chance confusing "base classes with virtual methods" with "virtual base classes" (which may or may not contain virtual methods)?
Embedded C++ is a C++ subset, it is as valid C++ example as those embedded C dialects that aren't able to fully support the ISO C standard library, yet people still call them C.

And as of Driver Kit introduction, 100% full C++ is now an option.

In a couple of years from now, when the full transition of kernel extensions to user space modules is complete, the kernel will be the only C piece left.

Which Apple most likely won't bother to rewrite due to the historical baggage of mixing BSD with Mach code that probably no one is willing to re-write.
Isolation paradox: Isolating will help you be less susceptible to illness. Isolation is known to cause higher levels of loneliness, depression, fear, anxiety and weaker immune system increasing susceptibility to illness.
Who doesn't like Salmon?
No one in the CDC or state health departments seem to be taking this into account. They're only optimizing for one variable: number of infected and number of covid19 deaths.
I've done GUI programming in a Haskell dialect. It was rather pleasant, thanks to a nice library by Neil Mitchell that took ideas from functional reactive programming and lenses.

You can get arbitrarily close to the hardware with functional languages. It's just that the flagship functional language that everybody knows and loves, Haskell, is not the one for the task.

You want a language with linear variables / uniqueness types for that.
Increase adsence eaning in click and impressions in one month
When I mapped Gopherspace back in 2018, there were over 300 active gopher holes:

http://www.jaruzel.com/gopher/mapping-gopherspace
> On Windows it has been long considered persona non-grata

You say this as if it is the fault of C. I see it the other way around -- Microsoft's refusal to implement C11 is singlehandedly contributing to the decline of C, because they've leveraged their large OS market share to make it impossible to use an update of the language for cross-platform development. They are killing it on purpose, and it's infuriating.
It's not really a paradox because it's understood. Isolation signals to your body that you are being excluded from your tribe or low on the social ladder, which means your world is now more threatening than it used to be, so you need to use more energy to be hyper-vigilant and responsive to stressors.