skysight-inc/HackerNews huggingface dataset:
> As you say yourself a bit later, you'd need at least two "simple" resistors (one for the cable itself, one for the adapter) – otherwise it's only fixed-cable power supplies (and I really, really hate having to throw away an entire high-quality power supply just because the cable frayed at the laptop end).

You could have end device regulate itself by looking at voltage drop, akin to MPPT. And note that simple (sub-10W) devices could opt to implement nothing whatsoever and just get the minimum 20V/0.5A, making small accessories need nothing whatsoever when it comes to extra chips to handle it.

You really need communication only when you start needing features like switchable sink/source function or voluntarily lowering power usage.

>>But USB-PD is generally horrifically complicated for what it does

> Which parts would you suggest are safe to omit, in a world where you want to be able to charge both small accessories (Bluetooth headphones etc.), smartphones, and large laptops using a single connector?

Not talking about featureset but how hideously complex the implementation is. I remember some early adopters tried to implement it using a microcontroller and it ate like 30+kB of code and it was more than half of total product's code

The spec (3.0, rev 1.1) is 574 pages. No fucking wonder we have so many devices implementing it subtly wrong. Hell, they even decided "no, none of the existing serial protocols fits our super special use case, need to invent that too. At least they didn't reinvent CRC32...
A Complete Intro to Smart Contract Development on the Scroll ZkEVM
A technical introduction to Scroll's zkEVM for blockchain developers
not sure if you are questioning or seconding my opinion. but anyway - in hindsight many anthropomorphisms in the past have been closer to what we now consider known about nature than what was considered scientific state back then. science considered most animals as emotionless and mindless machines only few decades ago. now even fish have to be treated humane - and don't get me started on mammals and octopusses. from that point of view anthropomorphizing deserves some historical merit and shouldn't be easily discarded as childish nonesense.
Fantasy story about knights and magic with backgroun on Medieval Europe.
I can't imagine Rust being even remotely viable without having generics or using LLVM to target a wide variety of platforms with sufficiently good codegen quality.
For a time, Argonne National Laboratory was raffling off lucite-encased blocks of CP-1 graphite at conferences. They probably have a stockroom somewhere of the stuff to give to VIPs, etc.
Yes, free speech doesn't work well in multicultural societies because not being offended is more important.

There is no society that could effectively support itself as well as the moral idealism that includes retroactively punishing people. Culture is far more brittle than purists believe it to be.
Sports drinks and recovery snacks aren't that high in energy, and they likely forgo gallon of sugar-coke, donuts, cake, bars of chocolate, extra trips to mcD from their diet
You need to get the 256 bit key (probably represented as 32 bytes in your computer's memory - usually crypto random bytes, e.g. key derivation like HKDF). Not sure how Zoom exactly does it, but it is likely that this key is rotated frequently. You might need associated authenticated data too (or AAD) to be sure that you got decryption right.
One of a the famous study quoted in the book is how hungry judges (working before the lunch) delivery harsher sentences. The study failed to account for vastly more plausible explanations like scheduling of cases [1].

[1]: https://inews.co.uk/news/do-judges-give-out-tougher-sentence...
Someone born in the 90s is now in their 20s-30s.

> what you can do on Instagram,

Lol. Err what can you do on Instagram that is a demonstration of deep technical understanding?
The high-stakes clash for control of Ukraine’s story
Of course it can. It is not tested by any of the devices, it is returned by cable itself. Cheap cable maker can just program cable to pretend to be more powerful one but not have wiring up to spec:

> Sources Shall detect the type of Attached cable and limit the Capabilities they offer based on the current carrying
capability of the cable determined by the Cable capabilities determined using the Discover Identity Command (see
Section 6.4.4.2) sent using SOP’ Communication (see Section 2.5) to the Cable Plug. The Cable VDO returned as part of
the Discover Identity Command details the maximum current and voltage values that Shall be negotiated for a given
cable as part of an Explicit Contract.

Please don't talk about stuff you have no idea about.
It's a little bit more nuanced than that. First, OpenCL is basically deprecated at this point and only Metal is up to date.

Second, M2 Max might have a lot more RAM available than a 4090 because of its unified memory architecture. It can have up to 96GB vs 24GB for the 4090. So we need to look at different RAM configurations.
An article on the ubiquity of tipping prompts has sparked a debate on the practice, with some arguing that it is a way for employers to pay less than a living wage and shift the burden onto customers. Others suggest that tips are necessary to compensate for slow periods and that they should be institutionalized or incorporated into prices. Some commenters argue that tipping is a form of coercion and that employers should pay a full wage directly. There is also discussion of the history of tipping and its association with racism.
Early rust did have gc so it was more of an ML with optional gc, and maybe a dot operator. (And no closures apparently)
Doom Eternal was a visceral experience. The music was absolutely top notch.
This is the first "smart home" thing that actually seems interesting to me.

It's still kinda nuts how much arcane bureaucracy is needed simply to make two computers in the same room talk to each other, and nobody else. Why can't I just control the brightness of my living room lights as easily as my laptop backlight, without the packets taking a detour through Langley?
It’s about stack size. Programs that rely on tail calls (in particular recursive ones) may cause the stack to overflow when the language implementation doesn’t actually support tail calls, for example when using tail calls to recursively process a list that is larger than (some constant fraction of) the stack. With an infinite stack, it would just be an optimization, but in practice the stack is finite (and significantly smaller than the heap), and thus doesn’t lend itself to such a programming style when the implementation doesn’t support tail call optimization.
CICO is one of these things that are technically true, but useless in practice. What does the O mean here, exactly? It depends on metabolism. Some (few) people struggle to gain weight, some people struggle to not gain weight, consuming the same amount of calories. The former burn far more calories at rest than the latter. Some studies even show that caloric restriction slows down metabolism. This a survival feature of the body. The benefit of exercise is that it may(!) increase your metabolic rate so that you burn more calories at rest, but that's not something that will show up in some brief interventional study like the ones presented here.
I may be misunderstanding, but if "keep uploading the same document" is an issue, retain hashes of recently-uploaded documents and refuse to handle anything seen too recently too many times, unless being paid.
I'm using accessible in a very general sense. The sense of "how niche would this be". My impression is that Rust would have been a very niche language if Graydon was the BDFL.
> What part of the standard mandates, or even optionally supports that?

None, which is the fucking problem. Cheap cable can just lie about it's current capacity.
I'm a fan of the idea that people will start valuing, caring for, and protecting particular AI models

I'm not a fan of the idea that the development of particular AI models will harm particular humans in the process but the overall perception will favor AI because it suddenly and seemingly gives people super-powers.
Windows Terminal is just a "terminal emulator", if you can, try [pwsh7](https://github.com/PowerShell/powershell/releases)
Oh I see. Got it.
MIT has a tool to explore this kind of question for specific values of car, electricity source etc.

https://www.carboncounter.com/#!/explore
very cool! if anyones interested here's a generic implementation

https://github.com/hcliff/sqlite-ipfs
It doesn't say how much RAM the M2 Max has? How much does RAM matter? As we all know, M2 Max can have up to 96GB of unified memory, which is 4x more than an Nvidia 4090.
I'm new to learning C. What exactly is the problem with
uint32_t my_int = (uint32_t)my_float?
Thanks for your work! I had already downloaded the entire dataset. But I wonder what was the criteria behind book selection? I found it difficult to understand at places*.

* Sometimes a book has several very slightly different versions. A lot of Fantasy. Sometimes many parts of a series are included but not all of it (I can imagine an argument for a sample, or for the series in its entirity). Commentaries about important philosophical arguments like Rawls' 'A theory of justice', but not the work itself.
> And of course there is structural racism that leads to more white people being in a position of power such that more white people are handed these cards but... you can't yell racism about every byproduct of structural racism with removing causality and intent from racism

"You can't yell racism about racism" is how the racism stays unfixed. There is a legitimate problem both philosophical and practical in untangling individual responsibility in a structurally racist system of power and policing, but I would be interested to see if any of the cardholders were black.

(The cardholders, and anyone found issuing them, should obviously be jailed, regardless of how trivial the offence they're trying to get out of is, otherwise you're never going to restore public trust)
People who are honest about their skills dont get the job. People who say they are the living embodiment of sunshine and rainbows get the job.

They say it as it is the correct answer in an interview, maybe they believe it, maybe they dont - they however are saying the things that they need to say to be employable.
RL Stine said his books got edited for him without his knowledge too.
This is not what I want Stack Overflow for, and I think it would discourage higher quality responses from humans.

If you want a ChatGPT answer to a question, go ask ChatGPT (directly, or through one of the many more focused frontends people have built for it). But Stack Overflow should encourage answers from real humans.
Kinda shame as Displayport optionally (in theory, pretty much never in practice) supports USB over DP cable.

Could just be one DP cable to the GPU without extra fuss, like decade ago...
I installed Umbrel on a VM. It demonstrates a few interesting ideas, but at the same time a form over function is everywhere with nothing fundamental to compensate for that. So you are kind of right.
Better to use Just4Fun Licence
> The priorities I had while working on the language are broadly not the revealed priorities of the community that's developed around the language in the years since

Isn't that a matter of self selection? A language which developed around those priorities would have a community sharing those priorities now.

The point is if that community would be as large as the current one, larger, smaller.
In the vast majority of fields of engineering, it's possible to exhaustively test your product.

Your power supply is specified to accept 90v-260v 50-60Hz and deliver 12v at 1 to 20 watts, in ambient temperatures between -5°C and 55°C? You can test over the entire input range, your expert knowledge assuring you that if it's tested at 20°C and 22°C there's no need to test at 21°C.

On the other hand, if your software is specified to correctly validate a SAML assertion? It's simply not possible to enumerate all the states the system might encounter.
The code is knowledge, which is a non-fungible, trivially reproducible asset (apart from the bottleneck caused by intellectual property).
Stack Overflow/Exchange answers have been 'open source' (creative commons) since day one https://stackoverflow.com/help/licensing
Coding Ninjas' senior executive locks to stop employees from leaving office
And? If the answers are getting upvotes then they’re by definition helpful. What’s the problem?
> Open source software doesn't have a EULA.

I disagree. First, loads of proper (OSI-approved) Open Source licenses say either your downloading or use requires acceptance of the terms, or that using the software implies acceptance of the terms. Having to agree to a license, for use even without redistribution, makes these (permissive) EULAs.

For example: APL-1.0, APSL-2.0, CAL-1.0, CECILL-2.1, CNRI-Python, EPL-1.0, EPL-2.0, Frameworx-1.0, IPL-1.0, MS-PL, MS-RL, OCLC-2.0, RPSL-1.0, Unicode Inc. License Agreement, and Watcom-1.0, are all framed this way.

Of course, other open source licenses like the GPL explicitly say acceptance is not required for use. Moreover, the most popular permissive licenses such as Apache-2.0, BSD, and MIT, grant the right to use, without saying they require your acceptance.

Second, the copyright grant versus contract (EULA) distinction may be US specific, or certainly it isn't worldwide.

Regardless, we agree this joke (“ROFL”) license clearly isn't open source, for other reasons.
Sure, which is why it is not helpful or interesting to point it out.

When companies talk about their "mission", they are referring more to how they intend to deliver value to their owners, usually by identifying some social need and satisfying that need in exchange for value.
That's why it's an Enterprise programming language.
While the language itself has certainly gotten larger and I have had my own share of rants on the working and products of the standard committee, the day-to-day reality is that C++ has gotten easier to write and read, often significantly so.

Doesn't mean it is an easy language, far from it.
Show HN: SQLPage – Build Dynamic Websites with Just SQL Queries
Hey Hacker News!

I wanted to share the open source project I have been working on during the last year: SQLPage, a tool to build small web applications entirely in SQL.

Building web applications with just SQL isn't as crazy as it seems. Most simple applications can be expressed declaratively as just data queries that fill pre-defined web components.

I'd love to hear your feedback and thoughts on it. Would you potentially use it? How can it be improved?

Website: https://sql.ophir.dev/
Github: https://github.com/lovasoa/SQLpage
Example app: https://conundrum.ophir.dev/
Testing Event-Driven Architecture
Um... What?

The business is bankrupt. Taking "possession" of it is pretty meaningless at this point even if that is what has happened (it doesn't seem to be).
Although all of those things are true, I think the main point being made is why choose Rust for that, instead of Go, .NET, etc, any of which offer everything you've outlined as being worth having, while having fewer of the downsides of Rust.
The underlying cause of all this is that the police has a us versus them mentality.

As a police officer you get a warped view of society because every day you are dealing with crap.
Suicides, domestic disturbances, football hooligans. All the bad stuff of modern life is your job. And you're underpaid and nobody likes you.
Stupid or not, they are still genuine.
> No. But then if UBI is unfair and welfare is unfair, then what's fair? Providing neither?

Me agreeing that taking away

> someone's welfare once they finally land a minimal pay job.

Is not the same as me agreeing that all welfare systems are unfair (You're only considering unemployment welfare payments. There's others).

I don't understand how you can confuse the two.

It's possible to have what almost everyone would consider a fair welfare system.

It's not possible to have what even a significant minority would consider to be a fair UBI system.

Welfare systems have a goal of ensuring that people who need more get more.

UBI has the goal of ensuring that no one gets more than anyone else.
This is a fair point and also called out in the discussion section. To some degree, this could be mitigated by hotloading shader code (and compiling shaders in debug mode). However, this remains as a fundamental downside of the approach.

Personally, I think that this is a price worth paying!
Adding a disk read won't break my software, but it can certainly make my software non-portable. If it suddenly expects a disk write and I'm running on a ROM, I'm going to have a hard time. If it suddenly tries to contact google.com and I'm on an airgapped machine, I'm going to have a hard time. It's not even a matter of breaking the app actually, it's a matter of warning that "I'm going to go outside the realm of just your CPU and your memory". Sure, you could also mark as as async a function that adds two numbers. It's stupid, it's a JS thing to do, but you could. Except that you need to actively opt-in to being async in this case, as opposed to have it be forced upon you because you used a function that is also async.

Blocking has meaning in a lot more contexts, and being a consultant on JVM related topics, you should know that: it's the entire purpose of Project Loom, and Loom doesn't entirely get rid of colour coding either explicitly for that purpose. Loom wasn't made because the guys at Oracle have a deep love for JavaFX, but rather takes into account the server world, where you really want to know that you're going into another context, another computer, etc. The only time where the existence of async doesn't make sense is if your entire language and ecosystem expects everything to already be distributed. In which case, you've just switched the default color to async.

Finally, you chose to read async as the current JS/C# abomination implementation, but most of the sensible languages have implemented it as an effect: Kotlin has suspend funs, they don't return a Promise, but they tell you two things: they're going to touch something like the disk or the network, and if you really want to have them in a non-suspend context, you can either get a Deferred<T> out of them (and find another thread to run it on, and handle synchronization yourself), or run them on the current thread (and block everything).
Point was that there is a massive difference between 13" and 16".

You don't have to have it in your lap. But most people, in most cases, where the laptop screen is actually used for anything. Is much closer than you'd have a 32" screen. Especially if you are going to use the laptop keyboard.

Comparing preferred PPI between different types of devices is always pointless, because you don't use them in the same way or from the same distance.
C++ is the base of pretty much all our applications. It "won" over Objective-C/C++ and added to C in a way when the application age came. C/C++/Objective-C/Objective-C++ all sit at the balancing point / center of mass between the machine code/assembly and something that is a language, so they are the base of everything including applications, virtual machines and more. It took the Application Layer of the OSI by storm.

C/C++ will always be around no matter how hard replacements are thrown at it. C++ is the Grand Canyon and attempts to dethrone it from what it does best are mere rainstorms adding to a river at the bottom of the canyon, maybe one day but that day is not close.

C/C++ work well together and this made them win along with the power and timing of coming about in the application age.
I have also written a more comprehensive resource here:

https://writefreesoftware.org/learn/participate/choose-a-lic...
If the answers are getting upvotes then they’re in practice merely looking seemingly reasonable to clueless newbies who copy-pasted them. Or they are "funny". This nonsense post received 66 upvotes and 3 downvotes before it was removed 11 days ago: <https://web.archive.org/web/20220410125443/https://stackover...>. Getting an upvote earns you 10 points, getting a downvote loses you 2 points. You need to have earned 15 points to cast an upvote; you need 125 points to cast a downvote, and each one costs you 1 point. Do the math. Upvotes aren’t much more meaningful there than on Hacker News.
Sigh... came straight off the weekend, onto my work pc, and clicked an ipfs link.

Got a message from the cybersecurity team being like, "pls don't do that". Thanks HN.

Pretty cool though, interested in how IPFS develops in the future.
This is reminding me of similar issues I've had with engineers that have been stuck in the backend bubble too long. They seem to operate in a constraint free environment and it's other devs who have to live with the awkward limitations the backend dev thought "is the right way".
"For instance, the study shows how newer models have a greater-than-99 percent approval for President Joe Biden, even though public opinion polls show a much more mixed picture. In their work, the researchers also found some populations are underrepresented in the data—those age 65 or older, Mormons, and widows and widowers, just to name a few. The authors assert that to improve credibility, language models should do a better job of reflecting the nuances, the complexities, and the narrow divisions of public opinion."
Thank you for sharing your experience, without any personal experience I always thought that the issue with these is essentially that of "maintenance", in a ideal/perfect setup, there should be something like a by-pass switch to allow manual operation of the lights/devices, but I don't think this is possible at all without modifying heavily the electric circuitry of the house.
I'm not familiar with this way to classify emulators. What's this mean / refer to?
I ran into this case yesterday, for some cases there are warnings now. In this case I used ".div_ceil(...)" from from the Num [0] crate.

(some_integer).div_ceil(&2)
^^^^^^^^

= warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior!
= note: for more information, see issue #48919 <https://github.com/rust-lang/rust/issues/48919>
= help: call with fully qualified syntax `num::Integer::div_ceil(...)` to keep using the current method
= note: `#[warn(unstable_name_collisions)]` on by default

[0]: https://crates.io/crates/num
also, to the author, make sure you turn _off_ persistent local storage, the performance is horrific (https://github.com/ipfs/js-ipfs/issues/4045) - maybe helia is better?
Does anyone know if Reddit has actually ever turned a profit?

Because if they have not, it is hard to say what they rely on. And quite possible that they track which subreddits and users are profitable and which are not, and know exactly which people they want on the site and which they do not.

So you may be right that "greedy behavior" is driving their actions, but that might be manifesting in unexpected ways, such as deliberately angering the pieces of the community that don't click ads.

This is just speculation of course - I know nothing about reddit's operations, but it is worth considering that what is good for the users does not match up with what is good for Reddit's business. That will be a problem in the long run, but may drive their short-term actions.
A euphemism for a software project dictator where the moral superiority is baked into the title. The dictator does not have to be benevolent in practice.
Hardly 'competing', more like (say) Commodore-64 demo Vs nVidia GPU demo scenes - you pick your arena and push what can be done with constraints (axioms).

In mathematics you might compare groups that work with Vs without the Axiom of Choice, you can can have one group satisfied by an existence proof that asserts X exists otherwise a contradiction must exist and another group that only accept existence proofs that demonstrate a means to construct an example of X.

The habeas corpus divide :-)