skysight-inc/HackerNews huggingface dataset:
>Most of HN

I'm part of HN, my general attitude here is that the maintainers of the consuming software are at fault.

If you have so many dependencies (especially in javascript, hah) that you can't keep track of what's happening with them then either your scope is too big or you're just carelessly glueing things together because you can't be bothered to build sane things on your own.

I understand using things like jasmine and one or two other big things, but at that point those big things are critical components of what you've built and you need to be paying close attention to them for the duration that you're responsible for the maintenance of the code.

TL;DR: the fault is with the consumers for being careless, not the people who actually put work in.
If anything it'd be detrimental since it would allow more people to drive longer and more often.
Wow, never underestimate how crazy people can be!
The perceived value of gold as a store of value comes in part from the fact that humans have been using it as a means of trade/store of value across a vast span of cultures for many millenia. Bitcoin has been around for 8 years. With Bitcoin there is no guarantee that competing technologies won't spring up to replace it in the mid- to long-term. Gold will always be gold.

Also, gold is shiny. Personally, I'd much rather have a gold bar in my safe, that I could take out and hold in my hands, than a memory stick with some Bitcoin on it.
> How did you learn about marketing?

I only learned the bare minimum, which is to do cool things and tell people about them. Even that tiny bit of marketing knowledge made a huge difference to my career.

> how did you get the opportunities to shadow a CEO?

Not all CEOs run fortune 500 companies. My step-father is the sole IT guy at a small manufacturing company. I asked the CEO if I could shadow him one summer and he said yes. The guy knew absolutely nothing about computers, so whenever he had to do anything with a computer, he had me do it. I was always able to get it done in a fraction of the time it took him. He considered that a worthwhile value trade.

If you google around, you'll find stories about how ambitious people have gone about getting their opportunity to shadow CEOs at much, much bigger companies.
You showed a 70 year old Linux? You do realize what you just said, right?
Growing Our Team with Retrospectives
It's worth reading up a little on self determination theory and how they think about intrinsic VS extrinsic motivation if you've never heard of it
It checks if a non standard feature is available, otherwise falls back to a standard implementation.

My argument was that it was possible to implement it with standard C++.
The "freedom of speech" excuse bugs me when it is used in cases like this. Regardless of what the law is in various jurisdictions, the principle of free speech does not entitle anyone to an audience, and certainly not to harass people in order to hijack one.
I don't know if JVM is a problem; the issue that caught me in my few-weeks of experimenting with the language was the lazy semantics of sequences.

I know the problem, and I've danced around this same issue in things like Haskell with strictness annotations, and I've run into the same problem in R, but I'd like to just be able to read and parse a ~1GB CSV file without blowing out RAM with a giant list of thunks.

This was many years ago now, so maybe they've fixed it, but I'm tired of fighting that particular battle.
I have used Nim extensively and done a lot of metaprogramming in it. The biggest risk to metaprogramming is that it allows crazy syntax that you have to learn separately. Nim does very well here to enforce limitations which work well in reducing this risk.

Comparing Nim's metaprogramming to Rust's shows what I mean. In Rust you can write macros that act on token streams, so as long as the token stream is valid it can be used. This allows libraries like the typed-html package[1].

In Nim you cannot do this unless you put the HTML in a string literal. This limitation created a syntax that is far more idiomatic, admittedly at the expense of familiarity for users of HTML:

buildHTML():
html():
head():
title: text "My webpage"
body:
p(class="red"): text "Hello World"

In my experience this works quite well, you can see a larger example in our Forum's code which is written using a SPA framework called Karax[2].

Please don't let style insensitivity discourage you from using this wonderful language.

1 - https://docs.rs/typed-html/0.2.0/typed_html/

2 - https://github.com/nim-lang/nimforum/blob/master/src/fronten...
That doesn't work, for the exact example you cite. I am not rich enough to afford to buy a TV ad (this includes both production costs and airtime - I'm not an advertising expert nor a good actor so I'd need to hire people to make a good ad). The only way I can afford to get a TV ad out is to get a bunch of like minded people together: create a company with the express purpose of buying our ad, but your just prohibited our company from buying that ad.
I don't have an issue with the base argument, I agree with it. I'm saying the examples are false equivalences because in the context of the original comment, they are. There's nothing in the original comment that indicates the use of the word "only in reference to Asians" because you have a sample size of 1 (again, I've personally heard it used in non-Asian contexts too). Making an assumption about the intent of someone's comment doesn't fit my definition of a "valuable argument" outside of more context, but as I said I agree with the general issue with individuals using certain words only in certain racial contexts.
Thought the first was clojure on perl for a minute
See sibling post
Google: Ajax/XHR Calls Can Impact Crawl Budget
Take a peek at Crux from Juxt. Really exciting times happening on the data front.
Reminds me of the snide economic distinction about gold. Unless you are doing work with gold as a raw material it isn't an investment but speculation. Even investing five hundred dollars for a day into Walmart is more investment as it enables short term production and utility creation of some sort - even if it is just getting a bag of potato chips at 3am. Gold or bitcoin in this case just sits there.
Get Coding with This Atari 2600 Development Suite
https://github.com/sw-yx/async-render-toolbox

https://github.com/facebook/react/tree/master/fixtures/unsta...
They sell terminal, personal devices, which is not the same thing as building the 5G network. I think the Snowden revelations have made it perfectly clear that the western governments have been extensively monitoring network traffic/infrastructure since forever.
I was more getting at the governance model. You didn't say this, but the direction of the discussion seemed to be that centralized metadata == for-profit.
Tl;dr, the "fan" didn't directly "sabotage" anything, but he did post on a blackhat forum asking for a ddos attack on the site - and things got out of hand, putting the site owner's small business at risk. The criminal sentence is harsh but dude's still a huge asshat, he should have been dragged into court and forced to pay punitive damages to the forum owner. Make him give up his nice telescope collection, since he doesn't seem to care all that much about astronomy anyway.
Chalk and the chalk holder.
Really curious about this event.. CHT was getting lotsa traction with SV companies at board level.
I had one lecturer in my 4 years at university that only used a chalkboard, and most pupils despised him because the pace as which he wrote far surpassed the rate at we we could sensibly copy notes. We wrote it out, but it gave little time to actually consider the concept we were learning. The rest of my lecturers all used PowerPoint presentations for the most part, in conjunction with print-outs so we could follow along on a projector and write notes/annotations on the provided sheets.

In my eyes, a hand-out + computer notes (which can later be emailed to the pupils) is by far the superior teaching method for most students. This is of course just personal preference, but I much prefer simply sitting and listening to the teacher while occasionally asking questions - taking in as much as I can, then copying up the notes later using material provided by the lecturer so as to commit it to memory. Frantically writing out the notes during the lecture, then going home and trying to eek out some sort of understanding from them just never sat well with me.
> Cosmos launched their mainnet yesterday, and now has a market cap over $1 billion.

Sure, for the same reasons 37signals has a market cap of $100B. https://signalvnoise.com/posts/1941-press-release-37signals-...
I started embracing and justifying spending time on hobbies when I realized they give me something to talk about with non-IT people, and that is valuable. If your hobbies are IT work, and your work is IT work, there aren't many aspects of your life to which people outside of that domain can relate, in fact it can all seem quite boring and you end up with, "I'm doing well, work is going well." But if you can mention you went hiking somewhere and took a new lens for your camera, there are several things in there to which most people can relate and then maintain an interesting conversation.
> Every time I think about a side project, I quickly realize I'd rather spend that time riding my bicycle, walking my dog, or just sitting on the deck with my wife looking out at the trees.

As do I.

I know some people enjoy working on FOSS, but for me, development is work. If I'm coding, it's for work. I work when I work, I relax when I relax.

Of course I've done a few personal projects, but mostly tooling and automation to let me do other things I enjoy.

This does seem to be a somewhat developer specific problem though. My lawyer friends don't do legal stuff in their free time (a few do pro-bono on occasion). Nor do my nurse friends do medicine when they're not on the clock.
> To be perfectly honest, Clojure's biggest mistake, from my point of view, was to be so heavily JVM-dependent.

IMHO, Clojure's use of the JVM was something of a Faustian bargain. (But net worthwhile).

Reasonable people might disagree, but there is a huge amount of value in having access to a good JIT, GC, and standard library - not to mention the ecosystem around the JVM. Keeping in mind that Clojure started out as a one-person, self-funded project, it was a very reasonable thing to borrow all of this from an existing well-established language. Maybe these things could've been reproduced, but not in the approx. two years that were initially available, and it's not at all clear that building a JIT, GC, etc. would have been the best road to making a useful impact.
WebAssembly is an awesome technology and I'm super excited about it, but IMHO it's probably best to assume you don't need it unless you can convince yourself otherwise.

That said, here are a few examples of where it shines (warning: shameless plugs incoming):

- In data analysis apps, you can replace slow JavaScript calculations with WebAssembly and see significant speedups--I wrote this case study on my experience with that: https://www.smashingmagazine.com/2019/04/webassembly-speed-w...

- It's super helpful in porting games from languages like C/C++ to the web without having to rewrite the game from scratch. Here's a post I wrote about how to port a game like Asteroids to the web: https://medium.com/@robaboukhalil/porting-games-to-the-web-w...

- WebAssembly is really good for building playgrounds out of command line tools. Here's how I built one for the jq CLI: https://opensource.com/article/19/4/command-line-playgrounds..., the benefit being more secure than hosting it on the backend + much faster runtime

- I'm also excited to see how WebAssembly will impact work outside the browser: https://hacks.mozilla.org/2019/03/standardizing-wasi-a-webas..., especially with Function-as-a-service offerings that support Wasm like Cloudflare/Fastly workers, where the benefit is that I can write my function in any language + the time to initialize the function could be much faster

Another shameless plug: if you want a practical intro to WebAssembly, I self-published a book about it recently: http://levelupwasm.com/!
> At that point you're not using global state in the library, which was the point.

Yes. But I want to make clear that you are still using global state for all uses within the project itself. The library can be implemented in whatever way. For example, setting the pointer in a global variable on API entry ;-)

> That doesn't solve the problem at all.

WHICH problem? I don't think there is one.

> Indeed, and they're seen as bad practice for the same reason as global state in general.

This is foolish. There is no problem with global state. Global state is a fact of life. Your process has one address space. It has (probably) one server socket for listening to incoming request. It has (probably) one graphics window to show its state. Whenever you have more (e.g. file descriptors, memory mappings, ...), well then you have a set of that thing, but you have ONE set :-). And so on.

You are not writing a thousand pseudo-isolated programs. But ONE. One entity composed of a fixed number of parts (i.e. modules, code files) that work together to do what must be done.

Why add indirection? Why make it hard to iterate over all open file descriptors? Why thread a window handle through 15 layers of function calls when you have only one graphics window? It adds a lot of boilerplate. It even brings some people to invent hard to digest concepts like monads or objects just to make that terrible code manageable. It makes the code unclear. Someone once described it with this analogy, "I don't say ''I'm meeting one of my wives tonight'', unless I have more than one".
A single entity having higher variance than the average growth of the entire measured economy is not surprising.
I hate the school systems hero worship of sign wielding protesters. I remember the first time few times I went to protests.

Idiot teenagers there to hang out with friends and skip school. NIMBYs there for completely different reasons than they were nominally protesting. Said NIMBYs arming teens with homemade signs which were promptly disposed of after 1 hour. Career protestors without jobs roaming from one protest to another. News crews long jaded to the reality of protests having their eyes roll out of their skulls watching said teenagers screw around. Then I watched the news regarding the same protest and it was like entering a damn reality distortion field where some narrative about the next generation of youth activists were deciding to do all this shit on their own and their NIMBY parents didn't organize the whole thing and coach their kids on what to say.

The one protest that really jaded me was being part of protests for an olympic bid and seeing absolutely nobody. Jack shit people protested. Moment the worlds media showed up to town? Oh all sorts of "activists" concerned about "the government prioritizing a party over X cause" creating a fuss when all the money was already fucking spent. "Activists" telling tourists to stay away that could help us recoup some costs because that would somehow help the poor. "Activists" vandalizing olympic related stuff daily. "Activists" getting piss drunk, overdosing on opiates, and setting up homeless camps. Then the media and school system distorted these people into everyday heroes.
You can't, at least safely.

If you can write arbitrarily to any position in RAM then it's not a memory-safe language. You can hide accesses behind some kind of abstraction (unsafe blocks, libraries or whatever). But that's not a memory-safe language, it's the developer making a contract with himself agreeing to not allowing direct, straight accesses (like those caveats we C/C++ developers do to not make "memory bugs"). Some microcontrollers can protect certain memory areas and raise access faults, but those are the same faults for a program written in C, C++, assembler, etc., and not related to the language.

One make the safest RTOS in trendy-safe-lang for some small microcontroller, but the end-user (developers) would still be able to write some unsafe code and blow a fuse.

A different thing is for MCUs with MMU and/or an OS that handles virtual memory per process/thread, but that wasn't your question.
Drugged into consent :)
My two whole comments on the subject are truly beyond the pale...

But more seriously, does China not engage in mass censorship and re-education camps?

Do angry townsfolk not flash mob foreigners and beat them up?

Last June was there not an expose on how massively Chinese provinces are misrepresenting the reality of their situations?

Did their president not ban Winnie the Pooh?

I've not said anything that hasn't been in the news.
Ask HN: Most beautifully designed SaaS web app?
I know that a lot of people are urging to comment that good design is functional design, not "beautiful design"; and then go on about how a lot of "modern" websites are horrifically designed because they just aim at being aesthetically pleasing, not useful UI.

I mostly do not disagree with the sentiment, but... I do want to find web apps that are beautiful.

The reason is that I have a web app that I believe has a pretty good functional design, but it is relatively ugly. No customer is enchanted by it, making it harder to make them use it long enough to realize that the design is functional.

I am no designer. I was only capable of making it functional because I use the app myself and I listen to customers that validate that my design is more practical than competitors.

I am a solo founder, and I have no money to hire a good designer to make it beautiful and keep it functional. So I want some references to serve as inspiration so I can create a beautiful design myself. Thanks! :)
He's only "gaining the publicity" you're giving him, by ignoring the subject of the case: Apple programmed their computers to catch a citizen, so they could turn that citizen over to the police - but they screwed up and programmed their computers to catch the wrong person, therefore delivering on a promise that has been made, time and again by one dystopian author after the other, and which demonstrates the fact that we must always be willing to face up to abuses of technological power, whatever the cost.

Hey, a billion dollars got your attention. Perhaps, in fact, after investigating it: we will find that in fact Apple has done more than a billion dollars worth of damage to society. If they can screw up like this once - perhaps there is more? 100 more cases, perhaps?

We will see, once enough publicity from this "abusing of the legal system" runs its course ... considering that, indeed, there may in fact be bigger problems to solve.
Yikes. Up 10% over 40 years!!... quite the antidote to my so-called cherry-picking.
Uber Questions (Stratechery)
Envy / misery loves company. They don’t think they could do that thing, so you shouldn’t get to either.
I prefer to use dating sites. For me it is the best way to find a partner. That is so convy!
Joe mentions he used to be a physicist and how Erlang contributed to the discovery of the Higgs Boson.

I heard him tell this joke more than once (we were colleagues):
"Higgs boson walks into a church, and the priest says, 'I'm sorry we don't allow Higgs bosons to come to churches.'And [the Higgs] says, 'But without me, you can't have mass.'"
Everyone struggles with the "deeper meaning" of life. We all want to feel like we're contributing on a global scale, but I think it's helpful to readjust the way you approach things.
Nothing happens on a global scale without starting on an individual scale. We're surrounded by fiction that posits an apocalyptic end of the world, by an number of methods.
Take a few minutes to meditate on what that would really mean to you. If huge global events happen, but don't touch you personally, would it cause a huge disruption to you? How about small local events? I think you'll find they would be much more likely to affect you and much more devastating.

I like to think, "The world doesn't have to end, for your world to end." It helps me grasp the importance of the day to day things I do, and appreciate them.

Enjoy the life you have, help the people around you, and do what you can to make the world just a little bit better. Maybe you'll get lucky and make the world a whole lot better, but making things a bit better is good enough.
You still don't necessarily want to/can't use composted human waste for growing food for human consumption, because many jurisdictions regulate their application in different areas of agriculture.

e.g.:

Virginia: "All materials removed from a composting privy shall be buried," and "compost material shall not be placed in vegetable gardens or on the ground surface.[0]

Rhode Island: "Solids produced by alternative toilets may be buried on site," while, "residuals shall not be applied to food crops.[1]

I'm all for doing it regardless, as it seems more sustainable than traditional sewage treatment!

[0]https://en.wikipedia.org/wiki/Composting_toilet#cite_note-26

[1]https://en.wikipedia.org/wiki/Composting_toilet#cite_note-25
ABCL runs on the JVM and is about the same age as Clojure, and isn’t anywhere near as popular.
I also had to think for a moment until I realized what these links represent. More explanatory text would definitely have helped.
Thanks for mentioning Mithril. When I saw Svelte example output js, I thought it was actually a better developer experience layered on top of Mithril. (Mainly because of the similar m() mounting function)

```

function create_fragment(ctx) {
var h1, t0, t1, t2;

return {
c() {
h1 = element("h1");
t0 = text("Hello ");
t1 = text(name);
t2 = text("!");
},

m(target, anchor) {
insert(target, h1, anchor);
append(h1, t0);
append(h1, t1);
append(h1, t2);
},

p: noop,
i: noop,
o: noop,

d(detaching) {
if (detaching) {
detach(h1);
}
}
};

}

```
> The extreme low level control that C++ offers and powerful metaprogramming allows for performance that even Rust cannot hope to rival.

Rust is developed by mozilla because they needed a language they could write a faster browser in. The first rust component in mozilla was a CSS library they had attempted to parallalise twice in C++ (with some of the best C++ programmers) and failed. Rust treats 'can't be as fast as C' as a bug.
My wife was musing on her photography hobby the other night. She really enjoys it, and was thinking, "I really wish I could make this my job."

I told her that I'm really happy that photography makes her happy, but that there's no way she'll make much money doing it and she already knows that. It would make life more stressful and ruin the fun she now enjoys. And since I once tried turning a creative hobby into freelance work, she knows I'm telling her the truth from my own experience. I wouldn't want to tell the most important person in my life some BS flattery--if I'm really going to support her, I have to be totally honest.
I feel like at this point it is a political and capitalism problem. We could start impacting global temperature within a week if we actually wanted to fix the issue[1], but a number of industries whose business models basically guarantee they will contribute to climate change won't permit that. Those same companies then lobby congress, etc.

If we had the scenario where we told world governments and corporations that the tipping point of no return is in one month, and if we don't do anything the planet is dead in 50 years, what could we do? If we said (just making these up): 1) limit flights to weekdays; 2) limit cruise ships [2]; 3) companies must allow remote work to reduce commutes. (I'm sure someone can and will come up with better examples). Can you imagine the blowback from airlines, etc? I imagine they will find some way to justify not participating, even though it literally means the death of the planet.

We have the technology and the know-how, it just isn't stronger than the pathological greed of corporations.

[1] https://www.bbc.co.uk/blogs/climatechange/2009/05/911_contra...
[2] https://www.vox.com/the-goods/2018/11/15/18096925/cruise-env...