skysight-inc/HackerNews huggingface dataset:
The trouble is that tuples are not restricted to local context.

JS has made a few steps in allowing us to have objects as compact as a tuple, i.e. {foo, bar, baz}.

I think we need more effort in that direction. But keep fields addressable by name at all times. In fact, ordered arguments in functions have the same problem (they're a tuple). Unfortunately that ship has sailed.
> solving real world problems

Define this first.
Maybe
https://hackdesign.org/
Or perhaps a more real-world example ;)

match (n % 3, n % 5) with:
(0, 0) => print "FizzBuzz"
(1, 0) => print "Fizz"
(0, 1) => print "Buzz"
(_, _) => print n
I'm a bit past the try-new-stack. I have a stack that I'm very productive and happy. I feel like I've finally found what I love to use, am capable of using with huge productivity, but don't feel like using :-)
> Why bother exposing yourself to different viewpoints when all it does is bring you vitriol and sometimes real world consequences? There isn't any upside.

That's why you should take care of protecting your identity online.

As for upsides, I see many. If you don't expose yourself to contrary opinions, there can be no development, you basically shut yourself to anything that could be beneficial to you, especially in the long run. I'm very grateful whenever someone makes me realize I made a mistake or didn't see the complete picture, it's priceless.

Yes, sometimes you hit the wall, but it's also important to recognize people have different worldviews and that's one of the things that make life interesting.
I've been working on https://presentador.app for a while now. It's like slides.com but more opinionated and the goal is to let it make the presentation for you. Let me know what you think. It's still under development but its usable and new features are coming soon! Thank you
So if I understand you correctly, it's the R&D that makes up the majority of the price, not the components?

Not saying that's bad, just that my question is what makes this cost what it does. If it weren't justified, there'd be competitors doing it way cheaper (the field is accessible and large enough for that), so it's just a question out of curiosity.
This is a false dichotomy. Specific theory that is hard (and useless) to memorise all details can be easily referenced if you are knowledgeable enough in a field, if you know about a red-black tree, the gist of its properties you can easily Google usage cases if you've forgotten, examples of it and algorithms related to it (rebalancing, how it relates to search, etc.), if you had never studied, used or seen one there is no way to reference to these properties easily.

I'd much rather hire and work with someone who has the skill to easily assess a situation and use referencing to rebuild knowledge than someone who memorised how to implement tree balancing, so why do we test for the latter rather than the former?
Kamelya Modelleri̇ & ÇARDAK ÖRNEKLERİ
KAMELYA MODELLERİ & ÇARDAK ÖRNEKLERİ
> The ethics around research that involves deception have been pretty well established and are are several good comments here explaining them.

Ethics in computing research remains an active research area. This incident will be used as a case study in the future, but it's not that well established. Many people have been using anecdotals, which honestly don't fit the scenario because so many variables and parameters distinguish other types of pentesting from this. And disappointingly, not a single post has actually produced the documents that establish this.

Arguably the first set of guidelines for ethics in computer security research [1] was published in 2012 and not yet widely taught in Ethics lectures (I only know about it because I learned Computer Security from one of the authors).

On identifying harms:

> "Challenges identifying harms in ICTR environments stem from
the scale and rapidity at which risk can manifest, the difficulty of attributing research risks to specific individuals and/or organizations, and our limited understanding of the causal dynamics between the physical and virtual worlds. As with all exploratory research, it can be challenging to articulate benefits such that subjects can make informed decisions. In ICTR our ability to qualitatively and quantitatively foresee the probable benefits is particularly immature."

On this type of research:

> "Research of criminal activity often involves deception or clandestine research activity, so requests for waivers of both informed consent and post hoc notification and debriefing may be relatively common as compared with research studies of non-criminal activity."

This isn't a huge change from 30 years ago since Moor [2] wrote his thesis on Computer Ethics, see:

> "A typical problem in computer ethics arises because there is a policy vacuum about how computer technology should be used. Computers provide us with new capabilities and these in turn give us new choices for action. Often, either no policies for conduct in these situations exist or existing policies seem inadequate. A central task of computer ethics is to determine what we should do in such cases, i.e., to formulate policies to guide our actions."

Researchers themselves are far from educated on this topic; you won't ever explore this in depth unless you're in this particular sub-field. IRB/REB boards are considered the most qualified but are possibly too outdated to navigate around this. It's a whole mess, there is currently a lot of questionable research in many areas of computing, but the clock moves forward.

[1] https://www.dhs.gov/sites/default/files/publications/CSD-Men...

[2] https://web.cs.ucdavis.edu/~rogaway/classes/188/spring06/pap...
Hydroxychloroquine found to reduce risk of Covid-19 infection by more than 20%
You can't really make a learning system that doesn't play.

Physical play is how we train, develop and calibrate our bodies; mental play does the same for our minds.

If we one day build AGI that doesn't skip and dance and draw and make up silly stories for the fun of it, that will surprise me a lot more than the other way around.
China certainly is.

South Korea, I don't know. The spike in equipment purchase certainly sticks out, maybe they (SK) expect to be able/allowed to supply the Chinese companies, that Taiwan can't/won't?
I have amazing GF and do martial arts and overall love my life but deep down I feel there's that passion lacking when it comes to coding
I think the "good doctor" starts as soon as the checklist is finished and there is no result yet. I'm not a medical professional, but in other areas, using a checklist is helpful and necessary. You may cut short the known-useless parts if you really know what you are doing. But often, "known-useless" is a fallacy and you waste time on your firm-but-wrong intuition. Which is OK if you just waste your time, but not OK if it is about a patients (life-)time.

I think there are "House, M.D."-style situations where the checklist will kill your patient and a quick hunch will save it. But the usual doctor's visit because of an itchy eye isn't.

As an IT professional, just think of the number of times where it really was one of point 1, 2 or 3 on the checklist: "is it switched on?" "is it plugged in?" "have you tried turning it off and on again?". Of course those are often useless. But when they are not they do waste far more time than just quickly checking...
> And when you actually need algorithms, you always have a luxury of existing literatures and implementations.

And how well that works in practice? How will candidate even know where to look at if he has no idea what he needs to find?
> How do you get anything done in your private life at all?

We don't. It sucks. And if we ever mention the impact of having a kid on our quality of life it makes us bad parents and terrible persons.

I should have resisted more about having a kid. I am happy we made only one.
I fear this very, very much. What if I never can regain that passion? I feel like junkie who never can get another high.
All true, but on the other hand you have much more dangerous (because hidden) memory corruption problems in C++ caused by hidden dynamic memory management in the C++ stdlib like iterator invalidation, or dangling std::string_views. And IMHO those cases where C++ suddenly pulls the rug from under your references are much more dangerous than working with a static memory layout in C.

The C stdlib string API is rubbish of course (along with most other C stdlib APIs). But at least it's quite simple in C to ignore the stdlib (and use better 3rd-party-libs instead) without loosing important language features.
I also hate cars for so many reasons but surely "their manufacturers run an efficient operation and can outbid competitors for a scarce resource" isn't one of them?
Reveal.js is open source.

I’m a tech school teacher and we version control all our Reveal.js slides in Markdown, sharing styles and certain images.
Thanks, the first paragraph hits home.
the reason to force data science is that same as the reason to develop libraries in languages for tasks which that language might otherwise seem not well suited to, that there is a large userbase of the language who know how to use it and would like to explore using that language for doing other things than it is normally used for. You may of course suggest that they should just learn a new language, but the history of computing shows that solutions for using languages to new purposes they might not seem suited for happens whenever such a purpose arises.
Software interviewing tends to be selecting for neurosurgeons, and then the job is putting them in a rickety ambulance with some steristrips and a shot of narcan.
Excellent project! I like the playground.

A while ago I made https://presentador.dev/ which was the same concept, write MD and produce an HTML based presentation.

Eventually I figured that I don't want to open my editor every time I wanted to create a presentation, so I made https://presentador.app/. It's like Slides.com but more opinionated. It's still under development but usable to create a simple presentation and new features are coming soon!
Show HN: Face Toon: Turn your selfies into cartoons
I tried to be as aseptic as possible and let the reader learn by himself about the guy... I don’t want to be sued, as he usually does when somebody says something he dislike.
I'm not sure I understand why format is a macro and print and equivalent in most other programming languages is a regular function. There's some complexity there that I guess I just don't know.

For the second part, Rust should probably add some sugar à la Python f-strings (or just plain old string interpolation dating back to the Bourne shell):

format!("{x}{y}")
If I'm correct… that¹ is a alluring building. Has the copper started to weather yet? Making a mental note that I want to see it, more so when it has aged a little.

¹ https://en.m.wikipedia.org/wiki/Beecroft_Building
Building a Multi-Platform “Compiler”
My company refuses to work with automotive primarily because of the billing. They require you to front the money for all R&D, and tooling, and then they literally pay whenever they want for actual delivery (they completely ignore invoice terms such as Net 30 days - and will pay at 60, 90, or 111.8843 days)
Because it used to be very important part of me, my biggest hobby, biggest passion, and it's over. And I feel like I've been practicing this skill my whole life to get to where I am, and now I find it very difficult to switch to new field. I'd rather be passionate and use my skills to build something meaningful.
That happens in electronic music as well. There are some artists who are very specific about tuning their drums, from bass drum/kick (which in my opinion should be tuned to fit with your bass at least), toms and hats.

As another commenter mentioned, it's also about timbre and not only tuning for a song. I've noticed I got particular about tuning at least my kick and bass layer to the scale of the lead of a track (if there is a noticeable key), in techno is easy to break almost any rule but to me, personally, is much easier to start a new idea with the kick and bass in tune.
I don't think it's an either-or scenario. There are other options and other factors at play. The assumption of global peace for thousands of years in a world dotted with world-ending bomb material is a big gamble.

The current politics of energy production and consumption, the state-by-state compartmentalization and lack of wider cooperation hampers cleaner options (spoiled-views NIMBYism and regional politics).

Wind, solar, and hydro coupled with transcontinental UHV power transmission could solve it with much simpler technologies.
1) nope
2) yes, some people from my close proximity say that I learn too much. I feel like I only learn whereas I should be building something. My whole career has been constant nonstop learning and improving
IsEven API – Use isEven to tell if a number is even
The study being talked about uses a mix of data sources, and doesn't just rely on coroner reported deaths.
This, along with many of the excesses of cancel-culture, goes away if recruiters/employers stop acting like twelve-year-olds who just heard a piece of juicy gossip. What do we think when someone in their personal life cuts off a friend with the reasoning "I don't mind this person, but what will my other friends think of me??"
>Maybe technically, in the sense that there has to be some sort of overarching enforcement and regulation to have a market.

Actually, you got it exactly backwards, having a free market in the first place is a political choice the government makes. All of this is merely a fiction in our head, without that fiction we are back to the "Law of the jungle". Everything you can take and protect is yours, which is completely at odds with the idea of a free market.

>But the major advantage that the free market has is that it is much better than the government at assessing the relative size of positive and negative externalities.

The free market is the ultimate henchman of the government, it will optimize for the legislated outcome down to every single letter and squeeze every ounce of efficiency available. If the political context allows it, it will happen. If negative externalities are not balanced out via fees, this is equivalent to the government telling every entity in the economy to abuse the externality.

>The government consistently underestimates the positive externalities of free market activity.

No, it underestimates how reliable its henchman is and for some reason it doesn't know how to talk to the henchman even though it's the most natural thing in the world.

>Much like in this case - the people advocating that the government subsidise solar power and commit early have all been shown to have badly misjudged the situation.

Subsidizing solar power is wrong, for obvious reasons. The goal isn't solar power, the goal is the reduction of CO2 emissions and if possible, the reduction of the CO2 concentration in the atmosphere. This requires a stronger cap and trade system or a CO2 price, in theory these are equivalent, in practice the former is prone to too much meddling.

>The free market is much better at getting clean power to people than they thought.

What we need is less government "intervention" and more government activity in the market as the ultimate investor, let the henchman do the actual work.
What's actually happening is this.

Young people think the riots are "just" and "getting even" for unspecified historical wrongs. When asked, they have incoherent answers.

Marxists (BLM "leaders", radical feminists, profs) see this as an opportunity to destabilize existing society to usurp power for themselves, at any price. (And in the case of BLM leaders, free houses.)

Blacks define "white supremacy" as "all white people" and use that as an excuse for rioting - which is pure racism (see LeBron James' recent racist tweet.)

Democratic leaders built walls around their offices and homes, while refusing to build a border wall because "got mine."

So you have an intersection of different groups attacking society in the hope that something shakes out in their favor, at any price to other people.

The US is the least racist major country in history, yet if you're a prole, you can be convinced it's "evil".

For those who hate the US, here's a question: what country is better? Which country would you move to?
The secret Thinkpad powerbutton code to bring dead laptops back to life (2007)
Is Spain better than Portugal for this?
Quote: "Storage room in BK-2" (shows picture of old electronics and cables on different shelves.

I drooled at that picture, I want those. I need those. Can you imagine how many breadboard tests I can achieve with them old resistors and non-electrolytic capacitors that stood the test of time from 80's? And the cables! I. must. have. them. all!!
If I understand correctly, Algolia front-page API[0] only allows you to get at most 34 stories (either with `sort_by` points or submitted date).

Hacker News official APIs[1], on the other hands, use a specific algorithm to determine the ranking of submissions and allow you to get at most 500 stories.

[0]: https://hn.algolia.com/api/v1/search?tags=front_page&hitsPer...

[1]: https://github.com/HackerNews/API
> Mr. Sullivan told us that copying content was a great way to lure people to his sites. (He said he didn’t feel bad about spreading unverified slander. “Teach children not to talk to strangers, then teach them not to believe what they read on the internet,” he said.)

The fact that his business relies on people not being able to teach themselves not to believe what they read on the internet proves that he doesn't actually believe that this is effective mitigation. We aren't going to see a cultural shift in timescales shorter than a decade.
I appreciate your thoughtful comment!

We should be careful with what we're talking about here: stops vs. arrests vs. crimes committed vs. offenders. They're all different things. The argument I'm making is basically this: the murder statistics are the most reliable, so we'll look at those. We should expect a very strong correlation between murder rates and other violent crime, though. And this expectation of much higher rates of violent crime in general should lead us to expect much higher arrest rates among Black Americans relative to other populations all else being equal. Now, all else obviously isn't equal. But the magnitude of the difference in murder rates is absolutely enormous (and it'll about double when we're just thinking about men), so we should expect that the majority of the difference in arrest rates is driven by the same thing...whatever is causing Black Americans to murder at 7x the rate of everybody else.

As I commented elsewhere, it isn't actually true that gang-related killings are most killings.[0]

If you want to try to paint a picture of the modal murder in the U.S., it's "Young brown man argues with other young brown man about something silly, things escalate, someone pulls out a cheap pistol and shoots the other guy"

Gang murders, while profitable fodder for mass media, are a clear minority.

0: https://ucr.fbi.gov/crime-in-the-u.s/2019/crime-in-the-u.s.-...
Only if you hold the religious belief that capitalism and its consequences are inherently beyond critique.
there is a societal cost to fake takedowns to silence speech, even when large sums of money aren't at stake.
This is actually planned already. Not sure how far along the implementation and progress to stabilization is though.
very interesting. I had no idea Feynman felt this way.
Refactoring UI is the book that comes to mind, it was made by two developers.
Japan has put pretty serious sanctions on them though, on a (frankly rather dubious) theory that the North Koreans are getting materials from them.
Not OP so I can't speak for them. There's a bunch of ways to do this, ranging from more turnkey solutions to collections of scripts and extensions you can use. On the turnkey side, there's programs like ArchiveBox[1] which take links and store them as WARC files. You can import your browsing history into ArchiveBox and set up a script to do it automatically. If you'd like to set something up yourself, you can extract your browsing history (eg, firefox stores its history in a sqlite database) and manually wget those urls. For a reference to the more "bootstrapped" version, I'll link to Gwern's post on their archiving setup [2]. It's fairly long, so I advise skipping to the parts you're interested in first.

1: https://github.com/ArchiveBox/ArchiveBox

2: https://www.gwern.net/Archiving-URLs
Not quite - if they priced in all of the dev effort required to make the mount software compatible (ASCOM, etc) it would be much higher I think. From what I see, ensuring the 3D printed parts are up to spec and look good cosmetically requires a lot of time, not to mention manually wiring and flashing all the electronics.
I found that the kids running to you and jumping up and down and demanding your attention is an extremely quick way to reset. After an hour or so you completely forgot about work.
If by best you mean "most efficient space/quality ratio while maintaining correct performance and compatibility", then I'd argue HEVC/H.265 for video and Opus for audio are strong contenders for the current "best". They provide nice upgrades in efficiency compared with their predecessors, are still generally compatible (while nowhere near AVC/H.264 and MP3/AAC, their decoding is available on major platforms with increasing hardware support for HEVC), and their most used encoders (x265 and opusenc) have sane defaults and CLI.

However, that strongly depends on your use case: where are the files going to be played (which hardware/software, how old, which OS, what battery requirements...)? What are the media to be encoded/decoded like (screencapture, Blu-Ray, voice or acoustic concert...)?

AVC/H.264 is still the king of compatibility and speed/performance, albeit at a lower quality or higher file size. MP3/AAC, depending on the encoder and parameters used, still do a good job and are faster (better optimized) than Opus.

VP9 (video) is kind of niche and complex to use properly, although it is well supported due to its use YouTube. AV1 and its proprietary counterpart are not there yet, although I have a few files encoded (by others) with it and they play mostly fine, but it's on recent hardware/software and it can still be pretty iffy (like e.g. fast forwarding). But the promise is huge!

Re: containers, don't bother with AVI unless on a veeery old stack; go with MKV whenever you can (most flexible) or MP4 when you cannot (most compatible? Especially with proprietary vendors à la Apple).

So you know, like with cipher suites and other things I'd say you have two sets, the "modern" one with HEVC+Opus encapsulated in MKV, or the "compatible" one with AVC+AAC in MP4. I always go with the first one because my requirements allow it and I prefer the space/quality efficiency over anything else, but depending on the use case you may have to resort to the compatible set.
Clearly the people running these sites are true scumbags. However, the article doesn't mention that the only reason these sites making false claims have any value is because google directs traffic to them! If somebody slanders me on a site nobody reads why would I care? I only care if Google slanders me through their search results. That's what you're paying for to get the slander removed: removal from search results.

And yet nobody talks about the responsibility search engines have to prune obvious scams, viruses, and the like from their index. Google is not a neutral actor in this, it's Google's algorithm that's getting exploited, so Google has both a moral responsibility and the actual capability to fix this. Legal action against these slander sites is important too, but more of a secondary concern.
well, I was expecting training a neural network with web-assembly through gpu support in its last chapter :)
The Serious Downsides to the Julia Language