chosen
int64 353
41.8M
| rejected
int64 287
41.8M
| chosen_rank
int64 1
2
| rejected_rank
int64 2
3
| top_level_parent
int64 189
41.8M
| split
large_stringclasses 1
value | chosen_prompt
large_stringlengths 236
19.5k
| rejected_prompt
large_stringlengths 209
18k
|
---|---|---|---|---|---|---|---|
17,091,654 | 17,089,241 | 1 | 2 | 17,079,369 | train | <story><title>Too Clever by Half</title><url>http://epsilontheory.com/too-clever-by-half/</url></story><parent_chain><item><author>vpontis</author><text>I really enjoyed this article.<p><i>Summary</i><p>Coyotes are too clever because they know that people shaking jars full of coins can’t hurt them. Thus the animal control patrol has to get called and when they don’t shoo, the animal control person who loves animals has to shoot the coyote.<p>Coyotes are winning the mini-game of each human interaction, but they are losing the meta-game of what society will do if coyotes aren’t scared.<p><i>Personal Connection</i><p>This reminds me of a turning point that I had in high school. When I was young, I would get in trouble and try to get around the rules each time I got in trouble. &#x2F;“Well, technically…”&#x2F;<p>But at some point I realized that most of the time you aren’t getting in trouble because you are breaking the rules. You are getting in trouble because you are making the rule makers unhappy. Once I had that realization I was able to focus on relationships with the rule makers and figure out what they actually cared about. This allowed me to break the rules just as much but without getting in trouble.</text></item></parent_chain><comment><author>leetcrew</author><text>&gt; But at some point I realized that most of the time you aren’t getting in trouble because you are breaking the rules. You are getting in trouble because you are making the rule makers unhappy.<p>i had a similar realization in late high-school &#x2F; early college, but worded a little differently. the rules themselves were never designed to be reasonable; they were designed to solve problems that the rule makers encountered in the past and afford them a &quot;legitimate&quot; means of recourse. no one ever intended to apply them consistently. this is why you can generally break as many rules as you want, so long as you don&#x27;t actually cause a problem for someone. on the flip side, if you create a problem, they damn sure have an applicable rule on the books.</text></comment> | <story><title>Too Clever by Half</title><url>http://epsilontheory.com/too-clever-by-half/</url></story><parent_chain><item><author>vpontis</author><text>I really enjoyed this article.<p><i>Summary</i><p>Coyotes are too clever because they know that people shaking jars full of coins can’t hurt them. Thus the animal control patrol has to get called and when they don’t shoo, the animal control person who loves animals has to shoot the coyote.<p>Coyotes are winning the mini-game of each human interaction, but they are losing the meta-game of what society will do if coyotes aren’t scared.<p><i>Personal Connection</i><p>This reminds me of a turning point that I had in high school. When I was young, I would get in trouble and try to get around the rules each time I got in trouble. &#x2F;“Well, technically…”&#x2F;<p>But at some point I realized that most of the time you aren’t getting in trouble because you are breaking the rules. You are getting in trouble because you are making the rule makers unhappy. Once I had that realization I was able to focus on relationships with the rule makers and figure out what they actually cared about. This allowed me to break the rules just as much but without getting in trouble.</text></item></parent_chain><comment><author>jacobolus</author><text>The problem is that the rule makers in high schools are sometimes (often?) incredibly petty people with a very poor understanding of human psychology and communication, not tremendously much empathy for the students, and very little personal consequence when they make a mistake even if that has drastic consequences for the student (and as a result little time spent introspecting about their mistakes). I never got in particularly much trouble, but many of my friends were screwed by minor miscommunication which incompetent adults escalated beyond any reason.<p>And yes, under the circumstances (assuming the goal is to avoid problems, instead of to aggravate the staff, perform ad-hoc psychology experiments, or the like), any high school student should avoid contradicting the staff in public, start by acquiescing to any request that doesn’t pose an immediate injury risk, disengage quickly and completely and then marshal their parents’ help if there has been any kind of mistake that will affect them academically.<p>Few teenagers have figured this out though. To any high school rule makers out there, please read <i>How to Talk So Kids Will Listen &amp; Listen So Kids Will Talk</i>, <a href="https:&#x2F;&#x2F;amzn.com&#x2F;1451663889&#x2F;" rel="nofollow">https:&#x2F;&#x2F;amzn.com&#x2F;1451663889&#x2F;</a> and in general, please try to treat the students with basic respect.</text></comment> |
31,114,105 | 31,106,424 | 1 | 3 | 31,106,157 | train | <story><title>Go will use pdqsort in next release</title><url>https://github.com/golang/go/commit/72e77a7f41bbf45d466119444307fd3ae996e257</url></story><parent_chain></parent_chain><comment><author>dang</author><text>Recent and related:<p><i>Changing std:sort at Google’s scale and beyond</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31098822" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31098822</a> - April 2022 (144 comments)</text></comment> | <story><title>Go will use pdqsort in next release</title><url>https://github.com/golang/go/commit/72e77a7f41bbf45d466119444307fd3ae996e257</url></story><parent_chain></parent_chain><comment><author>pastaking</author><text>On a side note, this change&#x27;s author is from ByteDance. It&#x27;s great to see everyone working together on open source.</text></comment> |
25,123,588 | 25,122,963 | 1 | 2 | 25,121,604 | train | <story><title>Firefox 83 introduces HTTPS-Only Mode</title><url>https://blog.mozilla.org/security/2020/11/17/firefox-83-introduces-https-only-mode/</url></story><parent_chain><item><author>ignoramous</author><text>&gt; <i>I want my OS to do DNS - including DOH, not my browser.</i><p>The cat is out the bag, so to speak. I foresee a lot of adware, spyware, and malware leveraging DoH now to evade just about every DNS-based monitoring&#x2F;blocking&#x2F;provisioning solutions.<p>Anyway, the right layer to monitor for Internet traffic has always been the IP layer (VPNs notwithstanding).</text></item><item><author>iso1631</author><text>I want my OS to do DNS - including DOH, not my browser. I want a single source for my DNS<p>I want my network to tell me a DNS server to use. As I own my computer I can override that, but much of the time I want to use the network provided DNS server.</text></item><item><author>jchw</author><text>I’m surprised at the negative knee-jerk reaction. I actually love this idea immediately. It encapsulates something I kind of already wanted when using HTTPS Everywhere.<p>This doesn’t guarantee the transport is end-to-end secure; I’m sure plenty will strip the encryption at an LB and then possibly send it back over the internet. But, I think it’s a good addition nevertheless. Here’s to hoping for more DoH and encrypted SNI adoption as well. No good reason to leave anything unencrypted if it doesn&#x27;t have to be.<p>(I’m less happy with Firefox’s approach to DoH rollout, but I’m still glad to see DoH gaining some traction. Let’s hope the end result is worth it...)</text></item></parent_chain><comment><author>akerl_</author><text>This has always felt like a strange concern to me. It’s a bit like refusing to have gloves in your house, so that a burglar can’t borrow your gloves to avoid leaving fingerprints.<p>Adware, spyware, and malware has always had the ability to avoid system DNS. At its most basic, they could hardcode lists of IPs into their malicious code. At its most complex, the same building blocks that DoH&#x2F;DoT use were available to them: they could build similar tools that tunnel over HTTPS&#x2F;SSH&#x2F;etc, whichever protocol they felt was least conspicuous on their target system. Drop a list of hostnames into a pastebin post, tell your malware to check the list for updates, profit.<p>DoH in Firefox simply makes the above issue harder to ignore. Before this, an enterprise or individual sysadmin could implement DNS inspection at the border, see logs showing their users browsing naughty websites, and feel like they’d made progress. But they’d always be blind to attackers (or nefarious users) who just didn’t bother using the stock DNS offering to bootstrap their hijinks. Detecting that has always required device-level monitoring or further MITM of traffic; learning about DoH makes that more obvious to sysadmins, but it doesn’t materially change what adversaries were able to do already.</text></comment> | <story><title>Firefox 83 introduces HTTPS-Only Mode</title><url>https://blog.mozilla.org/security/2020/11/17/firefox-83-introduces-https-only-mode/</url></story><parent_chain><item><author>ignoramous</author><text>&gt; <i>I want my OS to do DNS - including DOH, not my browser.</i><p>The cat is out the bag, so to speak. I foresee a lot of adware, spyware, and malware leveraging DoH now to evade just about every DNS-based monitoring&#x2F;blocking&#x2F;provisioning solutions.<p>Anyway, the right layer to monitor for Internet traffic has always been the IP layer (VPNs notwithstanding).</text></item><item><author>iso1631</author><text>I want my OS to do DNS - including DOH, not my browser. I want a single source for my DNS<p>I want my network to tell me a DNS server to use. As I own my computer I can override that, but much of the time I want to use the network provided DNS server.</text></item><item><author>jchw</author><text>I’m surprised at the negative knee-jerk reaction. I actually love this idea immediately. It encapsulates something I kind of already wanted when using HTTPS Everywhere.<p>This doesn’t guarantee the transport is end-to-end secure; I’m sure plenty will strip the encryption at an LB and then possibly send it back over the internet. But, I think it’s a good addition nevertheless. Here’s to hoping for more DoH and encrypted SNI adoption as well. No good reason to leave anything unencrypted if it doesn&#x27;t have to be.<p>(I’m less happy with Firefox’s approach to DoH rollout, but I’m still glad to see DoH gaining some traction. Let’s hope the end result is worth it...)</text></item></parent_chain><comment><author>2ion</author><text>&gt; The cat is out the bag, so to speak. I foresee a lot of adware, spyware, and malware leveraging DoH now to evade just about every DNS-based monitoring&#x2F;blocking&#x2F;provisioning solutions.<p>But tunnelling X in Y is not new at all and has a long tradition (even in regular protocol design). Is this really a shift waiting to happen in malware? As I would think, this has been available all along. Except for browser-based malware.</text></comment> |
6,718,570 | 6,718,631 | 1 | 2 | 6,717,998 | train | <story><title>End of Inception decoded [video]</title><url>http://sourcefed.com/end-inception-de-coded/</url></story><parent_chain><item><author>AnonJ</author><text>That article seems far-stretched and circuitous, making things out of its own rather than really explaining what Nolan is trying to say(It&#x27;s actually not that complicated. Just a hugely commercial movie which is attached too many connotations. For example they had to fight their way through, probably just mainly because the need of cinematic effects). Also it has the very danger of fashioning out massive escapism. &quot;What matters isn&#x27;t whether the top stopped spinning; what matters is that Cobb didn&#x27;t bother to find out.&quot; What total nonsense. If we live our real life with such an attitude then it&#x27;s one of the utmost dangers I can imagine. (For example you may play a game all day long and claim that is the &quot;reality&quot; you are fond of being in. While in fact doing so only totally destroys your life as well as lives of people you should be together with, as I have already experienced). We have to have the will and courage to face the real life, to face all the things it throws at us no matter good or bad. True joys only derive from the reality. Any attempts of escapism will in the end only enlarge the problems you&#x27;re facing and bring more disasters.</text></item><item><author>vidar</author><text>Already covered in <a href="http://thelastpsychiatrist.com/2010/07/the_ultimate_explanation_of_in.html" rel="nofollow">http:&#x2F;&#x2F;thelastpsychiatrist.com&#x2F;2010&#x2F;07&#x2F;the_ultimate_explanat...</a></text></item></parent_chain><comment><author>kamaal</author><text>&gt;&gt;True joys only derive from the reality.<p>Well a dream is as real as things get.<p>The whole problem is really in describing reality. Ask any lucid dreamer and they will explain you than the key to lucid dreaming is to constantly question your current state(are your dreaming or not?).<p>And after some time it just doesn&#x27;t matter. Because every thing is just a electrical impulse to your brain. If your brain is sent a signal to treat hot as cold. You will hold a hot iron in your hands and be perfectly OK with it. The reality of things &#x27;hot being hot&#x27; doesn&#x27;t change, nothing changes but your perception of things.<p>If you ponder deep enough when you dream this is what happens in a dream too. You are perceiving things. Whether they are real are not, is as useless argument because your knowledge of it is the way your brain is telling you about it and not what it actually is.<p>I&#x27;ve had inception like dream within dream, losing lucidity while dreaming inside the dream and there after. In stages like that its difficult to say what is reality and what isn&#x27;t. The safest way is to not do any thing harmful or dangerous. In fact I didn&#x27;t know of it until I woke, it was then during a usual dream recall that I got a surreal feeling that I had woke up from three levels of &#x27;reality&#x27;.</text></comment> | <story><title>End of Inception decoded [video]</title><url>http://sourcefed.com/end-inception-de-coded/</url></story><parent_chain><item><author>AnonJ</author><text>That article seems far-stretched and circuitous, making things out of its own rather than really explaining what Nolan is trying to say(It&#x27;s actually not that complicated. Just a hugely commercial movie which is attached too many connotations. For example they had to fight their way through, probably just mainly because the need of cinematic effects). Also it has the very danger of fashioning out massive escapism. &quot;What matters isn&#x27;t whether the top stopped spinning; what matters is that Cobb didn&#x27;t bother to find out.&quot; What total nonsense. If we live our real life with such an attitude then it&#x27;s one of the utmost dangers I can imagine. (For example you may play a game all day long and claim that is the &quot;reality&quot; you are fond of being in. While in fact doing so only totally destroys your life as well as lives of people you should be together with, as I have already experienced). We have to have the will and courage to face the real life, to face all the things it throws at us no matter good or bad. True joys only derive from the reality. Any attempts of escapism will in the end only enlarge the problems you&#x27;re facing and bring more disasters.</text></item><item><author>vidar</author><text>Already covered in <a href="http://thelastpsychiatrist.com/2010/07/the_ultimate_explanation_of_in.html" rel="nofollow">http:&#x2F;&#x2F;thelastpsychiatrist.com&#x2F;2010&#x2F;07&#x2F;the_ultimate_explanat...</a></text></item></parent_chain><comment><author>noptic</author><text>So what is reality? Are sure sure it is realy real? And where is the difference between dreaming you lived 70 years or really living them? You will nver know the difference.<p>We all create ou own &quot;reality&quot; out off faulty perceptions and memorys.<p>&quot;Playing a game&quot; is a bad example because it is hardly compareable to the complex illusion we really ( ;) ) live in.
The dream world of inception however is as complex as as the &quot;real&quot; world (at least from a humans point of view).<p>Sorry but you are sailing into a philosphical ocean with only a inflateable animal as support.</text></comment> |
38,089,472 | 38,089,349 | 1 | 2 | 38,085,417 | train | <story><title>Home schooling's rise from fringe to fastest-growing form of education</title><url>https://www.washingtonpost.com/education/interactive/2023/homeschooling-growth-data-by-district/</url></story><parent_chain><item><author>akira2501</author><text>&gt; The underlying problem is the completely unregulated nature.<p>I didn&#x27;t need your permission to give birth to my children, why do I need your permission when deciding how I educate them?<p>&gt; Only dad is allowed to talk to anyone and when he does it&#x27;s extraordinarily weird.<p>If you feel these children are legitimately being abused in some way, I&#x27;m guessing there are plenty of state resources to address that challenge.<p>Do you actually feel there&#x27;s abuse happening? Or, is it that you just find them unusual?</text></item><item><author>303uru</author><text>Sure, that&#x27;s one model. The underlying problem is the completely unregulated nature. Similarly, there is household in my neighborhood that home schools. The kids (all 8 of them) never leave the house. They have a 8ft. fence and 1 acre yard where I assume they get some outside time. No one visits. Only dad is allowed to talk to anyone and when he does it&#x27;s extraordinarily weird.</text></item><item><author>brightball</author><text>When I moved into my current house about 10 years ago, the family next door home schooled. I&#x27;d never known any home schoolers before and definitely had some notions about how terrible it must be until I learned about it.<p>This family was part of a home school group with other families. The kids went to different houses every day and had an instructor focus on 1 subject for half of the day, mixed in with free time, depending on the age. 2 subjects per day, so as a parent your teaching commitment was a half day a week on 1 subject.<p>They would do field trips. They held a school play in a garage complete with costumes and video. And the kids were smart, well mannered, socially adjusted kids with very happy and normal lives. And there are plenty of sports opportunities as well. As far as I know, they all went to public high school too.<p>Completely shifted my view of what I thought home schooling was, which was the kids stuck in 1 house with 1 parent all day in social isolation.<p>The reality was closer to a model of a Montessori school which has a huge amount of success stories.</text></item></parent_chain><comment><author>cycomanic</author><text>&gt; &gt; The underlying problem is the completely unregulated nature.<p>&gt; I didn&#x27;t need your permission to give birth to my children, why do I need your permission when deciding how I educate them?<p>Because your children are not your property, they are your responsibility and we as society have decided that we want to make sure that the education is to a certain standard.<p>As a side note I find it fascinating how people who feel strongly about individual freedom, believe they should have ultimate authority (sometimes it feels more like ownership) over their children. Why do you believe that the freedoms do not apply to children?</text></comment> | <story><title>Home schooling's rise from fringe to fastest-growing form of education</title><url>https://www.washingtonpost.com/education/interactive/2023/homeschooling-growth-data-by-district/</url></story><parent_chain><item><author>akira2501</author><text>&gt; The underlying problem is the completely unregulated nature.<p>I didn&#x27;t need your permission to give birth to my children, why do I need your permission when deciding how I educate them?<p>&gt; Only dad is allowed to talk to anyone and when he does it&#x27;s extraordinarily weird.<p>If you feel these children are legitimately being abused in some way, I&#x27;m guessing there are plenty of state resources to address that challenge.<p>Do you actually feel there&#x27;s abuse happening? Or, is it that you just find them unusual?</text></item><item><author>303uru</author><text>Sure, that&#x27;s one model. The underlying problem is the completely unregulated nature. Similarly, there is household in my neighborhood that home schools. The kids (all 8 of them) never leave the house. They have a 8ft. fence and 1 acre yard where I assume they get some outside time. No one visits. Only dad is allowed to talk to anyone and when he does it&#x27;s extraordinarily weird.</text></item><item><author>brightball</author><text>When I moved into my current house about 10 years ago, the family next door home schooled. I&#x27;d never known any home schoolers before and definitely had some notions about how terrible it must be until I learned about it.<p>This family was part of a home school group with other families. The kids went to different houses every day and had an instructor focus on 1 subject for half of the day, mixed in with free time, depending on the age. 2 subjects per day, so as a parent your teaching commitment was a half day a week on 1 subject.<p>They would do field trips. They held a school play in a garage complete with costumes and video. And the kids were smart, well mannered, socially adjusted kids with very happy and normal lives. And there are plenty of sports opportunities as well. As far as I know, they all went to public high school too.<p>Completely shifted my view of what I thought home schooling was, which was the kids stuck in 1 house with 1 parent all day in social isolation.<p>The reality was closer to a model of a Montessori school which has a huge amount of success stories.</text></item></parent_chain><comment><author>vharuck</author><text>&gt;I didn&#x27;t need your permission to give birth to my children, why do I need your permission when deciding how I educate them?<p>One legal theory that may be relevant was brought up long ago for a case on banned books in school: you have the right to raise your kid according to your beliefs, but many states guarantee children the right to education. So the state could regulate homeschooling to ensure all children have access to an actual education.<p>&gt;If you feel these children are legitimately being abused in some way, I&#x27;m guessing there are plenty of state resources to address that challenge.<p>A lot of those resources rely on processes that come after reports from teachers and caregivers. If nobody outside the home ever sees or talks to the kids, there&#x27;s not much the state can do to even start an investigation. Children who go to daycare or public school are seen by professionals trained to spot abuse.<p>We allow anyone to have children, because otherwise we&#x27;re on a very slippery and short slope towards eugenics. But those children are entitled to the same rights and protections as their parents. It&#x27;s hard to strike a good balance between a family&#x27;s freedom and a child&#x27;s freedom.<p><i>Edited out some unnecessary detours in my ramblings</i></text></comment> |
21,292,376 | 21,292,388 | 1 | 2 | 21,291,579 | train | <story><title>Facebook and Speech</title><url>https://continuations.com/post/188425562010/facebook-and-speech-its-all-about-power</url></story><parent_chain><item><author>malvosenior</author><text>Open API doesn&#x27;t mean all data available to everyone all the time. You&#x27;d still have ACLs and privacy options. It would just mean that the data and interactions you as a user already have in Facebook&#x27;s proprietary walled garden, would be API callable from 3rd parties.<p>Today you cannot see my FB page if we&#x27;re not friends, an open API wouldn&#x27;t allow you to access my data either. If we were friends, you could use your custom FB client to look at my page though, which would be very user friendly.</text></item><item><author>SpicyLemonZest</author><text>Forcing Facebook to have truly open API means forcing them to allow Cambridge Analytica to vacuum up everyone&#x27;s data.</text></item><item><author>cameronbrown</author><text>Forcing Facebook and Twitter to have truly open APIs would be amazing. We&#x27;d have everything from custom clients, custom News Feed algorithms and much more.. Heck, they can even require ads to be served, the point is we&#x27;d be in a far better situation than we are now.</text></item><item><author>rubbingalcohol</author><text>&gt; In the EU all bank accounts are now required to have an API. This has massively reduced the power of incumbent banks, allowing for rapid innovation in the banking and payments sector. The same would and could happen if platform such as Facebook and Twitter were required to have an API.<p>I agree with the author&#x27;s assertion of a problem, but this is really confusing. Both Facebook and Twitter DO have APIs. Granted the APIs are proprietary and subject to significant restrictions on acceptable use and functionality. However, providing even a full-featured API doesn&#x27;t change the effect of the platforms owning a person&#x27;s user account and persona, or their ability to suck people in to waste countless hours watching their ad targeting feed algorithms.<p>Only true decentralization of social graph hosting will really address the core issue of centralized power.</text></item></parent_chain><comment><author>traek</author><text>&gt; It would just mean that the data and interactions you as a user already have in Facebook&#x27;s proprietary walled garden, would be API callable from 3rd parties.<p>This was precisely the level of access which caused the Cambridge Analytica scandal.</text></comment> | <story><title>Facebook and Speech</title><url>https://continuations.com/post/188425562010/facebook-and-speech-its-all-about-power</url></story><parent_chain><item><author>malvosenior</author><text>Open API doesn&#x27;t mean all data available to everyone all the time. You&#x27;d still have ACLs and privacy options. It would just mean that the data and interactions you as a user already have in Facebook&#x27;s proprietary walled garden, would be API callable from 3rd parties.<p>Today you cannot see my FB page if we&#x27;re not friends, an open API wouldn&#x27;t allow you to access my data either. If we were friends, you could use your custom FB client to look at my page though, which would be very user friendly.</text></item><item><author>SpicyLemonZest</author><text>Forcing Facebook to have truly open API means forcing them to allow Cambridge Analytica to vacuum up everyone&#x27;s data.</text></item><item><author>cameronbrown</author><text>Forcing Facebook and Twitter to have truly open APIs would be amazing. We&#x27;d have everything from custom clients, custom News Feed algorithms and much more.. Heck, they can even require ads to be served, the point is we&#x27;d be in a far better situation than we are now.</text></item><item><author>rubbingalcohol</author><text>&gt; In the EU all bank accounts are now required to have an API. This has massively reduced the power of incumbent banks, allowing for rapid innovation in the banking and payments sector. The same would and could happen if platform such as Facebook and Twitter were required to have an API.<p>I agree with the author&#x27;s assertion of a problem, but this is really confusing. Both Facebook and Twitter DO have APIs. Granted the APIs are proprietary and subject to significant restrictions on acceptable use and functionality. However, providing even a full-featured API doesn&#x27;t change the effect of the platforms owning a person&#x27;s user account and persona, or their ability to suck people in to waste countless hours watching their ad targeting feed algorithms.<p>Only true decentralization of social graph hosting will really address the core issue of centralized power.</text></item></parent_chain><comment><author>dehrmann</author><text>&gt; You&#x27;d still have ACLs and privacy options.<p>People saw an ACL grant screen before Cambridge Analytica took their data. Too many of these screens and people just click &quot;OK.&quot;</text></comment> |
24,259,138 | 24,259,034 | 1 | 2 | 24,258,269 | train | <story><title>Kali Linux 2020.3</title><url>https://www.kali.org/news/kali-2020-3-release/</url></story><parent_chain><item><author>idoubtit</author><text>I think the move of Kali Linux from bash to zsh is sane. I sometimes have to use the default shell of Linux distribution, especially on servers, and my main pain points with bash are:<p>- The history is editable by default. If I move to a previous history line and change it, the old line disappears. Hitting Ctrl-c will remove it from the history.<p>- If I use simultaneous shells (screen, tmux, or several ssh connections), the history saved will be the one of the last shell to quit. The bash config `histappend` should be the default, IMO.<p>- Most of the time, I search the history by the beginning of the command I just typed, which zsh maps to alt-p and which bash does not map by default. I rarely use the ctrl-r search.<p>- No way to pause a command and view the man. With zsh, `git clone&lt;alt-h&gt;` will display `man git-clone`, then return to the incomplete command line.<p>- No way to set a command aside. E.g. if I realise while typing that I&#x27;m not in the right directory, `git clone&lt;alt-q&gt;cd src&lt;return&gt;`.</text></item></parent_chain><comment><author>mkl</author><text>&gt; - The history is editable by default. If I move to a previous history line and change it, the old line disappears.<p>Press M-r to revert back to the original command.<p>&gt; - No way to set a command aside. E.g. if I realise while typing that I&#x27;m not in the right directory, `git clone&lt;alt-q&gt;cd src&lt;return&gt;`.<p>Press M-# to comment out the current command and go to a new prompt, then up to get the commented command back, and M-3 M-# to uncomment it and run it (any number works, but 3 is the same key as #).</text></comment> | <story><title>Kali Linux 2020.3</title><url>https://www.kali.org/news/kali-2020-3-release/</url></story><parent_chain><item><author>idoubtit</author><text>I think the move of Kali Linux from bash to zsh is sane. I sometimes have to use the default shell of Linux distribution, especially on servers, and my main pain points with bash are:<p>- The history is editable by default. If I move to a previous history line and change it, the old line disappears. Hitting Ctrl-c will remove it from the history.<p>- If I use simultaneous shells (screen, tmux, or several ssh connections), the history saved will be the one of the last shell to quit. The bash config `histappend` should be the default, IMO.<p>- Most of the time, I search the history by the beginning of the command I just typed, which zsh maps to alt-p and which bash does not map by default. I rarely use the ctrl-r search.<p>- No way to pause a command and view the man. With zsh, `git clone&lt;alt-h&gt;` will display `man git-clone`, then return to the incomplete command line.<p>- No way to set a command aside. E.g. if I realise while typing that I&#x27;m not in the right directory, `git clone&lt;alt-q&gt;cd src&lt;return&gt;`.</text></item></parent_chain><comment><author>codetrotter</author><text>&gt; E.g. if I realise while typing that I&#x27;m not in the right directory, `git clone&lt;alt-q&gt;cd src&lt;return&gt;`.<p>With bash I’d just Ctrl+a and type “cd src ;” and then press ctrl+e and continue typing what I was typing.<p>I got so used to doing it that way, that even after switching to zsh I still do it this way.<p>The disadvantage of my way of doing it is if you typo the path. But I tab complete pretty much always, so in practice I don’t have the problem of typoing directory names without noticing.<p>I probably should learn those zsh ways of doing things. Will try to remember to do it the zsh way next time I need to do something like the things you mentioned.</text></comment> |
7,253,990 | 7,254,144 | 1 | 2 | 7,253,288 | train | <story><title>No more `grunt watch` – faster builds with the Broccoli asset pipeline</title><url>http://www.solitr.com/blog/2014/02/broccoli-first-release/index.html</url><text></text></story><parent_chain></parent_chain><comment><author>munificent</author><text>This is slightly related and I don&#x27;t want to sound like I&#x27;m trying steal its thunder, because this looks really cool. I work on the asset pipeline that comes with the Dart SDK. It has many of the same principles as these.<p>Any transformation step can read in many input files and produce many output files. The built-in dev server tracks the entire asset dependency graph and only rebuilds the assets that are dirtied by a source file changing.<p>We have a plug-in system, and it&#x27;s built on top of the same package management system that the SDK uses, so you can get transformer plug-ins as easily as you can get any other dependency.<p>We still have a lot of work to do to fully flesh things out, but it already does a lot, including supporting complex scenarios like transformers whose own code is the output of a previous transformer.<p>More here: <a href="https://www.dartlang.org/tools/pub/assets-and-transformers.html" rel="nofollow">https:&#x2F;&#x2F;www.dartlang.org&#x2F;tools&#x2F;pub&#x2F;assets-and-transformers.h...</a></text></comment> | <story><title>No more `grunt watch` – faster builds with the Broccoli asset pipeline</title><url>http://www.solitr.com/blog/2014/02/broccoli-first-release/index.html</url><text></text></story><parent_chain></parent_chain><comment><author>JangoSteve</author><text><i>Broccoli is a new build tool. It’s comparable to the Rails asset pipeline in scope, though it runs on Node and is backend-agnostic.</i><p>This first line is a little disingenuous. Technically, it&#x27;s not backend-agnostic, since it depends on Node being installed on the backend (in the same way that Sprockets [1] depends on Ruby). The Rails asset pipeline is a framework-specific integration of Sprockets. In much the same way, you could more closely integrate Broccoli with Rails if you wanted and call it a new Rails asset pipeline.<p>The project itself looks great, just the first line was confusing since they started the docs off by comparing apples to oranges.<p>A better comparison would probably be, &quot;It&#x27;s comparable to Sprockets (which powers the Rails asset pipeline), but runs on Node instead of Ruby.&quot;<p>[1] <a href="https://github.com/sstephenson/sprockets" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sstephenson&#x2F;sprockets</a></text></comment> |
26,771,906 | 26,772,005 | 1 | 3 | 26,771,224 | train | <story><title>Cyber Attack on Iran's Nuclear Facility</title><url>https://www.bbc.com/news/world-middle-east-56708778</url></story><parent_chain><item><author>lovedswain</author><text>&gt; _very_ competent cyber-actor<p>Please elaborate on this. As someone with direct exposure to this area and in this geography, my experience could not be described this way at all.<p>Let&#x27;s not forget Iran&#x27;s first &quot;military satellite&quot; was launched with an over the counter unencrypted amateur cubesat transponder manufactured by a Californian company</text></item><item><author>ajcp</author><text>The real take-away from this is that you have a _very_ competent cyber-actor (Iran) getting pancaked <i>at will</i> by an _extremely_ competent cyber-actor (Israel) in what one would presume to be one of it&#x27;s most, _if not most_, cybersecure locations (Natanz).<p>Nation-states using cyber capabilities in this way, and the non-response it evokes, is reminiscent of how pre-WWI nation-states would conduct policy and international affairs with their armies.<p>It&#x27;s something I wish the general public were more cognizant of. We need to openly talk about this type of power and conflict. Otherwise we&#x27;re going to have another WWI-type moment, where it takes millions of people dying before we realize that the state of the game has changed because of new technologies.</text></item></parent_chain><comment><author>ajcp</author><text>Given when we&#x27;re talking about nations states as cyber-actors we&#x27;re working with a pool of ~190. Compared to 90% of the other nation-states out there Iran is a _very_ competent cyber-actor. Enough so that it may even export that capability. This still means there are ~20 that are more competent, if not _extremely_ so.<p>Given your exposure in this geography can you name any of it&#x27;s neighbors who have greater or even equal competency that aren&#x27;t Israel or don&#x27;t use citizens from an _extremely_ competent nation-state? They certainly had their way with Aramco, so not Saudi Arabia. Egypt? Jordan? Syria? Iraq? Perhaps Lebanon? And this just their neighbors. What about compared to Portugal or Spain? South Africa? Nigeria? Argentina or Mexico?</text></comment> | <story><title>Cyber Attack on Iran's Nuclear Facility</title><url>https://www.bbc.com/news/world-middle-east-56708778</url></story><parent_chain><item><author>lovedswain</author><text>&gt; _very_ competent cyber-actor<p>Please elaborate on this. As someone with direct exposure to this area and in this geography, my experience could not be described this way at all.<p>Let&#x27;s not forget Iran&#x27;s first &quot;military satellite&quot; was launched with an over the counter unencrypted amateur cubesat transponder manufactured by a Californian company</text></item><item><author>ajcp</author><text>The real take-away from this is that you have a _very_ competent cyber-actor (Iran) getting pancaked <i>at will</i> by an _extremely_ competent cyber-actor (Israel) in what one would presume to be one of it&#x27;s most, _if not most_, cybersecure locations (Natanz).<p>Nation-states using cyber capabilities in this way, and the non-response it evokes, is reminiscent of how pre-WWI nation-states would conduct policy and international affairs with their armies.<p>It&#x27;s something I wish the general public were more cognizant of. We need to openly talk about this type of power and conflict. Otherwise we&#x27;re going to have another WWI-type moment, where it takes millions of people dying before we realize that the state of the game has changed because of new technologies.</text></item></parent_chain><comment><author>kodah</author><text>In my mind, most countries can&#x27;t figure out how to plan or coordinate a cyber-attack. With a limited pool of nations to pick from, even being able to coordinate an attack makes you relatively &quot;very competent&quot; (among your peers), however, that would also be a matter of perspective. It&#x27;s equally valid to determine a criteria of competency and rank&#x2F;describe countries based on those thresholds.</text></comment> |
24,719,331 | 24,719,326 | 1 | 3 | 24,718,972 | train | <story><title>Rust 1.47</title><url>https://blog.rust-lang.org/2020/10/08/Rust-1.47.html</url></story><parent_chain><item><author>k__</author><text>What does &quot;becoming const&quot; mean?</text></item><item><author>adamch</author><text>It&#x27;s a little thing, but one of my favourite parts of any Rust release is seeing which stdlib functions become `const`. The ergonomics of build-time evaluation are slowly improving, and I&#x27;m very excited to slowly do less at runtime!</text></item></parent_chain><comment><author>mden</author><text>Const values are inlined at compile time wherever they are used.<p>Const functions let you run code to define const values. This code will be run at compile time before the const values are inlined.<p>For example let&#x27;s say you have a constant for PI but you need 2*PI. You could do the multiplication in const context, meaning the multiplication will happen during compilation and not execution. Slowly more and more of the language is becoming usable in const context so more advanced things can be done during compile time.</text></comment> | <story><title>Rust 1.47</title><url>https://blog.rust-lang.org/2020/10/08/Rust-1.47.html</url></story><parent_chain><item><author>k__</author><text>What does &quot;becoming const&quot; mean?</text></item><item><author>adamch</author><text>It&#x27;s a little thing, but one of my favourite parts of any Rust release is seeing which stdlib functions become `const`. The ergonomics of build-time evaluation are slowly improving, and I&#x27;m very excited to slowly do less at runtime!</text></item></parent_chain><comment><author>dahfizz</author><text><a href="https:&#x2F;&#x2F;doc.rust-lang.org&#x2F;reference&#x2F;items&#x2F;functions.html#const-functions" rel="nofollow">https:&#x2F;&#x2F;doc.rust-lang.org&#x2F;reference&#x2F;items&#x2F;functions.html#con...</a><p>Basically, const functions can be used in places regular functions can&#x27;t because they are directly &quot;run&quot; by the compiler at compile time.</text></comment> |
39,504,272 | 39,502,977 | 1 | 2 | 39,498,863 | train | <story><title>TSMC is having more luck building in Japan than in America</title><url>https://www.economist.com/business/2024/02/22/tsmc-is-having-more-luck-building-in-japan-than-in-america</url></story><parent_chain><item><author>subtypefiddler</author><text>It boils down to<p>- Labor relations (unions in Arizona pushed back agains Taiwanese workers build the factory)<p>- Local partners (Denso&#x2F;Sony and Toyota investing in Japanese project, TSMC on its own in the US)<p>- Subsidies (Japan delivered on promises, US didn&#x27;t)<p>- Ambition (12nm-28nm in Japan, 4nm in US)<p>It seems the US gov is not very serious about it while Japanese gov surely is. It sounds self-inflicted.<p>(edit: formatting)</text></item></parent_chain><comment><author>TaylorAlexander</author><text>I’m sure the point about labor unions is true in this case, but I did a quick search and it seems labor union participation is even higher in Japan. 17% in the Japan and 10% in the USA.<p>I think in many ways we do labor unions wrong in the US, and from my cursory knowledge it seems like the Taft-Hartley act has a lot to do with it. That concentrated union power in the leadership which created an opportunity for more corruption, and also weakened certain powers that would make labor struggles more useful. Of course in Japan, they would likely use Japanese workers due to strong nationalist sentiment so this particular issue wouldn’t occur.<p>I’m only saying this because some will read your comment and take away “labor unions bad”. I suspect that the truth is we aren’t doing labor unions properly here, and also the desire to use Taiwanese workers suggests there is something lacking about the US education system. It is of course reasonable for US workers to want a chance, but we need to make sure they are worthy of that chance. You can leave it up to the market to let people find higher education, but that’s going to leave smaller numbers in the end due to how wealth is distributed in this country. If you want higher numbers of educated workers, more provisions for affordable education are required.</text></comment> | <story><title>TSMC is having more luck building in Japan than in America</title><url>https://www.economist.com/business/2024/02/22/tsmc-is-having-more-luck-building-in-japan-than-in-america</url></story><parent_chain><item><author>subtypefiddler</author><text>It boils down to<p>- Labor relations (unions in Arizona pushed back agains Taiwanese workers build the factory)<p>- Local partners (Denso&#x2F;Sony and Toyota investing in Japanese project, TSMC on its own in the US)<p>- Subsidies (Japan delivered on promises, US didn&#x27;t)<p>- Ambition (12nm-28nm in Japan, 4nm in US)<p>It seems the US gov is not very serious about it while Japanese gov surely is. It sounds self-inflicted.<p>(edit: formatting)</text></item></parent_chain><comment><author>schainks</author><text>The US government currently is inhabited by one political party whose goal is to hinder US interests in any way possible while complaining that the US doesn’t do enough to bolster said interests.<p>So yes, part of the government is serious, while another part is serious about doing the opposite, which does produce the intended effect: public perception that the US government is not serious about these things.<p>What it will take for all political interests to align for the sake of US interests? Probably turning off financial lobbying from shadow money groups.</text></comment> |
9,893,210 | 9,892,204 | 1 | 2 | 9,891,927 | train | <story><title>Why Web Pages Suck</title><url>https://stratechery.com/2015/why-web-pages-suck/</url></story><parent_chain></parent_chain><comment><author>imgabe</author><text>AdBlock renders most advertising a moot point. What&#x27;s far more annoying is how every website insists on blocking out the page with a popover asking me to sign up for their newsletter when I&#x27;m not even halfway done reading the article. Does this actually work? Do people actually sign up for newsletters from these things? Usually it makes me just abandon whatever I was reading because I want nothing to do with such an obnoxious website.</text></comment> | <story><title>Why Web Pages Suck</title><url>https://stratechery.com/2015/why-web-pages-suck/</url></story><parent_chain></parent_chain><comment><author>notjustanymike</author><text>This article misses one key point: sales and product people.<p>Specifically, sales and product people who neither understand nor care about user experience. These are the kinds of people who say yes to every deal, since the only metric they are judged by is quarterly income. Typically these people are also (rightfully so) terrified of losing their jobs. So they close tons of ad deals, by which point it&#x27;s too late for the developers to stop them.<p>Back when I worked for Newsweek they were the biggest barrier to a quality user experience. The site developers <i>wanted</i> to built and the site had to was the main reason I left that industry behind.</text></comment> |
36,788,976 | 36,785,277 | 1 | 2 | 36,780,739 | train | <story><title>The Death of Infosec Twitter</title><url>https://www.cyentia.com/the-death-of-infosec-twitter/</url></story><parent_chain><item><author>throwaway290</author><text>What I dislike about Mastodon is how people talk about &quot;moving to Mastodon&quot;.<p>Unlike Twitter, FB etc. you don&#x27;t just &quot;move to Mastodon&quot;... you move to some ActivityPub server. Which one? They don&#x27;t want you to know I guess?<p>Edit: thanks for the pointers!</text></item><item><author>yosito</author><text>All of the infosec people I follow have moved to Mastodon. As someone with primarily tech related interests, I&#x27;m currently finding Mastodon as good or better than Twitter at it&#x27;s prime.</text></item></parent_chain><comment><author>ASalazarMX</author><text>But they&#x27;re specifically moving to Mastodon (infosec.exchange and defcon.social), which is not the same as moving to Lemmy, KBin, or PixelFed. For example, Lemmy federates with KBin, but not with Mastodon. Kbin federates both with Lemmy and Mastodon. Also, Mastodon has a Twitter-like UX, while Lemmy&#x2F;Kbin have a Reddit-like UX. PixelFed has a Flickr-like UX.<p>It makes a difference, and insisting on calling them ActivityPub or Fediverse servers has strong GNU&#x2F;Linux vibes, which we should probably avoid too.</text></comment> | <story><title>The Death of Infosec Twitter</title><url>https://www.cyentia.com/the-death-of-infosec-twitter/</url></story><parent_chain><item><author>throwaway290</author><text>What I dislike about Mastodon is how people talk about &quot;moving to Mastodon&quot;.<p>Unlike Twitter, FB etc. you don&#x27;t just &quot;move to Mastodon&quot;... you move to some ActivityPub server. Which one? They don&#x27;t want you to know I guess?<p>Edit: thanks for the pointers!</text></item><item><author>yosito</author><text>All of the infosec people I follow have moved to Mastodon. As someone with primarily tech related interests, I&#x27;m currently finding Mastodon as good or better than Twitter at it&#x27;s prime.</text></item></parent_chain><comment><author>entropyie</author><text>For those whom are curious, a lot of infosec people are now on infosec.exchange .</text></comment> |
12,055,587 | 12,055,581 | 1 | 2 | 12,055,375 | train | <story><title>Facebook Messenger begins testing end-to-end encryption using Signal Protocol</title><url>https://whispersystems.org/blog/facebook-messenger/</url></story><parent_chain><item><author>sweis</author><text>I am confident Facebook will meet your high standards when it comes to E2E encryption for Messenger.</text></item><item><author>etiam</author><text>&quot;End-To-End Encrypted ‘Secret Conversations’&quot; in software that is ordinarily used to harvest electronic phone books and rummage through user photos, from a company that made its whole fortune trying to obliterate privacy as a part of human culture?<p>It&#x27;s going to be pretty high standards of proof to give this anything that resembles credibility.</text></item></parent_chain><comment><author>sweis</author><text>And we had some smart outside people review it:
<a href="https:&#x2F;&#x2F;twitter.com&#x2F;matthew_d_green&#x2F;status&#x2F;751403163408826368" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;matthew_d_green&#x2F;status&#x2F;75140316340882636...</a></text></comment> | <story><title>Facebook Messenger begins testing end-to-end encryption using Signal Protocol</title><url>https://whispersystems.org/blog/facebook-messenger/</url></story><parent_chain><item><author>sweis</author><text>I am confident Facebook will meet your high standards when it comes to E2E encryption for Messenger.</text></item><item><author>etiam</author><text>&quot;End-To-End Encrypted ‘Secret Conversations’&quot; in software that is ordinarily used to harvest electronic phone books and rummage through user photos, from a company that made its whole fortune trying to obliterate privacy as a part of human culture?<p>It&#x27;s going to be pretty high standards of proof to give this anything that resembles credibility.</text></item></parent_chain><comment><author>sweis</author><text>Here&#x27;s a whitepaper to start:
<a href="https:&#x2F;&#x2F;fbnewsroomus.files.wordpress.com&#x2F;2016&#x2F;07&#x2F;secret_conversations_whitepaper.pdf" rel="nofollow">https:&#x2F;&#x2F;fbnewsroomus.files.wordpress.com&#x2F;2016&#x2F;07&#x2F;secret_conv...</a></text></comment> |
10,239,554 | 10,239,151 | 1 | 3 | 10,238,387 | train | <story><title>A Simple AI Capable of Basic Reading Comprehension</title><url>http://blog.ayoungprogrammer.com/2015/09/a-simple-artificial-intelligence.html</url></story><parent_chain></parent_chain><comment><author>kajecounterhack</author><text>The difference between this graph and propositional logic is only that the predicates joining concepts are arbitrary instead of logic operators. In that sense, this is like Google Knowledge Graph &#x2F; Freebase.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Propositional_calculus#Solvers" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Propositional_calculus#Solvers</a><p>Solving a set of propositional logic statements is NP-Complete. I&#x27;d argue &quot;reading comprehension&quot; is actually knowing the state of the world after a piece of text, which requires solving how these predicates interact. For example, if the paragraph is<p><pre><code> Bobby picked up the toy. Then he put down the toy.
</code></pre>
This &quot;semantic memory&quot; does not &quot;comprehend&quot; where the toy is, and this is a relatively simple example. I think the title &quot;basic reading comprehension&quot; is thus inaccurate. Perhaps a better title is &quot;A simple knowledge graph&quot; or &quot;A simple semantic memory&quot;</text></comment> | <story><title>A Simple AI Capable of Basic Reading Comprehension</title><url>http://blog.ayoungprogrammer.com/2015/09/a-simple-artificial-intelligence.html</url></story><parent_chain></parent_chain><comment><author>mratzloff</author><text>Some thoughts about creating a system like this:<p>Any successful implementation of comprehension must progressively enhance the world model based on additional information. Furthermore it must understand some basic rules, such as, &quot;Any subject, set of subjects, or actions can be represented multiple ways.&quot;<p>So if you said, &quot;Mary&#x27;s brother is Sam,&quot; or &quot;Mary has a brother named Sam,&quot; or &quot;Mary&#x27;s brother is named Sam,&quot; the world model must collocate the meanings &quot;Sam&quot; and &quot;brother&quot; for Mary and be able to respond to queries about either.<p>Further, if you mention that John also has a brother named Sam, and then you mention Sam in an ambiguous context, the program should be smart enough to ask, &quot;Which Sam? Mary&#x27;s brother or John&#x27;s?&quot; Infocom games did this; you are building a more flexible world model builder, but the parser would operate similarly.<p>There is also the concept of recency. If I talk about &quot;John&#x27;s brother Sam&quot;, ignoring the fact that pronoun references to &quot;he&quot; should be contextually mapped correctly, and then mention Sam, the program should not need to ask which Sam I mean. It would be like talking to someone who wasn&#x27;t paying attention.<p>Finally, there is also the concept of confidence. In the face of ambiguity that can&#x27;t be resolved, a confidence rating should be assigned based on available information and future answers should be based on that confidence.<p>I suspect that if someone were to create a language parser that could create a mostly-accurate world model AND modify itself based on new rules it read (e.g., &quot;When some says &#x27;he&#x27; after referring to someone&#x27;s name, they are almost certainly talking about the man they previously referred to&quot;), you would be 90% of the way to creating a useful virtual intelligence. It would of course not be able to reason or have opinions of its own, but it would be extremely useful as a virtual assistant that could learn your preferences over time.</text></comment> |
19,459,819 | 19,455,269 | 1 | 2 | 19,454,469 | train | <story><title>So Long, MSDN Blog</title><url>https://ericlippert.com/2019/03/21/so-long-msdn-blog/</url></story><parent_chain><item><author>MrRadar</author><text>In addition to this, on the blogs that were migrated to the new platform (such as Raymond Chen&#x27;s Old New Thing) all of the comments have been purged. That&#x27;s extremely unfortunate because those comments had a lot of useful technical commentary on the blog posts.</text></item></parent_chain><comment><author>el_benhameen</author><text>In a similar vein, I had one particularly obscure winapi bug that was discussed in some old msdn articles and blogs, but with no solution. Only after a few days of ramming my head into my keyboard did I do a wayback search and discover that a now-purged comment on one of the articles had had my solution all along.</text></comment> | <story><title>So Long, MSDN Blog</title><url>https://ericlippert.com/2019/03/21/so-long-msdn-blog/</url></story><parent_chain><item><author>MrRadar</author><text>In addition to this, on the blogs that were migrated to the new platform (such as Raymond Chen&#x27;s Old New Thing) all of the comments have been purged. That&#x27;s extremely unfortunate because those comments had a lot of useful technical commentary on the blog posts.</text></item></parent_chain><comment><author>dao-</author><text>You can still find the comments here:<p><a href="http:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20190301040236&#x2F;https:&#x2F;&#x2F;blogs.msdn.microsoft.com&#x2F;oldnewthing&#x2F;" rel="nofollow">http:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20190301040236&#x2F;https:&#x2F;&#x2F;blogs.msdn...</a></text></comment> |
16,918,784 | 16,918,521 | 1 | 2 | 16,917,534 | train | <story><title>Electric Buses Are Hurting the Oil Industry</title><url>https://www.bloomberg.com/news/articles/2018-04-23/electric-buses-are-hurting-the-oil-industry</url></story><parent_chain><item><author>abakker</author><text>I don&#x27;t know if it really proves anything and it might be OT from your point, but, the confounding variable is that in the US - especially outside of the major urban areas - <i>everything</i> is just very far away in terms of miles. Lacking a car, you can expect life to be very difficult. there are still plenty of places in the US where the range of a tesla might be a borderline problem week-to-week. (though probably not as often as people think and if you plan well)<p>My casual observation is that smaller countries just have a lot more good options when it comes to transit because the total distances are much smaller.</text></item><item><author>danans</author><text>It&#x27;s a strange shift in affairs that China appears to have the greatest incentives (urban pollution, petroleum imports) today to advance clean transportation and energy while the US has stalled or moved backward, at least the Federal level.<p>Western European countries, for whom fossil fuels don&#x27;t seem to be an identity politics issue like in the US, are also making more progress in electrifying their transportation and developing renewable generation - like those massive offshore turbines in the North Sea, or the more comprehensive EV charging networks.<p>Again, they seem to have stronger incentives: high gas&#x2F;petrol prices, higher population density, tense relations with Russia - their big petroleum and natural gas supplier, and the desire to gain an advantage in clean energy technology while the US is seemingly regressing.<p>Perhaps states that have taken the problem seriously - wind in Texas, Iowa, EVs in CA, WA, NY, will carry the torch for the US without the Federal government&#x27;s support.</text></item></parent_chain><comment><author>fsloth</author><text>I think it is well known the car and petrol companies were heavy lobbyists in developing the transit architecture in the US (including zoning and so on) after the second world war. To exaggerate a bit, the entire country was designed to facilitate automobile sales.<p><a href="https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;Effects_of_the_car_on_societies" rel="nofollow">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;Effects_of_the_car_on_societ...</a><p>In the continental europe most of the urban centers predate the automobile hundreds if not thousands of years, thus the existing infrastructure does not use the private automobile as one of the key design constraints.<p>Not so in the US, where huge areas were populated and zoned specifically with the support of the automobile as one of the key constraints.<p>Once the infrastructure has been built using one design constraint, it&#x27;s really expensive and difficult to unravel it.</text></comment> | <story><title>Electric Buses Are Hurting the Oil Industry</title><url>https://www.bloomberg.com/news/articles/2018-04-23/electric-buses-are-hurting-the-oil-industry</url></story><parent_chain><item><author>abakker</author><text>I don&#x27;t know if it really proves anything and it might be OT from your point, but, the confounding variable is that in the US - especially outside of the major urban areas - <i>everything</i> is just very far away in terms of miles. Lacking a car, you can expect life to be very difficult. there are still plenty of places in the US where the range of a tesla might be a borderline problem week-to-week. (though probably not as often as people think and if you plan well)<p>My casual observation is that smaller countries just have a lot more good options when it comes to transit because the total distances are much smaller.</text></item><item><author>danans</author><text>It&#x27;s a strange shift in affairs that China appears to have the greatest incentives (urban pollution, petroleum imports) today to advance clean transportation and energy while the US has stalled or moved backward, at least the Federal level.<p>Western European countries, for whom fossil fuels don&#x27;t seem to be an identity politics issue like in the US, are also making more progress in electrifying their transportation and developing renewable generation - like those massive offshore turbines in the North Sea, or the more comprehensive EV charging networks.<p>Again, they seem to have stronger incentives: high gas&#x2F;petrol prices, higher population density, tense relations with Russia - their big petroleum and natural gas supplier, and the desire to gain an advantage in clean energy technology while the US is seemingly regressing.<p>Perhaps states that have taken the problem seriously - wind in Texas, Iowa, EVs in CA, WA, NY, will carry the torch for the US without the Federal government&#x27;s support.</text></item></parent_chain><comment><author>freddie_mercury</author><text>The OP was talking about China. China is bigger than the continental US. I think the persistent myth about the US&#x27;s size being some unique problem doesn&#x27;t explain much.<p>What&#x27;s more, if you think of the EU as a comparison for the US, with the individual counties as analogues for US states, it seems to explain even less. Belgium and Massachusetts are the same size but over has much better transit options than the other.</text></comment> |
33,953,025 | 33,950,160 | 1 | 3 | 33,945,115 | train | <story><title>I found a bug in SQLite</title><url>https://www.philipotoole.com/how-i-found-a-bug-in-sqlite/</url></story><parent_chain><item><author>adius</author><text>Just a few days ago I found a serious security issue in SQLite: <a href="https:&#x2F;&#x2F;sqlite.org&#x2F;forum&#x2F;forumpost&#x2F;07beac8056151b2f" rel="nofollow">https:&#x2F;&#x2F;sqlite.org&#x2F;forum&#x2F;forumpost&#x2F;07beac8056151b2f</a><p>It was also promptly fixed, but it makes me feel like the millions of tests sound better than they are in reality …</text></item></parent_chain><comment><author>ygra</author><text>Tests usually cannot prove <i>absence</i> of defects. But they can show <i>presence</i> of defects. So yes, a test suite that runs without errors tells you “nothing” in a way. But it&#x27;s a very good safeguard to ensure that code changes don&#x27;t inadvertently introduce unexpected changes.<p>For me it&#x27;s also the case that I think much more thorough about what inputs could be possible and potentially problematic, so there&#x27;s often an extra set of test cases around boundaries of input values that would have never been tried when just quickly throwing together a demo application to showcase and experiment with a new feature.<p>But the fundamental problem that lots of bugs don&#x27;t appear in testing since those code paths are never tested also means that testing alone isn&#x27;t sufficient. But I guess we all know that by now, and combining different kinds of tests with other approaches like code reviews (actual proofs are probably beyond the scope for the vast majority of software projects) is being done all the time to not bet everything on a misguided 100 % code coverage unit test approach that&#x27;s both expensive and fairly useless.</text></comment> | <story><title>I found a bug in SQLite</title><url>https://www.philipotoole.com/how-i-found-a-bug-in-sqlite/</url></story><parent_chain><item><author>adius</author><text>Just a few days ago I found a serious security issue in SQLite: <a href="https:&#x2F;&#x2F;sqlite.org&#x2F;forum&#x2F;forumpost&#x2F;07beac8056151b2f" rel="nofollow">https:&#x2F;&#x2F;sqlite.org&#x2F;forum&#x2F;forumpost&#x2F;07beac8056151b2f</a><p>It was also promptly fixed, but it makes me feel like the millions of tests sound better than they are in reality …</text></item></parent_chain><comment><author>komali2</author><text>I&#x27;m watching engineers re-implement error handling code I wrote line by line over the weeks after they &quot;optimized&quot; my error handling into a oneliner. And as the old bugs crop up when API error responses are weirdly formed, they find themselves adding the edge case code I had added previously.<p>If I had been granted time to add unit tests, those would just function as a source of truth: &quot;sometimes the API returns this kinda weird error, so we handle it. Sometimes this one, so we handle it.&quot; Unit tests are nice for that, all things this given program (the UI in this case) needs to worry about from the various things it talks to (it could talk to a couple different APIs who all have different quirks).<p>I wasn&#x27;t granted time because the API quirks are considered bugs that are being fixed... one day... hence why the oneliner &quot;refactor&quot; was allowed, but regardless, it has been my go to object lesson in why I finally find unit tests useful.</text></comment> |
35,374,901 | 35,374,531 | 1 | 3 | 35,371,182 | train | <story><title>Mach 3.5 Over Libya in an SR-71 Blackbird</title><url>https://www.thesr71blackbird.com/Aircraft/Stories/mach-35-over-libya-in-an-sr-71-blackbird</url></story><parent_chain><item><author>ben7799</author><text>Which is really odd, as Titanium is not that rare.<p>Are we sure that story about the Titanium coming from the USSR is accurate?</text></item><item><author>dghughes</author><text>Also incredible most of the titanium came from the USSR but through indirect routes and suppliers with the Soviets being unaware.</text></item><item><author>geocrasher</author><text>Indeed, Mach 3.5 is the <i>declared</i> top speed in this story, but higher speeds are implied.<p><pre><code> The Mach eases to 3.5 as we crest 80,000 feet... Screaming past Tripoli, our phenomenal speed continues to rise... I realize that I still have my left hand full-forward and we&#x27;re continuing to rocket along in maximum afterburner... The TDI now shows us Mach numbers, not only new to our experience but flat out scary.
</code></pre>
He mentions unusually cool temperatures allowing higher speeds than usual, and the aircraft is performing better than ever. So who knows. 3.6? Did a perfect set of circumstances, mixed with a rather urgent need to depart, take them closer to 3.7?<p>It&#x27;s truly incredible that the A12&#x2F;SR-71 aircraft was designed without the benefit of modern computing. In Ben Rich&#x27;s book &quot;Skunk Works&quot; I recall there a bit about a comment that somebody once made regarding Kelly Johnson, something like &quot;That Swede can <i>see</i> air&quot;. Truly a compliment to Johnson&#x27;s almost uncanny ability to design aircraft for a specification. The U2 was another example of such ability.</text></item></parent_chain><comment><author>philipkglass</author><text>Titanium is very common in the Earth&#x27;s crust. But turning titanium minerals into pure, ductile titanium metal is more energy intensive and complex than making most other metals:<p><a href="https:&#x2F;&#x2F;chem.libretexts.org&#x2F;Bookshelves&#x2F;Inorganic_Chemistry&#x2F;Supplemental_Modules_and_Websites_(Inorganic_Chemistry)&#x2F;Descriptive_Chemistry&#x2F;Elements_Organized_by_Block&#x2F;3_d-Block_Elements&#x2F;Group_04%3A_Transition_Metals&#x2F;Chemistry_of_Titanium" rel="nofollow">https:&#x2F;&#x2F;chem.libretexts.org&#x2F;Bookshelves&#x2F;Inorganic_Chemistry&#x2F;...</a><p>At the time, the USSR had already invested significant resources into making titanium for submarines. Buying titanium under false pretenses was easier than increasing the domestic industrial capacity for making titanium, particularly when the plane was not going to be produced in large numbers.</text></comment> | <story><title>Mach 3.5 Over Libya in an SR-71 Blackbird</title><url>https://www.thesr71blackbird.com/Aircraft/Stories/mach-35-over-libya-in-an-sr-71-blackbird</url></story><parent_chain><item><author>ben7799</author><text>Which is really odd, as Titanium is not that rare.<p>Are we sure that story about the Titanium coming from the USSR is accurate?</text></item><item><author>dghughes</author><text>Also incredible most of the titanium came from the USSR but through indirect routes and suppliers with the Soviets being unaware.</text></item><item><author>geocrasher</author><text>Indeed, Mach 3.5 is the <i>declared</i> top speed in this story, but higher speeds are implied.<p><pre><code> The Mach eases to 3.5 as we crest 80,000 feet... Screaming past Tripoli, our phenomenal speed continues to rise... I realize that I still have my left hand full-forward and we&#x27;re continuing to rocket along in maximum afterburner... The TDI now shows us Mach numbers, not only new to our experience but flat out scary.
</code></pre>
He mentions unusually cool temperatures allowing higher speeds than usual, and the aircraft is performing better than ever. So who knows. 3.6? Did a perfect set of circumstances, mixed with a rather urgent need to depart, take them closer to 3.7?<p>It&#x27;s truly incredible that the A12&#x2F;SR-71 aircraft was designed without the benefit of modern computing. In Ben Rich&#x27;s book &quot;Skunk Works&quot; I recall there a bit about a comment that somebody once made regarding Kelly Johnson, something like &quot;That Swede can <i>see</i> air&quot;. Truly a compliment to Johnson&#x27;s almost uncanny ability to design aircraft for a specification. The U2 was another example of such ability.</text></item></parent_chain><comment><author>smburdick</author><text>I think it&#x27;s mostly anecdotal (I have heard it too, but I can&#x27;t think of where)<p>Not a metallurgist, but if I had to guess it was hard to find in large enough quantities at the time. I also understand that it&#x27;s a lot harder to work with than say aluminum or steel<p>Speaking of which, King Louis served his guests with aluminum silverware, since at the time it was more valuable than gold due to the difficulty of extracting it at the time, despite its abundance.</text></comment> |
36,145,866 | 36,145,963 | 1 | 2 | 36,144,674 | train | <story><title>OpenAPI v4 (aka Moonwalk) Proposal</title><url>https://github.com/OAI/moonwalk</url></story><parent_chain><item><author>mbell</author><text>I&#x27;ve tried using OpenAPI a few times, it&#x27;s been...lackluster... I probably won&#x27;t use it again.<p>Here are my gripes:<p>1) For me one of the biggest selling points is client code gen (<a href="https:&#x2F;&#x2F;github.com&#x2F;OpenAPITools&#x2F;openapi-generator">https:&#x2F;&#x2F;github.com&#x2F;OpenAPITools&#x2F;openapi-generator</a>). Basically it sucks, or at least it sucks in enough languages to spoil it. The value prop here is define the API once, code gen the client for Ruby, Python and Scala (or insert your languages here). Often there are a half dozen clients for each language, often they are simply broken (the generated code just straight up doesn&#x27;t compile). Of the ones that do work, you get random PRs accepted that impose a completely different ideological approach to how the client works. It really seems like any PR is accepted with no overarching guidance.<p>2) JSONSchema is too limited. We use it for a lot of things, but it just makes some things incredibly hard. This is compounded by the seemingly limitless number of version or drafts of the spec. If your goal is interop, which it probably is if you are using JSON, you have to go our and research what the lower common denominator draft spec JSONSchema support is for the various languages you want to use and limit yourself to that (probably draft 4, or draft 7).<p>On the pros side:<p>It does make pretty docs - kinda wish it would just focus on this and in the process not be as strict, I think it would be a better project.</text></item></parent_chain><comment><author>GOATS-</author><text>I find it odd that you&#x27;ve struggled so much with generating API clients. I&#x27;ve generated C# and TypeScript (Angular&#x27;s HttpClient and React Query) clients for my API and never had any issues with them. With that being said, I didn&#x27;t use OpenAPI&#x27;s Java-based code generators and rather used ones made by third-party developers such as NSwag[0] and openapi-codegen[1].<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;RicoSuter&#x2F;NSwag">https:&#x2F;&#x2F;github.com&#x2F;RicoSuter&#x2F;NSwag</a><p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;fabien0102&#x2F;openapi-codegen">https:&#x2F;&#x2F;github.com&#x2F;fabien0102&#x2F;openapi-codegen</a></text></comment> | <story><title>OpenAPI v4 (aka Moonwalk) Proposal</title><url>https://github.com/OAI/moonwalk</url></story><parent_chain><item><author>mbell</author><text>I&#x27;ve tried using OpenAPI a few times, it&#x27;s been...lackluster... I probably won&#x27;t use it again.<p>Here are my gripes:<p>1) For me one of the biggest selling points is client code gen (<a href="https:&#x2F;&#x2F;github.com&#x2F;OpenAPITools&#x2F;openapi-generator">https:&#x2F;&#x2F;github.com&#x2F;OpenAPITools&#x2F;openapi-generator</a>). Basically it sucks, or at least it sucks in enough languages to spoil it. The value prop here is define the API once, code gen the client for Ruby, Python and Scala (or insert your languages here). Often there are a half dozen clients for each language, often they are simply broken (the generated code just straight up doesn&#x27;t compile). Of the ones that do work, you get random PRs accepted that impose a completely different ideological approach to how the client works. It really seems like any PR is accepted with no overarching guidance.<p>2) JSONSchema is too limited. We use it for a lot of things, but it just makes some things incredibly hard. This is compounded by the seemingly limitless number of version or drafts of the spec. If your goal is interop, which it probably is if you are using JSON, you have to go our and research what the lower common denominator draft spec JSONSchema support is for the various languages you want to use and limit yourself to that (probably draft 4, or draft 7).<p>On the pros side:<p>It does make pretty docs - kinda wish it would just focus on this and in the process not be as strict, I think it would be a better project.</text></item></parent_chain><comment><author>simplesager</author><text>I&#x27;m working on a company <a href="https:&#x2F;&#x2F;speakeasyapi.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;speakeasyapi.dev&#x2F;</a> with the goal of helping companies in this ecosystem get great production quality client sdks, terraform providers, cli(s) and all the developer surfaces you may want supported for our API. We also manage the spec and publishing workflow for you so all you have to do is build your API and we&#x27;ll do the rest.<p>Feel free to email me at [email protected] or join our slack (<a href="https:&#x2F;&#x2F;join.slack.com&#x2F;t&#x2F;speakeasy-dev&#x2F;shared_invite&#x2F;zt-1cwb3flxz-lS5SyZxAsF_3NOq5xc8Cjw" rel="nofollow">https:&#x2F;&#x2F;join.slack.com&#x2F;t&#x2F;speakeasy-dev&#x2F;shared_invite&#x2F;zt-1cwb...</a>) . We&#x27;re in open beta and working with a few great companies already and we&#x27;d be happy for you to try out the platform for free!</text></comment> |
18,907,186 | 18,907,153 | 1 | 3 | 18,904,478 | train | <story><title>Slack Plans to Follow Spotify on Unconventional IPO Route</title><url>https://www.wsj.com/articles/slack-planning-to-pursue-direct-listing-11547202723</url></story><parent_chain><item><author>joecasson</author><text>One of the big roles an Investment Bank plays in organizing an IPO is building brand awareness and product understanding with potential investors. Places like Slack and Spotify likely feel that 1) their product has sufficient market awareness and 2) is fairly intuitive to understand. So, why spend the $$$ on an expensive middle-man if you don&#x27;t need it? (Provided that you can hire a competent legal team to organize the process for you!)</text></item></parent_chain><comment><author>rrdharan</author><text>Spotify ended up spending the same amount of money on expensive middle men:<p><a href="https:&#x2F;&#x2F;www.bloomberg.com&#x2F;opinion&#x2F;articles&#x2F;2018-01-16&#x2F;spotify-will-pay-banks-to-cut-out-the-banks" rel="nofollow">https:&#x2F;&#x2F;www.bloomberg.com&#x2F;opinion&#x2F;articles&#x2F;2018-01-16&#x2F;spotif...</a><p>To me it just seems like a form of fancy marketing.</text></comment> | <story><title>Slack Plans to Follow Spotify on Unconventional IPO Route</title><url>https://www.wsj.com/articles/slack-planning-to-pursue-direct-listing-11547202723</url></story><parent_chain><item><author>joecasson</author><text>One of the big roles an Investment Bank plays in organizing an IPO is building brand awareness and product understanding with potential investors. Places like Slack and Spotify likely feel that 1) their product has sufficient market awareness and 2) is fairly intuitive to understand. So, why spend the $$$ on an expensive middle-man if you don&#x27;t need it? (Provided that you can hire a competent legal team to organize the process for you!)</text></item></parent_chain><comment><author>neom</author><text>Banks also provide medium term price stability for high volume IPOs, these are not high volume IPOs however, so there is an inherent stability.</text></comment> |
11,184,847 | 11,184,238 | 1 | 2 | 11,183,208 | train | <story><title>Raspberry Pi 3 Model B confirmed, with onboard BT LE and WiFi</title><url>https://apps.fcc.gov/oetcf/eas/reports/ViewExhibitReport.cfm?mode=Exhibits&calledFromFrame=N&application_id=Ti%2FYleaJNSl%2BTR5mL5C0WQ%3D%3D&fcc_id=2ABCB-RPI32</url></story><parent_chain><item><author>rb808</author><text>I must be the only one disappointed with old-school games. I was super excited to set up a retropie, after 20 minutes playing the nostalgia wore off quickly. Anyone else find the same?</text></item><item><author>_lce0</author><text>Raspberry is the most important project that made my family interested in &quot;computer things&quot;<p>It gathered the whole family together to play old couch-games[0], something that most powerful consoles haven&#x27;t even been close --specially with the grampas<p>Really exited about what the future will bring us!<p>0: <a href="http:&#x2F;&#x2F;emulationstation.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;emulationstation.org&#x2F;</a></text></item></parent_chain><comment><author>aluhut</author><text>I have a collection of old C64 games flying around on some of my external drives. Never got to play them. But one day I remembered Deuteros. An old Amiga game. I made it through the whole game back then without knowing English at all. I was so proud back then, I had to pick it up. I couldn&#x27;t believe it but I played it through all the way again. I really can&#x27;t say what it was exactly but I guess it was the flashback. The sounds, the graphics and understanding!<p>I continued with Lure of the Temptress. I only had a buggy version where you couldn&#x27;t save. I played this with 3 other people. Beginning every Friday. Ending on Sunday... It was fantastic to finally finish it and being able to save.<p>But if I look at all the games I had back then, most of them are not worth it, but if you seriously look at it: they never were ;)</text></comment> | <story><title>Raspberry Pi 3 Model B confirmed, with onboard BT LE and WiFi</title><url>https://apps.fcc.gov/oetcf/eas/reports/ViewExhibitReport.cfm?mode=Exhibits&calledFromFrame=N&application_id=Ti%2FYleaJNSl%2BTR5mL5C0WQ%3D%3D&fcc_id=2ABCB-RPI32</url></story><parent_chain><item><author>rb808</author><text>I must be the only one disappointed with old-school games. I was super excited to set up a retropie, after 20 minutes playing the nostalgia wore off quickly. Anyone else find the same?</text></item><item><author>_lce0</author><text>Raspberry is the most important project that made my family interested in &quot;computer things&quot;<p>It gathered the whole family together to play old couch-games[0], something that most powerful consoles haven&#x27;t even been close --specially with the grampas<p>Really exited about what the future will bring us!<p>0: <a href="http:&#x2F;&#x2F;emulationstation.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;emulationstation.org&#x2F;</a></text></item></parent_chain><comment><author>nkrisc</author><text>I think some of that has to do with the fact that a lot of those older games aren&#x27;t really as fun as we remembered them to be.<p>There&#x27;s some classic gems, to be sure, but they were also all we had.</text></comment> |
23,789,227 | 23,787,652 | 1 | 3 | 23,785,063 | train | <story><title>Boom supersonic jet readies for rollout</title><url>https://www.airlineratings.com/news/boom-supersonic-jet-readies-rollout/</url></story><parent_chain><item><author>DomenicoMazza</author><text>If I recall correctly the Concorde used about 2 tonnes of fuel rolling on the ground alone.. I wonder how this new aircraft fares for fuel consumption?<p>I believe the Concorde is a marvel. You could travel faster than the rotation of the earth in it! However I don’t think we need more environmentally unsustainable travel.</text></item></parent_chain><comment><author>agurk</author><text>Looking at the Concorde&#x27;s fuel usage taxing is only part of the picture. All turbine engines are very inefficient at low power outputs due to the need to use energy to create sufficient compression for them to function. On top of this the Olympus engines generated a lot of thrust at idle, so much so that only two were used for taxing and it was still apparently tricky to control.<p>While cruising at supersonic speeds the engines were actually the most efficient machines of their time achieving 43% thermal efficiency [0]. Despite being very efficient they still had high fuel consumption rates as the total amount of energy required to sustain those speeds is a lot higher than subsonic.<p>Modern jet are in the 50%s thermally efficient [1] but despite airframe improvements there has been no way to improve fundamental aerodynamics so that supersonic energy costs aren&#x27;t high.<p>The Concorde did use reheat to take off and break the supersonic barrier which is very fuel inefficient.<p>Using a modern airframes and engines that also don&#x27;t need reheat will reduce fuel consumption but not to a level anywhere similar to a modern jetliner.<p>[0] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Rolls-Royce&#x2F;Snecma_Olympus_593" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Rolls-Royce&#x2F;Snecma_Olympus_593</a><p>[1] <a href="https:&#x2F;&#x2F;www.nap.edu&#x2F;read&#x2F;23490&#x2F;chapter&#x2F;6#38" rel="nofollow">https:&#x2F;&#x2F;www.nap.edu&#x2F;read&#x2F;23490&#x2F;chapter&#x2F;6#38</a></text></comment> | <story><title>Boom supersonic jet readies for rollout</title><url>https://www.airlineratings.com/news/boom-supersonic-jet-readies-rollout/</url></story><parent_chain><item><author>DomenicoMazza</author><text>If I recall correctly the Concorde used about 2 tonnes of fuel rolling on the ground alone.. I wonder how this new aircraft fares for fuel consumption?<p>I believe the Concorde is a marvel. You could travel faster than the rotation of the earth in it! However I don’t think we need more environmentally unsustainable travel.</text></item></parent_chain><comment><author>dreamcompiler</author><text>&gt; You could travel faster than the rotation of the earth in it!<p>You can do that in a conventional jet at latitudes far from the equator. You can <i>walk</i> faster than the earth rotates if you&#x27;re very close to a pole (very very close).</text></comment> |
9,516,407 | 9,516,149 | 1 | 2 | 9,516,093 | train | <story><title>UN Experts Say TPP and Fast Track Threaten Human Rights</title><url>https://www.eff.org/deeplinks/2015/05/how-tpp-and-fast-track-threaten-human-rights</url></story><parent_chain></parent_chain><comment><author>jimrandomh</author><text>&gt; They allow investors to sue nations over legislative and administrative rules alleging that they harm their profits.<p>This is much bigger than copyright. This is removing substantive power from existing governments and transferring it to a new structure. The fast-tracking should be seen, not just as evading scrutiny by the public, but also as evading scrutiny by Congress and by other legislatures whose power is being stolen from them. When you write your representative, you might warn them that this puts them on track to end up like the Queen of England: powerless figureheads.</text></comment> | <story><title>UN Experts Say TPP and Fast Track Threaten Human Rights</title><url>https://www.eff.org/deeplinks/2015/05/how-tpp-and-fast-track-threaten-human-rights</url></story><parent_chain></parent_chain><comment><author>mark_l_watson</author><text>One of the things I most like about the EFF is that they increase the transparency of back room deals that help special interests to the detriment of the general public.<p>A little off topic, but in the last day I have found two public data sites that increase transparency in government finances at the local, state, and federal level: <a href="http:&#x2F;&#x2F;www.statedatalab.org" rel="nofollow">http:&#x2F;&#x2F;www.statedatalab.org</a> and <a href="http:&#x2F;&#x2F;www.truthinaccounting.org" rel="nofollow">http:&#x2F;&#x2F;www.truthinaccounting.org</a></text></comment> |
14,205,210 | 14,205,290 | 1 | 3 | 14,201,908 | train | <story><title>A vigilante trying to improve IoT security</title><url>https://gizmodo.com/this-hacker-is-my-new-hero-1794630960</url></story><parent_chain><item><author>kbuchanan</author><text>This captures the essence of the type of activism that I so dislike — an unaffected, third party (a person who doesn&#x27;t use your bluetooth lightbulb) taking the job upon himself to tell <i>you</i> what level of security <i>your</i> lightbulb should employ... By breaking it.</text></item><item><author>adamclarkestes</author><text>I&#x27;m the author of the Gizmodo post. Having covered IoT hacks for a few years, it&#x27;s obvious that drastic measures would be necessary to convince manufacturers to build more secure products. While I&#x27;m not necessarily endorsing this hacker&#x27;s methods, I do salute his taking a stand. It might land him in jail. But still, the mission is worthwhile.</text></item><item><author>086421357909764</author><text>It&#x27;s all fine and well until one of those improperly configured devices are a medical device or something critical. Yes I understand that&#x27;s part of the problem, but proving a point with risk isn&#x27;t the right answer either. Every Dialysis machine i&#x27;ve seen runs windows xp, which any security professional will tell you is game over, but given the market hasn&#x27;t provided an alternative, it&#x27;s becomes a necessity to figure out how to protect these improperly updated &#x2F; configured &#x2F; designed devices.<p>Fandom of actions that impact others in a negative way is bad, and one day someone will do something they feel is right that impacts you and you&#x27;ll say.. well that&#x27;s not fair.</text></item></parent_chain><comment><author>jerf</author><text>We&#x27;re not unaffected anymore. Mirai did a lot of damage to a lot of people. Very diffuse damage, sure, but a lot of damage.<p>Note we&#x27;ve had worms and such for decades now and most of them don&#x27;t deliberately break things. It&#x27;s generally far more profitable to exploit the resources than simply destroy them. Brickerbot almost certainly wouldn&#x27;t be if we weren&#x27;t all getting affected.</text></comment> | <story><title>A vigilante trying to improve IoT security</title><url>https://gizmodo.com/this-hacker-is-my-new-hero-1794630960</url></story><parent_chain><item><author>kbuchanan</author><text>This captures the essence of the type of activism that I so dislike — an unaffected, third party (a person who doesn&#x27;t use your bluetooth lightbulb) taking the job upon himself to tell <i>you</i> what level of security <i>your</i> lightbulb should employ... By breaking it.</text></item><item><author>adamclarkestes</author><text>I&#x27;m the author of the Gizmodo post. Having covered IoT hacks for a few years, it&#x27;s obvious that drastic measures would be necessary to convince manufacturers to build more secure products. While I&#x27;m not necessarily endorsing this hacker&#x27;s methods, I do salute his taking a stand. It might land him in jail. But still, the mission is worthwhile.</text></item><item><author>086421357909764</author><text>It&#x27;s all fine and well until one of those improperly configured devices are a medical device or something critical. Yes I understand that&#x27;s part of the problem, but proving a point with risk isn&#x27;t the right answer either. Every Dialysis machine i&#x27;ve seen runs windows xp, which any security professional will tell you is game over, but given the market hasn&#x27;t provided an alternative, it&#x27;s becomes a necessity to figure out how to protect these improperly updated &#x2F; configured &#x2F; designed devices.<p>Fandom of actions that impact others in a negative way is bad, and one day someone will do something they feel is right that impacts you and you&#x27;ll say.. well that&#x27;s not fair.</text></item></parent_chain><comment><author>rblatz</author><text><a href="https:&#x2F;&#x2F;www.theguardian.com&#x2F;technology&#x2F;2016&#x2F;oct&#x2F;26&#x2F;ddos-attack-dyn-mirai-botnet" rel="nofollow">https:&#x2F;&#x2F;www.theguardian.com&#x2F;technology&#x2F;2016&#x2F;oct&#x2F;26&#x2F;ddos-atta...</a><p>Very few people that use the internet were unaffected by shitty IoT security. And that seems like it was just the start of it&#x27;s capabilities. Something needs to be done to destroy these cyber weapons. If your stupid light bulb is recruited into a cyber weapon, then it should be prevented from harming others.</text></comment> |
19,242,557 | 19,242,466 | 1 | 2 | 19,242,191 | train | <story><title>Drafting Only Men for the Military Is Unconstitutional, Judge Rules</title><url>https://www.nytimes.com/2019/02/24/us/military-draft-men-unconstitutional.html</url></story><parent_chain><item><author>randyrand</author><text>How would that work? If there were 80 women left and only 20 men would the expectation really be that the remaining men knock up 4 women each? That doesn’t seem like it would ever fit our social norms and seems like a completely unimportant point.</text></item><item><author>WalterBright</author><text>There have been several wars where the slaughter of men was so extreme that the countries involved would have collapsed if the women were slaughtered as well, because the population could not have rebounded.<p>I heard long ago (sorry, no reference) that the average French soldier was a couple inches shorter in WW2 than in WW1, which was attributed to the male slaughter (though I suspect that food shortages were a more likely cause).<p>In France and Germany, after WW1 and WW2, it became commonplace for the women to marry foreigners and old men. I don&#x27;t know if that happened in Britain as well.<p>Baby booms are common after the end of terrible wars. I read once that people were copulating in the streets of London after the WW1 armistice was declared.</text></item></parent_chain><comment><author>jackpirate</author><text>In 1871, only 12% of Paraguayans were male due to massive losses in war. Women were happy to share men in order to have babies.<p><a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;AskHistorians&#x2F;comments&#x2F;9hg68w&#x2F;in_1871_only_about_12_of_paraguayans_were_male&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;AskHistorians&#x2F;comments&#x2F;9hg68w&#x2F;in_18...</a></text></comment> | <story><title>Drafting Only Men for the Military Is Unconstitutional, Judge Rules</title><url>https://www.nytimes.com/2019/02/24/us/military-draft-men-unconstitutional.html</url></story><parent_chain><item><author>randyrand</author><text>How would that work? If there were 80 women left and only 20 men would the expectation really be that the remaining men knock up 4 women each? That doesn’t seem like it would ever fit our social norms and seems like a completely unimportant point.</text></item><item><author>WalterBright</author><text>There have been several wars where the slaughter of men was so extreme that the countries involved would have collapsed if the women were slaughtered as well, because the population could not have rebounded.<p>I heard long ago (sorry, no reference) that the average French soldier was a couple inches shorter in WW2 than in WW1, which was attributed to the male slaughter (though I suspect that food shortages were a more likely cause).<p>In France and Germany, after WW1 and WW2, it became commonplace for the women to marry foreigners and old men. I don&#x27;t know if that happened in Britain as well.<p>Baby booms are common after the end of terrible wars. I read once that people were copulating in the streets of London after the WW1 armistice was declared.</text></item></parent_chain><comment><author>WalterBright</author><text>Social norms tend to get suspended when mugged by reality. In your scenario, given no other supply of men (foreigners, old men) I would expect polygamy to become tacitly acceptable.</text></comment> |
18,338,353 | 18,337,442 | 1 | 3 | 18,336,202 | train | <story><title>Why Jupyter is data scientists’ computational notebook of choice</title><url>https://www.nature.com/articles/d41586-018-07196-1</url></story><parent_chain><item><author>makmanalp</author><text>The majority of the complaints I hear about notebooks I think come from a misunderstanding of what they&#x27;re supposed to be. It&#x27;s a mashup between a scientific paper and a repl. So it&#x27;s useful for a bit of both:<p>a) Just like with a paper, you can present scientific or mathematical ideas with accompanying visualizations or simulations. From the REPL side, as a bonus, you get interactivity, and the reader can pause and experiment with the examples you&#x27;re giving to improve their understanding or test their hypotheses. If I change this variable, how will the system react? You can just try it!<p>b) Just like with a REPL, you can type in and execute commands step by step, viewing the output of the previous command instead of running the whole thing at once. From the document side, as a bonus, you get nicer presentation (charts, interactivity, nice and wide sortable tables, etc) than you would in a shell, which comes in handy when doing things like data exploration or mathematical simulation.<p>It&#x27;s decidedly NOT there for you to type all your code in like an editor and make a huge mess. It&#x27;s apples and oranges w.r.t and a poor substitute for something like PyCharm or VS Code or vim. It is there for you to a) try things out yourself, and whatever you discover hopefully eventually make it into proper python modules b) make interesting ideas presentable and explorable for others. That&#x27;s all!<p>When I see stuff like &quot;out of order execution is confusing&quot;, I don&#x27;t disagree, but it does make me wonder how long and convoluted the notebooks these people work with are - probably a ripe candidate to refactor stuff out into python modules as functions. When I see stuff around notebooks for &quot;reproducibility&quot;, I&#x27;m a bit confused in that notebooks often don&#x27;t specify any guidance on installation and dependencies, let alone things like arguments and options that a regular old script would. In that regard I think it&#x27;s barely an improvement over .py files lying around. When I hear &quot;how do I import a notebook like a python module&quot;, I&#x27;m very very scared.<p>Granted, I&#x27;ve seen huge notebooks that are a mess, so I understand the frustration, but it&#x27;s not like we all haven&#x27;t seen the single file of code with 5000 lines and 10 nested layers of conditionals at some point in our lives.</text></item></parent_chain><comment><author>neuromantik8086</author><text>&gt; When I see stuff around notebooks for &quot;reproducibility&quot;, I&#x27;m a bit confused in that notebooks often don&#x27;t specify any guidance on installation and dependencies, let alone things like arguments and options that a regular old script would.<p>At the core of this, as some others may have already alluded to already, is that many academic scientists have not been socialized to make a distinction between development and production environments. Jupyter notebooks are clearly beneficial for sandboxing and trying out analyses creatively (with many wrong turns) before running &quot;production&quot; analyses, which ideally should be the ones that are reproducible. For many scientific papers, the analysis stops at &quot;I was messing around in SPSS and MATLAB at 3 AM and got this result&quot; without much consideration for reformulating what the researcher did and rewriting code&#x2F;scripts so that they can be re-run consistently.</text></comment> | <story><title>Why Jupyter is data scientists’ computational notebook of choice</title><url>https://www.nature.com/articles/d41586-018-07196-1</url></story><parent_chain><item><author>makmanalp</author><text>The majority of the complaints I hear about notebooks I think come from a misunderstanding of what they&#x27;re supposed to be. It&#x27;s a mashup between a scientific paper and a repl. So it&#x27;s useful for a bit of both:<p>a) Just like with a paper, you can present scientific or mathematical ideas with accompanying visualizations or simulations. From the REPL side, as a bonus, you get interactivity, and the reader can pause and experiment with the examples you&#x27;re giving to improve their understanding or test their hypotheses. If I change this variable, how will the system react? You can just try it!<p>b) Just like with a REPL, you can type in and execute commands step by step, viewing the output of the previous command instead of running the whole thing at once. From the document side, as a bonus, you get nicer presentation (charts, interactivity, nice and wide sortable tables, etc) than you would in a shell, which comes in handy when doing things like data exploration or mathematical simulation.<p>It&#x27;s decidedly NOT there for you to type all your code in like an editor and make a huge mess. It&#x27;s apples and oranges w.r.t and a poor substitute for something like PyCharm or VS Code or vim. It is there for you to a) try things out yourself, and whatever you discover hopefully eventually make it into proper python modules b) make interesting ideas presentable and explorable for others. That&#x27;s all!<p>When I see stuff like &quot;out of order execution is confusing&quot;, I don&#x27;t disagree, but it does make me wonder how long and convoluted the notebooks these people work with are - probably a ripe candidate to refactor stuff out into python modules as functions. When I see stuff around notebooks for &quot;reproducibility&quot;, I&#x27;m a bit confused in that notebooks often don&#x27;t specify any guidance on installation and dependencies, let alone things like arguments and options that a regular old script would. In that regard I think it&#x27;s barely an improvement over .py files lying around. When I hear &quot;how do I import a notebook like a python module&quot;, I&#x27;m very very scared.<p>Granted, I&#x27;ve seen huge notebooks that are a mess, so I understand the frustration, but it&#x27;s not like we all haven&#x27;t seen the single file of code with 5000 lines and 10 nested layers of conditionals at some point in our lives.</text></item></parent_chain><comment><author>taeric</author><text>You parting &quot;Granted...&quot; is precisely what fills me with dread when I see notebooks. Yes, I have seen poorly done source files. I made more than a few myself. However, many of the practices we have grown into as sound programming advice seem to be largely thrown out the window for these notebooks.<p>The irony, to me, is that I actually typically argue for the mixing of presentation and content. But to me, notebooks look like an attempt by people to make a WYSIWYG out of JUnit&#x2F;TestNG&#x2F;whatever style reports. Only, without the repeatability.<p>There is also the entire bend where these are taking off in a way that doesn&#x27;t make sense. Do they do the things you are saying? Well, yeah. But no better than plenty of tools before them. Mathematica and Matlab both had &quot;notebook&quot; like features for a long long time. Complete with optimized libraries. And this is ignoring the interactivity of the old LISP machines. (You can see from my history I have a soft spot for emacs org-mode.)<p>Jupyter is a lot of things. Bad isn&#x27;t necessarily one of them, but exceptional isn&#x27;t, either. Heavily marketed is.</text></comment> |
17,587,908 | 17,586,103 | 1 | 2 | 17,584,947 | train | <story><title>What Makes a McMansion Bad Architecture? (2016)</title><url>http://mcmansionhell.com/post/148605513816/mcmansions-101-what-makes-a-mcmansion-bad</url></story><parent_chain><item><author>mattkevan</author><text>The McMansions featured here look like they’ve been generated by some deep learning algorithm - building features blobbed randomly together with no rhyme or reason.</text></item></parent_chain><comment><author>nomel</author><text>As someone living in the Bay Area, I think it looks amazing and would genuinely love to live in it.</text></comment> | <story><title>What Makes a McMansion Bad Architecture? (2016)</title><url>http://mcmansionhell.com/post/148605513816/mcmansions-101-what-makes-a-mcmansion-bad</url></story><parent_chain><item><author>mattkevan</author><text>The McMansions featured here look like they’ve been generated by some deep learning algorithm - building features blobbed randomly together with no rhyme or reason.</text></item></parent_chain><comment><author>marsrover</author><text>So many houses like this in suburban Atlanta.</text></comment> |
25,846,866 | 25,846,675 | 1 | 2 | 25,843,874 | train | <story><title>Kids find a security flaw in Linux Mint by mashing keys</title><url>https://github.com/linuxmint/cinnamon-screensaver/issues/354</url></story><parent_chain><item><author>datenwolf</author><text>It&#x27;s not an X11 design flaw. The very concept of locking the screen is flawed. A flaw that also haunts Wayland, BTW.<p>The concept of screen lockers is having a special layer, that can&#x27;t be bypassed, which a locker creates. The whole security then hinges on the locker not crashing. X11 does have such a layer. Wayland compositors also implement it through such a layer. And for either the situation is, that if the locker crashes, that layer is destroyed by implication and the session exposed.<p>That&#x27;s a flawed concept.<p>What you really want is <i>detachable</i> graphics session. On the text console one can effortlessly use screen or tmux and to &quot;lock&quot; the session simply detach and exit to the regular login getty.<p>You want <i>exactly</i> the same, but for X11. And there&#x27;s no obstacle in printiple to implement this. It&#x27;s just that the Xorg server can&#x27;t detach. Almost all of the required code is there, fundamentally it&#x27;d be the same code that&#x27;s executed during a VT switch.<p>In the meantime one can use Xpra with Xvfb to create detachable X11 sessions, which then however lack GPU acceleration.</text></item><item><author>astrange</author><text>Bad design in X11 which can&#x27;t be fixed.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25801693" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25801693</a></text></item><item><author>gambiting</author><text>Does anyone know why lockscreens in Linux have been such a joke? I remember trying Ubuntu couple years ago and when waking up my laptop it would show me my entire desktop with all the information displayed right there in the open for about 10-20 seconds before suddenly engaging the lockscreen. All you had to do was close the lid and open it again and you could just copy whatever was on the screen before the lock screen appeared. I guess it&#x27;s because the lockscreen was a separate process that had to start up? Still, what an awful awful design.</text></item></parent_chain><comment><author>shawnz</author><text>The architecture you&#x27;re describing would also be good for other reasons. For example, you could start a local session, lock it, and then remotely connect to the same session over VNC without local users at the workstation being able to see or interfere with what you are doing, just as on Windows.<p>Mac OS almost gets this right, except it annoyingly defaults to sharing the remote session with the local console unless someone is already logged in locally.</text></comment> | <story><title>Kids find a security flaw in Linux Mint by mashing keys</title><url>https://github.com/linuxmint/cinnamon-screensaver/issues/354</url></story><parent_chain><item><author>datenwolf</author><text>It&#x27;s not an X11 design flaw. The very concept of locking the screen is flawed. A flaw that also haunts Wayland, BTW.<p>The concept of screen lockers is having a special layer, that can&#x27;t be bypassed, which a locker creates. The whole security then hinges on the locker not crashing. X11 does have such a layer. Wayland compositors also implement it through such a layer. And for either the situation is, that if the locker crashes, that layer is destroyed by implication and the session exposed.<p>That&#x27;s a flawed concept.<p>What you really want is <i>detachable</i> graphics session. On the text console one can effortlessly use screen or tmux and to &quot;lock&quot; the session simply detach and exit to the regular login getty.<p>You want <i>exactly</i> the same, but for X11. And there&#x27;s no obstacle in printiple to implement this. It&#x27;s just that the Xorg server can&#x27;t detach. Almost all of the required code is there, fundamentally it&#x27;d be the same code that&#x27;s executed during a VT switch.<p>In the meantime one can use Xpra with Xvfb to create detachable X11 sessions, which then however lack GPU acceleration.</text></item><item><author>astrange</author><text>Bad design in X11 which can&#x27;t be fixed.<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25801693" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25801693</a></text></item><item><author>gambiting</author><text>Does anyone know why lockscreens in Linux have been such a joke? I remember trying Ubuntu couple years ago and when waking up my laptop it would show me my entire desktop with all the information displayed right there in the open for about 10-20 seconds before suddenly engaging the lockscreen. All you had to do was close the lid and open it again and you could just copy whatever was on the screen before the lock screen appeared. I guess it&#x27;s because the lockscreen was a separate process that had to start up? Still, what an awful awful design.</text></item></parent_chain><comment><author>zadler</author><text>It’s amazing to me that The most popular display managers on Linux have this flaw. Perhaps there is a workaround involving switching to another tty?</text></comment> |
34,931,551 | 34,929,922 | 1 | 2 | 34,929,309 | train | <story><title>How to weaponize the Yubikey (2019)</title><url>https://www.blackhillsinfosec.com/how-to-weaponize-the-yubikey/</url></story><parent_chain></parent_chain><comment><author>neilv</author><text>&gt; <i>A couple of years ago, I had a YubiKey that was affected by a security vulnerability, and to fix the issue, Yubico sent me a brand new YubiKey for free.</i><p>Opening with that, this could&#x27;ve been a story about sending trojan YubiKeys to high-value targets.<p>(For example, trojan might do stealthy exfiltration of stored data via cellular, have cloned hardware IDs&#x2F;secrets to aid other attack, be a sleeper that doesn&#x27;t hack and risk detection until heuristics on stored data suggest high-value opportunity, etc. Things for which there&#x27;s an advantage to it being in a YubiKey rather than USB Storage.)<p>&quot;Hi, this is totally Yubico writing to you. Your YubiKey was affected by a security vulnerability. Please use the enclosed free replacement, which has corrected the problem. For all your most sensitive security needs.&quot;</text></comment> | <story><title>How to weaponize the Yubikey (2019)</title><url>https://www.blackhillsinfosec.com/how-to-weaponize-the-yubikey/</url></story><parent_chain></parent_chain><comment><author>NoraCodes</author><text>This is a neat concept - especially because, unlike a USB Rubber Ducky that <i>looks</i> like a Yubikey, you can actually demonstrate that your Yubikey-as-weapon <i>is</i> a Yubikey. Very devious!</text></comment> |
19,964,524 | 19,963,880 | 1 | 2 | 19,962,778 | train | <story><title>Employing QUIC Protocol to Optimize Uber’s App Performance</title><url>https://eng.uber.com/employing-quic-protocol/</url></story><parent_chain></parent_chain><comment><author>ctime</author><text>This YouTube video does a great job illustrating how well HTTP&#x2F;2 works in practice.<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=QCEid2WCszM" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=QCEid2WCszM</a><p>A lesser known *ownside to HTTP&#x2F;2 over TCP solution was actually caused by one of the improvements - a single reusable (multiplexed) connection - that could end up stalled or blocked due to network issues. This behavior could go unnoticed over the legacy HTTP&#x2F;1.1 connections due to browsers opening a hugh number of connections (~20) to a host, so when one would fail it wouldn&#x27;t block everything.</text></comment> | <story><title>Employing QUIC Protocol to Optimize Uber’s App Performance</title><url>https://eng.uber.com/employing-quic-protocol/</url></story><parent_chain></parent_chain><comment><author>internals</author><text>What a great case study. Successfully shifting 80% of mobile traffic to QUIC for a 50% reduction in latency is amazing. QUIC and the ongoing work with multipath TCP&#x2F;QUIC will be huge QoL improvements for mobile networking.</text></comment> |
17,739,528 | 17,739,541 | 1 | 2 | 17,739,272 | train | <story><title>On Apple's Love Affair with Swift</title><url>https://stefan-lesser.com/2018/06/20/on-apples-love-affair-with-swift/</url></story><parent_chain><item><author>pavlov</author><text>Chris Lattner writes:<p><i>”One of the best and most annoying things about Objective-C is that it has C in it. This has been hugely important for Objective-C in practice, because if you run into a performance problem with objc_msgSend, you can always rewrite that algorithm in C. That’s really, really, really important for Objective-C being successful in both in the days of NeXT on 16 MHz processors and also today for the low-level code that people are writing.”</i><p>This is indeed a great thing about Objective-C: it’s an improved C with a tight set of runtime features that help build interactive applications.<p>There’s a need for such a language, and I’m sad that so much of the rhetoric from Apple and the Swift community is working on the assumption that Obj-C should be completely replaced by Swift.<p>Swift is not a compact language like Objective-C. It’s more like C++ in how it tries to incorporate every programming paradigm that can possibly fit. The heavy focus on complex upfront typing is not necessarily the best choice for iterative app development.<p>Swift is useful in many places, but personally I found Objective-C’s “Smalltalk-flavored C” to hit a sweet spot for my GUI needs where integrating with C and C++ libraries is usually required all over the place.</text></item></parent_chain><comment><author>pjmlp</author><text>Yeah, but you forgot to copy the other relevant part.<p>&gt; The fundamental problem was Objective-C was built on top of C. C inherently has pointers. It has uninitialized variables. It has array overflows. It has all these problems that even if you have full control of your compiler and tool stack, you just can’t fix. To fix dangling pointers, you would have to fix lifetime issues, and C doesn’t have a framework to reason about that, and retrofitting that into a compatible way into the system just wouldn’t really work.<p>If you took away C from Objective-C, you couldn’t use C arrays on the stack, for example. And if you couldn’t do that, there’s entire classes of applications where the performance just wouldn’t be acceptable. We went around, around, around. We said the only way that this can make sense in terms of the cost of the disruption to the community is if we make it a safe programming language: not “safe” as in “you can have no bugs,” but “safe” in terms of memory safety while also providing high performance and moving the programming model forward.</text></comment> | <story><title>On Apple's Love Affair with Swift</title><url>https://stefan-lesser.com/2018/06/20/on-apples-love-affair-with-swift/</url></story><parent_chain><item><author>pavlov</author><text>Chris Lattner writes:<p><i>”One of the best and most annoying things about Objective-C is that it has C in it. This has been hugely important for Objective-C in practice, because if you run into a performance problem with objc_msgSend, you can always rewrite that algorithm in C. That’s really, really, really important for Objective-C being successful in both in the days of NeXT on 16 MHz processors and also today for the low-level code that people are writing.”</i><p>This is indeed a great thing about Objective-C: it’s an improved C with a tight set of runtime features that help build interactive applications.<p>There’s a need for such a language, and I’m sad that so much of the rhetoric from Apple and the Swift community is working on the assumption that Obj-C should be completely replaced by Swift.<p>Swift is not a compact language like Objective-C. It’s more like C++ in how it tries to incorporate every programming paradigm that can possibly fit. The heavy focus on complex upfront typing is not necessarily the best choice for iterative app development.<p>Swift is useful in many places, but personally I found Objective-C’s “Smalltalk-flavored C” to hit a sweet spot for my GUI needs where integrating with C and C++ libraries is usually required all over the place.</text></item></parent_chain><comment><author>coldcode</author><text>I have used Objective-C since 1997 when I worked with WebObjects back then and I don&#x27;t miss it for a second. When I have to touch our one codebase with Objective-C I have to groan. It was amazing for its day and I did enjoy it despite its shortcomings. But I can write way more highly functional code faster in Swift than I ever could in Objective-C due to real type safety and other modern features. I also spent years doing regular C and C++ and Java (not at the same time) and all 3 languages seem clunky to me now. Preferring Objective-C over Swift is wishing for the golden oldie days kind of thinking and I&#x27;m one with almost 4 decades of programming experience. Swift is still young and growing and sometimes thats a bit challenging to adapt, but its the one language I truly enjoy now.</text></comment> |
25,970,923 | 25,970,830 | 1 | 3 | 25,970,091 | train | <story><title>The Reddit GME short squeeze game plan (143 days old)</title><url>https://old.reddit.com/r/wallstreetbets/comments/ip6jnv/the_real_greatest_short_burn_of_the_century/</url></story><parent_chain><item><author>elliekelly</author><text>&gt; But the point is that NONE of this information or analysis was secret, conducted in back rooms, or even hard to find.<p>There seems to be a massive misunderstanding that somehow because these discussions happened publicly on reddit everything is fine and dandy. It seems people are conflating insider trading (which has nothing to do with the $GME short squeeze unless you’re wearing a tinfoil hat) and market manipulation. I would be surprised if the SEC went after redditors (this time, at least) but there is no “we did it openly and conspicuously” safe harbor or defense when it comes to charges of market manipulation or securities fraud.<p>There’s a reason market commentary comes with a whole bunch of disclaimers in the footnotes with language like “not intended as investment advice” and “references to specific securities and issuers are not intended to be, and should not be interpreted as, recommendations to purchase or sell securities”.</text></item><item><author>caseysoftware</author><text>I started following WSB just before this one.. it was calm then.<p>There was also a post along the lines of &quot;there are ~50M public shares, 2M of us, if everyone bought 25 shares, we own GME!&quot; At that stage, it was trading between $5-10 so for ~$250, it was silly but not impossible.<p>But the point is that NONE of this information or analysis was secret, conducted in back rooms, or even hard to find. If you didn&#x27;t know the terminology and implications, it might be hard to decipher without someone else doing the heavy lifting but that&#x27;s no different than any other market analysis.<p>For WSB, this is a perfect <i>positive black swan</i>. The downside was capped ($250 at the time) and the upside is unlimited.<p>CNBC, et al need to look past the shitposting and see this is a new creature.</text></item></parent_chain><comment><author>dasudasu</author><text>If it&#x27;s 2 million people with $250 willing to make a bet, it&#x27;s manipulation, but if a rich hedge fund manager like Soros has the money upfront to do something like short the pound and induce a Black Wednesday event [1] all by himself, that&#x27;s fine and not manipulation at all? Just taking this as a random example. Any fund with enough money can move a market. This is their basic modus operandi.<p>[1]: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Black_Wednesday" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Black_Wednesday</a></text></comment> | <story><title>The Reddit GME short squeeze game plan (143 days old)</title><url>https://old.reddit.com/r/wallstreetbets/comments/ip6jnv/the_real_greatest_short_burn_of_the_century/</url></story><parent_chain><item><author>elliekelly</author><text>&gt; But the point is that NONE of this information or analysis was secret, conducted in back rooms, or even hard to find.<p>There seems to be a massive misunderstanding that somehow because these discussions happened publicly on reddit everything is fine and dandy. It seems people are conflating insider trading (which has nothing to do with the $GME short squeeze unless you’re wearing a tinfoil hat) and market manipulation. I would be surprised if the SEC went after redditors (this time, at least) but there is no “we did it openly and conspicuously” safe harbor or defense when it comes to charges of market manipulation or securities fraud.<p>There’s a reason market commentary comes with a whole bunch of disclaimers in the footnotes with language like “not intended as investment advice” and “references to specific securities and issuers are not intended to be, and should not be interpreted as, recommendations to purchase or sell securities”.</text></item><item><author>caseysoftware</author><text>I started following WSB just before this one.. it was calm then.<p>There was also a post along the lines of &quot;there are ~50M public shares, 2M of us, if everyone bought 25 shares, we own GME!&quot; At that stage, it was trading between $5-10 so for ~$250, it was silly but not impossible.<p>But the point is that NONE of this information or analysis was secret, conducted in back rooms, or even hard to find. If you didn&#x27;t know the terminology and implications, it might be hard to decipher without someone else doing the heavy lifting but that&#x27;s no different than any other market analysis.<p>For WSB, this is a perfect <i>positive black swan</i>. The downside was capped ($250 at the time) and the upside is unlimited.<p>CNBC, et al need to look past the shitposting and see this is a new creature.</text></item></parent_chain><comment><author>kevin_thibedeau</author><text>If they were an incorporated bank, made the same realization, and executed a buyout it would be perfectly legal.</text></comment> |
23,036,265 | 23,035,071 | 1 | 2 | 23,033,517 | train | <story><title>Writing a RISC-V Emulator from Scratch</title><url>https://book.rvemu.app/</url></story><parent_chain></parent_chain><comment><author>forty</author><text>&gt; This is the book for writing a 64-bit RISC-V emulator from scratch in Rust.<p>Next I want to see the book for writing a 64-bit RISC-V emulator from rust in Scratch ;)<p>The upper case S in the title made me believe for a second that they did it in Scratch :)</text></comment> | <story><title>Writing a RISC-V Emulator from Scratch</title><url>https://book.rvemu.app/</url></story><parent_chain></parent_chain><comment><author>burakemir</author><text>This looks like a nice project, and I will check on its progress. So far only two of the advertised steps are there.<p>Reminds me, I started a RISC emulator project on a holiday - and then forgot about it when the holiday was over :o<p>Not sure if combining &quot;learn rust&quot; and &quot;learn RISC V&quot; at the same time is a good combination for a large audience, it will depend on the reader.<p>Maybe the intended audience is someone who knows enough basics and has plenty of motivation for&#x2F;prior knowledge of&#x2F;interest in both topics. And then, for good content, there will always be an audience.</text></comment> |
1,049,333 | 1,049,217 | 1 | 2 | 1,048,800 | train | <story><title>A new approach to China</title><url>http://googleblog.blogspot.com/2010/01/new-approach-to-china.html</url></story><parent_chain><item><author>siculars</author><text>I am so proud of Google right now. It's hard to contain. It is high time somoene stood up to China and let them know enough is enough. I sincerely hope other corporations follow suit.<p>As I mentioned elsewhere, I am sure there is more to the story than is being let on now. I could only imagine the level of corporate espionage that is in play between China and Google. Good for Google calling them on it and making a broad public move.<p>As far as I'm concerned, Google has just turned me into a lifelong user.</text></item><item><author>boundlessdreamz</author><text>This is incredible. This is the first time, I have seen a LARGE company<p>* Putting its users above profits<p>* Stand up to Chinese Government.<p>Since accounts of human rights activists were targeted, this operation was clearly done at the behest of Chinese Government. I'm disgusted by the levels to which the Chinese Government can stoop.<p>It is time the world stands up to China. If a corporation, whose main aim is to generate profits can eschew it and take a moral high ground why can't the government do it? Are the cheap goods from china so necessary that it is not worth antagonizing China ?<p>EDIT: Additional details from Enterprise blog post <a href="http://googleenterprise.blogspot.com/2010/01/keeping-your-data-safe.html" rel="nofollow">http://googleenterprise.blogspot.com/2010/01/keeping-your-da...</a><p><i>It was an attack on the technology infrastructure of major corporations in sectors as diverse as finance, technology, media, and chemical</i><p>This is clearly an act of espionage by the Chinese Government. The bigger questions is whether these are the only companies targeted or the only ones discovered. This is not the first time, the chinese have tried something like this.<p><a href="http://news.bbc.co.uk/2/hi/7970471.stm" rel="nofollow">http://news.bbc.co.uk/2/hi/7970471.stm</a><p><i>The researchers said hackers were apparently able to take control of computers belonging to several foreign ministries and embassies across the world using malicious software</i></text></item></parent_chain><comment><author>liuliu</author><text>And it started. Major news sites in China start to filter out this news which has been heavily reported several hours ago. I expected all Google service will be blocked by the end of today.<p>Edit: maybe not that soon. A second thought, current news block may be interpreted as a "saving face" for Google. China high officials may have that kind of thought and think it is for Google's own benefits so that they can still discuss with Chinese gov. Otherwise if it is spread, there is no room for discussion.</text></comment> | <story><title>A new approach to China</title><url>http://googleblog.blogspot.com/2010/01/new-approach-to-china.html</url></story><parent_chain><item><author>siculars</author><text>I am so proud of Google right now. It's hard to contain. It is high time somoene stood up to China and let them know enough is enough. I sincerely hope other corporations follow suit.<p>As I mentioned elsewhere, I am sure there is more to the story than is being let on now. I could only imagine the level of corporate espionage that is in play between China and Google. Good for Google calling them on it and making a broad public move.<p>As far as I'm concerned, Google has just turned me into a lifelong user.</text></item><item><author>boundlessdreamz</author><text>This is incredible. This is the first time, I have seen a LARGE company<p>* Putting its users above profits<p>* Stand up to Chinese Government.<p>Since accounts of human rights activists were targeted, this operation was clearly done at the behest of Chinese Government. I'm disgusted by the levels to which the Chinese Government can stoop.<p>It is time the world stands up to China. If a corporation, whose main aim is to generate profits can eschew it and take a moral high ground why can't the government do it? Are the cheap goods from china so necessary that it is not worth antagonizing China ?<p>EDIT: Additional details from Enterprise blog post <a href="http://googleenterprise.blogspot.com/2010/01/keeping-your-data-safe.html" rel="nofollow">http://googleenterprise.blogspot.com/2010/01/keeping-your-da...</a><p><i>It was an attack on the technology infrastructure of major corporations in sectors as diverse as finance, technology, media, and chemical</i><p>This is clearly an act of espionage by the Chinese Government. The bigger questions is whether these are the only companies targeted or the only ones discovered. This is not the first time, the chinese have tried something like this.<p><a href="http://news.bbc.co.uk/2/hi/7970471.stm" rel="nofollow">http://news.bbc.co.uk/2/hi/7970471.stm</a><p><i>The researchers said hackers were apparently able to take control of computers belonging to several foreign ministries and embassies across the world using malicious software</i></text></item></parent_chain><comment><author>chrischen</author><text>Be careful there, your commitment is no different from the conviction of a nationalist approving one's government's actions no matter what is done.<p>You being critical of Google is the only thing guaranteed to keep them in check.</text></comment> |
29,853,427 | 29,853,305 | 1 | 3 | 29,850,987 | train | <story><title>Canon is telling customers how to override counterfeit cartridge warnings</title><url>https://twitter.com/naderman/status/1479529888977760258</url></story><parent_chain><item><author>trentnix</author><text>I bought extra HP cartridges off of Amazon years ago for my business so we would have extras. Imagine my surprise when, after installing the cartridges about a year later, I learned they were the wrong “region”. Turns out HP region locks ink like they are Blu-Rays or Nintendo games!<p>I had no idea I was buying “out-of-region” ink cartridges and I also had no idea such a thing could possibly matter. I called HP and the tech support person had the gall to tell me they have different ink for different regions because the climates are different. I nearly swallowed my teeth at the stupidity of such a claim.<p>They offered nothing until I started telling my story on Twitter, and suddenly a Support person messaged me on Twitter offering free replacements. So not only do they have an indefensible strategy of region-locking ink cartridges, they also train you to whine as loudly as possible to get any sort of recourse.<p>The entire printer industry appears to be running one scam or another.</text></item></parent_chain><comment><author>xahrepap</author><text>I bought an HP Color Laser printer a few years ago to avoid the Ink Jet nonsense.<p>Turns out it’s not Ink Jet, it’s HP. Lessons learned.<p>The printer worked flawlessly until I went through my first toner cartridges (the carts shipped with the printer are intentionally smaller so you have to replace them)<p>I noticed the 3rd party replacements were $80 for a full set whereas 1st party were $200. I got the 3rd party. It’s been such a headache ever since. The MAJORITY of prints from my iMac fail. Google suggests the Mac drivers have a bug that cause OOM errors on the printer. Funny thing is it always succeeds from Windows or Linux. So I half bought it, and just put up with it.<p>Fast forward a few years (a week or two ago) and my wife points out that there was an HP update and the printer works perfectly! Yay! The color cartridge is basically empty and needs replacing. Worked perfectly for a week until the printer popped up an error message “non-hp chip”.<p>All speculation and anecdotal, but I just can’t help but feel like they’ve ended their charade and are actually being “honest” with me now…</text></comment> | <story><title>Canon is telling customers how to override counterfeit cartridge warnings</title><url>https://twitter.com/naderman/status/1479529888977760258</url></story><parent_chain><item><author>trentnix</author><text>I bought extra HP cartridges off of Amazon years ago for my business so we would have extras. Imagine my surprise when, after installing the cartridges about a year later, I learned they were the wrong “region”. Turns out HP region locks ink like they are Blu-Rays or Nintendo games!<p>I had no idea I was buying “out-of-region” ink cartridges and I also had no idea such a thing could possibly matter. I called HP and the tech support person had the gall to tell me they have different ink for different regions because the climates are different. I nearly swallowed my teeth at the stupidity of such a claim.<p>They offered nothing until I started telling my story on Twitter, and suddenly a Support person messaged me on Twitter offering free replacements. So not only do they have an indefensible strategy of region-locking ink cartridges, they also train you to whine as loudly as possible to get any sort of recourse.<p>The entire printer industry appears to be running one scam or another.</text></item></parent_chain><comment><author>mattkevan</author><text>I discovered this when the HP printer I’d just bought from a major UK retailer refused to accept official HP ink cartridges.<p>Turned out that the starter cartridges that came with it were US region coded and the printer was now permanently locked to US ink.<p>Hated that thing with a passion - the crunch it made hitting the bottom of the e-waste bin when it finally broke was deeply satisfying.<p>I’ll never purchase an HP product ever again.</text></comment> |
27,033,093 | 27,033,134 | 1 | 2 | 27,032,669 | train | <story><title>Why I’ll never create modules for VCV Rack anymore–and what I’ll make instead</title><url>https://aria.dog/barks/why-i-will-never-create-modules-for-vcv-rack-anymore/</url></story><parent_chain></parent_chain><comment><author>waythro111</author><text>As far as I know VCV is less of a community per se than a commercial venture. Sometimes I think that the many different interpretations of &quot;open source&quot; leads to clash and conflict. There is the side where open source is merely a way to share code, a side where it is primarily community oriented,a side where FOSS is a mechanism of freedom and liberation, and so on.<p>I think this incident makes me feel that in any commercially-focused open source project I create I should be clear or that intention. Otherwise my focus on releasing code, and building a business and the corresponding lack of focus on community niceties may come back to bite me.<p>Open source is not necessarily about the community and not necessarily about you. I think it would be good to fork the project to make a community focused variant. I don&#x27;t think the VCV rack guy, though, Is necessarily falling short of any duties, because from my external perception it was never a community focused project. For example, the core afaik (unless I&#x27;m thinking of something different) is not &quot;open contribution&quot; at all.</text></comment> | <story><title>Why I’ll never create modules for VCV Rack anymore–and what I’ll make instead</title><url>https://aria.dog/barks/why-i-will-never-create-modules-for-vcv-rack-anymore/</url></story><parent_chain></parent_chain><comment><author>deorder</author><text>That is horrible and I did not fully realize this was going on. I&#x27;ve been waiting for VCVRack 2 forever to get the VST support and invested a lot of money in the current VCVRack. Aria I wish you the best with you future &#x2F; current endeavors and in something people will actually respect you. I really hope a good and fully open source alternative will come up soon.</text></comment> |
39,654,013 | 39,635,883 | 1 | 3 | 39,618,822 | train | <story><title>FDA clears first over-the-counter continuous glucose monitor</title><url>https://www.fda.gov/news-events/press-announcements/fda-clears-first-over-counter-continuous-glucose-monitor</url></story><parent_chain><item><author>pwthornton</author><text>The people at Levels, who do continuous glucose monitoring, say that oatmeal is one of the worst offenders.<p>You really need to spike your oatmeal with fats, protein, and fiber.<p>I regularly eat steel-cut oats for breakfast. My go-to is steel-cut oats, two tablespoons of Chia seeds mixed in (tons of fat and fiber), and a serving of mixed nuts and berries on top. On the side, I eat four scoops of powdered peanut butter mixed with water. This version of peanut butter is much higher in protein and much lower in fat and calories than normal peanut butter.<p>Doing all of this can keep the spikes to a reasonable amount (I also eat the powdered peanut butter first). Any kind of oatmeal by itself is bad. Instant oatmeal is worse. Instant oatmeal with all that sugar and stuff thrown in is terrible.<p>I suspect if you made your oatmeal with milk instead of water, it would help a lot, but I can&#x27;t do this from being lactose intolerant.</text></item><item><author>michaelcampbell</author><text>&gt; I was shocked at how much I spiked from oatmeal.<p>Was it oatmeal, or what you ate oatmeal with (milk, sweetener, etc), or do you know?</text></item><item><author>cleandreams</author><text>I am prediabetic and I have one. It&#x27;s partly covered by insurance. By the metrics my estimated average glucose has gone down from 129 to 98 or so (normal). I haven&#x27;t had my HbA1c in awhile.<p>I think they are amazing. It&#x27;s been SO HELPFUL. However I don&#x27;t think it makes sense for normal people. I am on a reddit group for prediabetes and it&#x27;s not unusual that people who are underweight (anorexic?) and have completely normal metrics come in and post in an utterly freaked out state. These are people who are somewhat compulsive and anxious. I think that if you are normal for blood glucose having access to all this data can make you compulsive and anxious.<p>However, for me as a prediabetic, it is really useful. It tells you what’s going on with your blood sugar in real time with no ideology. In the beginning I was spiking from things that a nutritionist would say was OK. I found whole grains didn’t work for me. I was shocked at how much I spiked from oatmeal. What causes blood glucose spikes does not map directly to number of carbs and also every body is different.<p>After 6 mo of lowered carbs, weight training, and getting down to normal BMI, I can now eat SMALL portions of things like brown rice. My health has improved. It&#x27;s great. IMHO all prediabetics and diabetics should have one, covered by insurance. It would really improve health and reduce complications.</text></item><item><author>mangoman</author><text>I recently had an unusual health event that resulted in me passing out. My wife, who is a physician, thought it might be hypoglycemia, since i&#x27;m at high risk for diabetes. She found a super friendly endocrinologist who put me on a CGM for two weeks. I never hit the hypoglycemia range during those two weeks, so it didn&#x27;t really explain what my issue... but honestly the data was SUPER interesting. Just observing the various spikes made me make healthier choices, or noticing when I was feeling extra tired and seeing if that correlated to not having eaten for little while, or eating something sugary before.<p>It&#x27;s sort of like tracking your steps when you first get a smart watch. It may not have been the reason you got the device, but seeing the data, people are encouraged to act on it, even if you don&#x27;t have an acute issue. since I didn&#x27;t have a prescription, I couldn&#x27;t get one here (didn&#x27;t want to go through some sketch online site). I tried to get one from my family in India, but the prices were really high and they couldn&#x27;t get the fancier one that tracks straight to your phone, so I didn&#x27;t get one.<p>I think this could be a god send for preventing pre-diabetic people who would take preventative steps if it weren&#x27;t such a pain in the ass to measure consistently.</text></item></parent_chain><comment><author>jkaplowitz</author><text>Consider trying oatmeal with lactose-free milk. The number of lactose-free dairy products varies a lot around the world, but if you’re in a developed Western European or North American country, lactose-free milk itself is almost certainly available in at least two different fat levels. The most widely available brand in the US, but certainly not the only one, is Lactaid.<p>(Special mention: Germany has an impressive variety of lactose-free options. Even lactose-free Nutella equivalent, lactose-free cream cheese, and lactose-free mascarpone! Many lactose-free products in Germany have competition between the store brand, a major brand or two, and&#x2F;or a brand or two focused on lactose-free.)</text></comment> | <story><title>FDA clears first over-the-counter continuous glucose monitor</title><url>https://www.fda.gov/news-events/press-announcements/fda-clears-first-over-counter-continuous-glucose-monitor</url></story><parent_chain><item><author>pwthornton</author><text>The people at Levels, who do continuous glucose monitoring, say that oatmeal is one of the worst offenders.<p>You really need to spike your oatmeal with fats, protein, and fiber.<p>I regularly eat steel-cut oats for breakfast. My go-to is steel-cut oats, two tablespoons of Chia seeds mixed in (tons of fat and fiber), and a serving of mixed nuts and berries on top. On the side, I eat four scoops of powdered peanut butter mixed with water. This version of peanut butter is much higher in protein and much lower in fat and calories than normal peanut butter.<p>Doing all of this can keep the spikes to a reasonable amount (I also eat the powdered peanut butter first). Any kind of oatmeal by itself is bad. Instant oatmeal is worse. Instant oatmeal with all that sugar and stuff thrown in is terrible.<p>I suspect if you made your oatmeal with milk instead of water, it would help a lot, but I can&#x27;t do this from being lactose intolerant.</text></item><item><author>michaelcampbell</author><text>&gt; I was shocked at how much I spiked from oatmeal.<p>Was it oatmeal, or what you ate oatmeal with (milk, sweetener, etc), or do you know?</text></item><item><author>cleandreams</author><text>I am prediabetic and I have one. It&#x27;s partly covered by insurance. By the metrics my estimated average glucose has gone down from 129 to 98 or so (normal). I haven&#x27;t had my HbA1c in awhile.<p>I think they are amazing. It&#x27;s been SO HELPFUL. However I don&#x27;t think it makes sense for normal people. I am on a reddit group for prediabetes and it&#x27;s not unusual that people who are underweight (anorexic?) and have completely normal metrics come in and post in an utterly freaked out state. These are people who are somewhat compulsive and anxious. I think that if you are normal for blood glucose having access to all this data can make you compulsive and anxious.<p>However, for me as a prediabetic, it is really useful. It tells you what’s going on with your blood sugar in real time with no ideology. In the beginning I was spiking from things that a nutritionist would say was OK. I found whole grains didn’t work for me. I was shocked at how much I spiked from oatmeal. What causes blood glucose spikes does not map directly to number of carbs and also every body is different.<p>After 6 mo of lowered carbs, weight training, and getting down to normal BMI, I can now eat SMALL portions of things like brown rice. My health has improved. It&#x27;s great. IMHO all prediabetics and diabetics should have one, covered by insurance. It would really improve health and reduce complications.</text></item><item><author>mangoman</author><text>I recently had an unusual health event that resulted in me passing out. My wife, who is a physician, thought it might be hypoglycemia, since i&#x27;m at high risk for diabetes. She found a super friendly endocrinologist who put me on a CGM for two weeks. I never hit the hypoglycemia range during those two weeks, so it didn&#x27;t really explain what my issue... but honestly the data was SUPER interesting. Just observing the various spikes made me make healthier choices, or noticing when I was feeling extra tired and seeing if that correlated to not having eaten for little while, or eating something sugary before.<p>It&#x27;s sort of like tracking your steps when you first get a smart watch. It may not have been the reason you got the device, but seeing the data, people are encouraged to act on it, even if you don&#x27;t have an acute issue. since I didn&#x27;t have a prescription, I couldn&#x27;t get one here (didn&#x27;t want to go through some sketch online site). I tried to get one from my family in India, but the prices were really high and they couldn&#x27;t get the fancier one that tracks straight to your phone, so I didn&#x27;t get one.<p>I think this could be a god send for preventing pre-diabetic people who would take preventative steps if it weren&#x27;t such a pain in the ass to measure consistently.</text></item></parent_chain><comment><author>prirun</author><text>&gt; I suspect if you made your oatmeal with milk instead of water, it would help a lot, but I can&#x27;t do this from being lactose intolerant.<p>I dunno about that: milk contains a lot of sugar. Water doesn&#x27;t. You could add 3 tbsp of cream for an extra 150 calories (no protein, no sugar) vs 1 cup of milk at 150 cals, 8g protein, 12g carbs.<p>I add almond flour to oatmeal and protein shakes for an extra 100 cals of fat.</text></comment> |
38,072,399 | 38,070,254 | 1 | 2 | 38,057,265 | train | <story><title>Thomas Edison's Concrete Houses</title><url>https://www.atlasobscura.com/places/thomas-edisons-concrete-houses</url></story><parent_chain></parent_chain><comment><author>jccooper</author><text>Notable that the Edison houses aren&#x27;t form-cast like we do today, which is just structural and rather rough; the concrete was meant to be the finished wall both interior and exterior, including the roof and all interior and exterior ornament. The forms were nickel-plated cast iron.<p><a href="https:&#x2F;&#x2F;www.scientificamerican.com&#x2F;article&#x2F;edisons-system-of-concrete-houses&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.scientificamerican.com&#x2F;article&#x2F;edisons-system-of...</a></text></comment> | <story><title>Thomas Edison's Concrete Houses</title><url>https://www.atlasobscura.com/places/thomas-edisons-concrete-houses</url></story><parent_chain></parent_chain><comment><author>DWakefield</author><text>Does anyone know where there are pictures of the interiors of these homes? I&#x27;m very curious about the concrete bath fixtures, but can&#x27;t seem to find anything online that definitively shows the inside of an Edison concrete home. It&#x27;s also interesting to see this in light of all the news recently about 3D printed concrete and how there are many of the same challenges now that Edison must have had to deal with then. Plumbing, electrical, insulation, and so forth all have to be incorporated into the design or tacked on afterward.</text></comment> |
30,091,481 | 30,085,641 | 1 | 2 | 30,084,901 | train | <story><title>AirPods don't “just work”</title><url>https://philip.design/blog/airpods-dont-just-work/</url></story><parent_chain><item><author>PragmaticPulp</author><text>I generally enjoy my AirPods. They are occasionally quirky, but most of the time they really do “just work” for me. The annoyances are annoying when they happen, though.<p>The strangest part is that the annoyances aren’t getting any better over time. At first I assumed that they were growing pains of an early product launch. Yet now we’re years into the AirPods experience and they continue to be just as quirky as when I first got them.<p>Apple seems so hot or cold on fixing their own bugs. Certain bugs get rapidly patched in the next iOS or Mac software release. Other bugs languish for what feels like forever. Do Apple execs just not use AirPods? Are they using a different configuration or hardware combination that doesn’t have these bugs? Have they just trained themselves to overlook the bugs because the workarounds have become a reflex? I can’t imagine working at any tech company where one of the flagship products had such a high rate of annoyances without having a lot of engineers diverted to replicating, diagnosing, and fixing it ASAP.</text></item></parent_chain><comment><author>nsxwolf</author><text>I like &quot;workarounds become a reflex&quot;. This is a very succinct way of describing one of the causes of why people often claim to have no issues using something that universally has issues.<p>A great example is the gaming PC vs gaming console war. PC gamers often seem to refuse to admit there&#x27;s untold little quirks you have to deal with when using a general-purpose operating system and modular hardware to play games. They don&#x27;t notice the workarounds they are continuously employing, because it&#x27;s become a reflex.</text></comment> | <story><title>AirPods don't “just work”</title><url>https://philip.design/blog/airpods-dont-just-work/</url></story><parent_chain><item><author>PragmaticPulp</author><text>I generally enjoy my AirPods. They are occasionally quirky, but most of the time they really do “just work” for me. The annoyances are annoying when they happen, though.<p>The strangest part is that the annoyances aren’t getting any better over time. At first I assumed that they were growing pains of an early product launch. Yet now we’re years into the AirPods experience and they continue to be just as quirky as when I first got them.<p>Apple seems so hot or cold on fixing their own bugs. Certain bugs get rapidly patched in the next iOS or Mac software release. Other bugs languish for what feels like forever. Do Apple execs just not use AirPods? Are they using a different configuration or hardware combination that doesn’t have these bugs? Have they just trained themselves to overlook the bugs because the workarounds have become a reflex? I can’t imagine working at any tech company where one of the flagship products had such a high rate of annoyances without having a lot of engineers diverted to replicating, diagnosing, and fixing it ASAP.</text></item></parent_chain><comment><author>Nextgrid</author><text>In my experience, the annoyances actually get worse over time.<p>I got my AirPods back when the original ones were released and the experience probably was as good as physically possible (short of including multiple radios so they can maintain connections to multiple devices in parallel and simply mix the audio client-side).<p>They then (2 years ago?) released this new feature where AirPods could automatically switch between all your devices which is just too slow and is more of an annoyance in practice, but even disabling the behavior made the existing experience much worse: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30085538" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30085538</a></text></comment> |
25,278,482 | 25,278,445 | 1 | 3 | 25,275,727 | train | <story><title>TSMC confirms 3nm tech for 2022, could enable epic 80B transistor GPUs</title><url>https://www.pcgamer.com/tsmc-confirms-3nm-tech-for-2022-could-enable-epic-80-billion-transistor-gpus/</url></story><parent_chain><item><author>ChuckNorris89</author><text>3nm, 5nm, 7nm are all marketing names now since the fabs switched to 3D transistors and not a measure of any exact feature size.<p>When examined via electron microscope, TSMC&#x27;s 7nm is just slightly denser than Intel&#x27;s 14nm++ and not half the size.<p><i>“You need to understand that this naming scheme reflects only the process. It’s just the process called 14nm or 7nm … It could be called Intel Blueberry Construction 5 or if it is called AMD Strawberry Process 3, it would give you the same amount of information as having 14nm or 7nm (in the name).”</i><p><a href="https:&#x2F;&#x2F;www.time24.news&#x2F;2020&#x2F;09&#x2F;der8auer-compares-tsmcs-7nm-process-with-intels-14nm-using-electron-microscope.html" rel="nofollow">https:&#x2F;&#x2F;www.time24.news&#x2F;2020&#x2F;09&#x2F;der8auer-compares-tsmcs-7nm-...</a></text></item><item><author>runeks</author><text>&gt; TSMC reckons its 3nm node will pack in somewhere north of 250 million transistors per square millimetre of silicon [...]<p>&gt; TSMC is already producing chips for Apple’s iPhones on its new 5nm node, which is good for 173 million transistors per square millimetre [...]<p><i>3nm™</i>: a transistor is 1 &#x2F; 250e6 = 4e-9 square millimeters, which is sqrt(4e-9) = 63.2 nanometers by nanometers.<p><i>5nm™</i>: a transistor is 1 &#x2F; 173e6 = 5.78e-9 square millimeters, which is sqrt(5.78e-9) = 76.0 by 76.0 nanometers.<p>So is it reasonable to say that <i>3nm™</i> -- compared to <i>5nm™</i> -- is closer to 63.2 &#x2F; 76.0 * 5 (<i>nm™</i>) = <i>~4.16nm™</i>? Ie. a reduction in feature size of ~17%?</text></item></parent_chain><comment><author>petra</author><text>A better measurement would be million transistors per square milimeter(Mtr&#x2F;mm2).<p>So Intel&#x27;s self reported 44Mtr&#x2F;mm2 @ 14nm, and 100Mtr&#x2F;mm2 @ 10nm(but currently 10nm is having problems).<p>Comparing this to Tsmc&#x27;s 170Mtr&#x2F;mm2 @ 7nm and 250Mtr&#x2F;mm2 @ 5nm - is a pretty valid comparison, I think.</text></comment> | <story><title>TSMC confirms 3nm tech for 2022, could enable epic 80B transistor GPUs</title><url>https://www.pcgamer.com/tsmc-confirms-3nm-tech-for-2022-could-enable-epic-80-billion-transistor-gpus/</url></story><parent_chain><item><author>ChuckNorris89</author><text>3nm, 5nm, 7nm are all marketing names now since the fabs switched to 3D transistors and not a measure of any exact feature size.<p>When examined via electron microscope, TSMC&#x27;s 7nm is just slightly denser than Intel&#x27;s 14nm++ and not half the size.<p><i>“You need to understand that this naming scheme reflects only the process. It’s just the process called 14nm or 7nm … It could be called Intel Blueberry Construction 5 or if it is called AMD Strawberry Process 3, it would give you the same amount of information as having 14nm or 7nm (in the name).”</i><p><a href="https:&#x2F;&#x2F;www.time24.news&#x2F;2020&#x2F;09&#x2F;der8auer-compares-tsmcs-7nm-process-with-intels-14nm-using-electron-microscope.html" rel="nofollow">https:&#x2F;&#x2F;www.time24.news&#x2F;2020&#x2F;09&#x2F;der8auer-compares-tsmcs-7nm-...</a></text></item><item><author>runeks</author><text>&gt; TSMC reckons its 3nm node will pack in somewhere north of 250 million transistors per square millimetre of silicon [...]<p>&gt; TSMC is already producing chips for Apple’s iPhones on its new 5nm node, which is good for 173 million transistors per square millimetre [...]<p><i>3nm™</i>: a transistor is 1 &#x2F; 250e6 = 4e-9 square millimeters, which is sqrt(4e-9) = 63.2 nanometers by nanometers.<p><i>5nm™</i>: a transistor is 1 &#x2F; 173e6 = 5.78e-9 square millimeters, which is sqrt(5.78e-9) = 76.0 by 76.0 nanometers.<p>So is it reasonable to say that <i>3nm™</i> -- compared to <i>5nm™</i> -- is closer to 63.2 &#x2F; 76.0 * 5 (<i>nm™</i>) = <i>~4.16nm™</i>? Ie. a reduction in feature size of ~17%?</text></item></parent_chain><comment><author>stunt</author><text>They are adding more layers. But nobody said there are no other improvements.<p>Up to 30% power reduction, up to 70% logic density gain, and up to 15% performance gain is all that matters.</text></comment> |
35,441,233 | 35,438,128 | 1 | 3 | 35,434,790 | train | <story><title>An LLM playground you can run on your laptop</title><url>https://github.com/nat/openplayground</url></story><parent_chain><item><author>d4rkp4ttern</author><text>This is very neat, thanks for sharing. I was wondering about a related thing — is there a way to query a llama.cpp (or other such local model) via an API from Python? In other words, I see a lot of cool applications being built with langchain + ClosedAPI, so I’m wondering if an API call to a local model could be a drop-in replacement for the ClosedAPI call?</text></item></parent_chain><comment><author>MacsHeadroom</author><text>Yes, there are python bindings for llama.cpp and the text-generation-webui already uses them for local inference. <a href="https:&#x2F;&#x2F;github.com&#x2F;oobabooga&#x2F;text-generation-webui&#x2F;wiki&#x2F;llama.cpp-models">https:&#x2F;&#x2F;github.com&#x2F;oobabooga&#x2F;text-generation-webui&#x2F;wiki&#x2F;llam...</a><p>&quot;pip install llamacpp&quot; or <a href="https:&#x2F;&#x2F;github.com&#x2F;thomasantony&#x2F;llamacpp-python">https:&#x2F;&#x2F;github.com&#x2F;thomasantony&#x2F;llamacpp-python</a></text></comment> | <story><title>An LLM playground you can run on your laptop</title><url>https://github.com/nat/openplayground</url></story><parent_chain><item><author>d4rkp4ttern</author><text>This is very neat, thanks for sharing. I was wondering about a related thing — is there a way to query a llama.cpp (or other such local model) via an API from Python? In other words, I see a lot of cool applications being built with langchain + ClosedAPI, so I’m wondering if an API call to a local model could be a drop-in replacement for the ClosedAPI call?</text></item></parent_chain><comment><author>versteegen</author><text>Maybe TextSynth server? It has a REST JSON API to pretty much every major LLM running locally with minimal dependencies (no python&#x2F;pytorch&#x2F;CUDA). (And I see that since last week it now has an HTML GUI too.) <a href="https:&#x2F;&#x2F;bellard.org&#x2F;ts_server&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bellard.org&#x2F;ts_server&#x2F;</a><p>However, the GPU version is only available commercially. I&#x27;d like to see someone compare the speed of the CPU version against PyTorch or llama.cpp. (Edit: llama.cpp&#x27;s author wrote &quot;I expect LibNC [used by ts_server] will be better in every aspect: performance, accuracy, determinism. But hopefully with time we will close the gap.&quot; [1])<p>EDIT: But if you wish, here&#x27;s a Python interface to llama.cpp: <a href="https:&#x2F;&#x2F;github.com&#x2F;PotatoSpudowski&#x2F;fastLLaMa">https:&#x2F;&#x2F;github.com&#x2F;PotatoSpudowski&#x2F;fastLLaMa</a><p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;context?id=35195270" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;context?id=35195270</a></text></comment> |
3,114,156 | 3,114,035 | 1 | 3 | 3,113,792 | train | <story><title>Dear John Carmack.</title><url>http://iloapp.quelsolaar.com/blog/news?Home&post=88</url><text></text></story><parent_chain><item><author>kennymeyers</author><text>This article is so full of incendiary bullshit, I'm surprised it even got on the front page.<p>Some of the most critically acclaimed games, as well as highest selling games, have stories.<p>For example: Grand Theft Auto 3. Final Fantasy VII.
Ico. Metal Gear Solid. Arkham Asylum. Mass Effect. Dragon Age. Dark Souls. Demon Souls. Starcraft. Starcraft II.
Modern Warfare. World of Warcraft.<p>Do you know what else made these games stand out? Art direction.<p>Give me a break.</text></item></parent_chain><comment><author>stephth</author><text><i>Some of the most critically acclaimed games, as well as highest selling games, have stories.</i><p>He's not saying games don't have stories, of course they do, he's saying that some game designers get distracted from making good mechanics, which I agree, is a huge mistake. Mechanics is the core of the medium, and shouldn't be put second on the list.<p>Valve gets that. Their attention and talent put into storytelling and art direction is top-notch, yet that has never distracted them from making sure their mechanics are excellent.</text></comment> | <story><title>Dear John Carmack.</title><url>http://iloapp.quelsolaar.com/blog/news?Home&post=88</url><text></text></story><parent_chain><item><author>kennymeyers</author><text>This article is so full of incendiary bullshit, I'm surprised it even got on the front page.<p>Some of the most critically acclaimed games, as well as highest selling games, have stories.<p>For example: Grand Theft Auto 3. Final Fantasy VII.
Ico. Metal Gear Solid. Arkham Asylum. Mass Effect. Dragon Age. Dark Souls. Demon Souls. Starcraft. Starcraft II.
Modern Warfare. World of Warcraft.<p>Do you know what else made these games stand out? Art direction.<p>Give me a break.</text></item></parent_chain><comment><author>thret</author><text>You think SC and SC2 stand out due to art direction? Well, sure, in the same way Chess does.</text></comment> |
28,389,269 | 28,389,225 | 1 | 3 | 28,388,987 | train | <story><title>Show HN: A simple recording program with the ability to record the screen</title><url>https://github.com/akon47/ScreenRecorder</url></story><parent_chain></parent_chain><comment><author>wwwhizz</author><text>Congrats on making a small, useful, working tool! I like the minimalism.<p>Maybe you should mention on your GitHub page that it is for Windows.</text></comment> | <story><title>Show HN: A simple recording program with the ability to record the screen</title><url>https://github.com/akon47/ScreenRecorder</url></story><parent_chain></parent_chain><comment><author>TekMol</author><text>In Debian there is Simple Screen Recorder:<p><pre><code> apt install simplescreenrecorder</code></pre></text></comment> |
18,718,328 | 18,718,051 | 1 | 2 | 18,716,961 | train | <story><title>Tech Unicorns Are Going Public at Near-Record Pace</title><url>https://www.wsj.com/articles/tech-unicorns-are-going-public-at-near-record-pace-11545138000</url></story><parent_chain><item><author>tenpoundhammer</author><text>I&#x27;ve been working for a startup that recently exited it seems to be common knowledge in the startup community( and everywhere else? ) that a recession is just around the corner. I&#x27;m definitely not an expert in economics but these are just the pieces I&#x27;ve put together.<p>From what I&#x27;ve heard&#x2F;read the recession will primarily affect stock pricing and available investment assets. Many startups feel that if they don&#x27;t exit now they will never have the opportunity or will have to exit with much lower numbers. This seems like a strong driver of exits.</text></item></parent_chain><comment><author>ChuckMcM</author><text>It seems nearly everyone always believes that a recession, big disaster slowdown, market crash, Etc is &quot;right around the corner.&quot; And for the last 10 years they have been wrong in the macro sense :-).<p>That said, this was from the article: <i>&quot;Many of the tech companies that listed shares in the U.S. were based in China, including some of the largest IPOs of the year, such as online-entertainment services company iQIYI Inc. and Chinese e-commerce company Pinduoduo Inc.&quot;</i><p>The Chinese economy is reacting in all sorts of ways to its new larger size, pressure from the US in trade wars, and pressure at home to spread some of the prosperity around. If you take all of the Chinese companies out of the list, the IPO statistic is unremarkable.<p>What I find most interesting is the Unicorn do or die issue. Which is that many may find it impossible to go to the private equity trough again, that bubble does seem to have deflated. Valuations aside, when you have <i>raised</i> over a billion dollars that is real money that somebody is going to miss it if you just roll up the carpets and go home.<p>It felt to me that the collapse of Theranos woke up a lot of &#x27;stupid&#x27; money (that is money from people who are investing in a fad but without research). And those folks have said, &quot;Hmm, ok now I&#x27;d like to sell my equity in this company you guys say is worth $X, that means you will pay me $Z for my stake right?&quot; Only to find it doesn&#x27;t work that way, there are no buyers, no liquidity as they say, for those preferred shares. But they can vote and they can tell the CEO, you&#x27;re not getting another penny from us, we&#x27;d like to sell our shares. And that leaves the public markets as the investor of last resort.<p>So it does feel like a Unicorn reckoning is to be had. Where companies will have to prove that a cruel and unemotional market will agree with their lofty valuations. They won&#x27;t all make it over that hump. As the Vikings might say, &quot;There will be songs sung about these days.&quot;</text></comment> | <story><title>Tech Unicorns Are Going Public at Near-Record Pace</title><url>https://www.wsj.com/articles/tech-unicorns-are-going-public-at-near-record-pace-11545138000</url></story><parent_chain><item><author>tenpoundhammer</author><text>I&#x27;ve been working for a startup that recently exited it seems to be common knowledge in the startup community( and everywhere else? ) that a recession is just around the corner. I&#x27;m definitely not an expert in economics but these are just the pieces I&#x27;ve put together.<p>From what I&#x27;ve heard&#x2F;read the recession will primarily affect stock pricing and available investment assets. Many startups feel that if they don&#x27;t exit now they will never have the opportunity or will have to exit with much lower numbers. This seems like a strong driver of exits.</text></item></parent_chain><comment><author>learc83</author><text>It&#x27;s been common knowledge since the end of the last recession that a recession is just around the corner. It&#x27;s always common knowledge that a recession is just around the corner.<p>It&#x27;s a non falsifiable position because if a recession doesn&#x27;t happen for another 5 years, they&#x27;ll just say that 5 years was what they mean by just around the corner.</text></comment> |
795,052 | 795,012 | 1 | 2 | 794,973 | train | <story><title>Sprezzatura</title><url>http://sivers.org/sprezzatura</url></story><parent_chain></parent_chain><comment><author>vibhavs</author><text>That's a great word. It's really fascinating how certain words need a sentence-long definition when translated from other languages to English. So much is captured in one word!<p>And that's an incredible TED talk. I recommend to anyone who hasn't seen it that they watch it when they have a chance.<p>The best part in my opinion: "That's not what my creative process is - I'm not the pipeline! I'm a mule, and the way that I have to work is that I have to get up at the same time every day, and sweat and labor and barrel through it really awkwardly. But even I, in my mulishness, even I have brushed up against that thing, at times. And I would imagine that a lot of you have too."</text></comment> | <story><title>Sprezzatura</title><url>http://sivers.org/sprezzatura</url></story><parent_chain></parent_chain><comment><author>fizx</author><text>Somehow, it's fabulous to have words for concepts you've fuzzily known about for a long time.</text></comment> |
12,561,294 | 12,560,785 | 1 | 3 | 12,559,753 | train | <story><title>How to Get a Job in Deep Learning</title><url>http://blog.deepgram.com/how-to-get-a-job-in-deep-learning/</url></story><parent_chain></parent_chain><comment><author>csantini</author><text>TL;DR: Deep Learning will become a commodity. Software will eat Deep Learning too.<p>I&#x27;d like to clean up a bit the air from the hype fog:<p>DL is giving amazing results only when you have big sets of labelled data. Hence it will be much cheaper for companies to buy Google&#x2F;Microsoft Vision&#x2F;Audio REST APIs rather than paying the costs of: cloud + find data + deep learning experts. So, I don&#x27;t think we will see a massive growth of DL gigs.<p>e.g. Google Vision API: <a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;vision&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;vision&#x2F;</a><p>Except those areas where your own CNN implementation is needed (automotive, industrial automation), Deep Learning will be another &quot;library&quot; in the ever increasing Software Engineering mess of gluing many open source libraries and REST apis to get something useful done. You need 1 guy training a Neural Network for every 100 software monkeys maintaining the infrastructure complexity.
There are now many Software Engineering jobs because it&#x27;s hard to glue and maintain publicly-available code to solve some specific business problem.<p>I think the the same applies for many Data Scientist jobs, which are these days more about fetching&#x2F;cleaning&#x2F;visualizing data than making machine learning on it.</text></comment> | <story><title>How to Get a Job in Deep Learning</title><url>http://blog.deepgram.com/how-to-get-a-job-in-deep-learning/</url></story><parent_chain></parent_chain><comment><author>orthoganol</author><text>My question is, it feels like machine learning is reaching its &quot;Rails&quot; stage. You can implement the latest Bi-directional NN or LSTM-RNN using a high level API that already sits on top of another high level framework. Even beyond the core setup it will do the peripherals - smart initializations, anti-overfitting, split up your data, etc.<p>Do people who implement (albeit real, useful) deep learning systems, but who have no formal machine learning background, who don&#x27;t really know much or care about implementing derivatives or softmax functions because the frameworks abstract all that away - are these people getting offered jobs?</text></comment> |
11,804,571 | 11,803,681 | 1 | 2 | 11,802,917 | train | <story><title>Andl, a relational language that is not SQL, is coming to Postgres</title><url>http://www.andl.org/2016/04/postgres-meet-andl/</url></story><parent_chain><item><author>yomly</author><text>Interesting coincidence for me that this hits the front page of HN today as I recently read this article [0].<p>The author thinks we should move away using the database purely to persist the data, while handling all logic&#x2F;validation in the server language (e.g. By using an ORM to map your server language to the database) was less robust over time.<p>Instead, he suggests pushing knowledge of your data into your database as this has proven to be more time resilient and takes advantage of the power of these databases.<p>I liked the argument (which is better expressed that my paraphrasing) but my largest reservation was that expressiveness is a big consideration for choosing some language, and in this case the alternative to using Ruby&#x2F;JS&#x2F;Python + ORM in your MVC framework is to use SQL functions, which are syntactically clunky&#x2F;dated at the very least.<p>It seems like Andl is looking to bridge this to some extent.<p>[0] <a href="https:&#x2F;&#x2F;sivers.org&#x2F;pg" rel="nofollow">https:&#x2F;&#x2F;sivers.org&#x2F;pg</a></text></item></parent_chain><comment><author>mistermann</author><text>The problem with this theory is programming in some databases (MS SQL Server) is extremely unpleasant.<p>For example, you can finally, in the year 2016, split strings natively in TSQL:<p><a href="https:&#x2F;&#x2F;www.brentozar.com&#x2F;archive&#x2F;2016&#x2F;03&#x2F;splitting-strings-sql-server-2016-rescue&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.brentozar.com&#x2F;archive&#x2F;2016&#x2F;03&#x2F;splitting-strings-...</a><p>Compare that to this SO question:<p><a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;2647&#x2F;how-do-i-split-a-string-so-i-can-access-item-x" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;2647&#x2F;how-do-i-split-a-str...</a><p>Note there are 32 answers on that question, many of which fail under various edge cases. Also notice that no one finds this situation absurd in the slightest (Stockholm Syndrome is alive and well in the MSSQL community apparently). This is just one example of the nonsense you have to put up with on SQL Server, there are many others.<p>And while PG is getting yet another new language capability, it appears Microsoft is pulling SQLCLR support (in Azure, so far):<p><a href="https:&#x2F;&#x2F;www.brentozar.com&#x2F;archive&#x2F;2016&#x2F;04&#x2F;breaking-news-literally-sql-clr-support-removed-azure-sql-db&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.brentozar.com&#x2F;archive&#x2F;2016&#x2F;04&#x2F;breaking-news-lite...</a><p>...which probably doesn&#x27;t matter at the end of the day because almost no DBA would ever let you use it in production.<p>While it would cause harm to my personal career, nothing would make me happier than to see Postgres crush MSSQL, Microsoft has earned nothing less with their absolute disdain for their users.</text></comment> | <story><title>Andl, a relational language that is not SQL, is coming to Postgres</title><url>http://www.andl.org/2016/04/postgres-meet-andl/</url></story><parent_chain><item><author>yomly</author><text>Interesting coincidence for me that this hits the front page of HN today as I recently read this article [0].<p>The author thinks we should move away using the database purely to persist the data, while handling all logic&#x2F;validation in the server language (e.g. By using an ORM to map your server language to the database) was less robust over time.<p>Instead, he suggests pushing knowledge of your data into your database as this has proven to be more time resilient and takes advantage of the power of these databases.<p>I liked the argument (which is better expressed that my paraphrasing) but my largest reservation was that expressiveness is a big consideration for choosing some language, and in this case the alternative to using Ruby&#x2F;JS&#x2F;Python + ORM in your MVC framework is to use SQL functions, which are syntactically clunky&#x2F;dated at the very least.<p>It seems like Andl is looking to bridge this to some extent.<p>[0] <a href="https:&#x2F;&#x2F;sivers.org&#x2F;pg" rel="nofollow">https:&#x2F;&#x2F;sivers.org&#x2F;pg</a></text></item></parent_chain><comment><author>pjungwir</author><text>Interesting connection! :-)<p>As a web developer who has done mostly Rails for a long time, I default to ORMs. And it seems to me that the last 20 years of architecture theory boils down to &quot;How do I put a layer in front of my database?&quot; Once your schema becomes a public API, your app is frozen.<p>But on the other hand, I believe in using all the features your database has to offer. I remember doing J2EE in the early oughts everyone spoke about being able to swap out one RDBMS for another, and I eventually decided that kind of lowest-common-denominator approach was not worth the cost in preset-day productivity. Plus building on an open source project is less risky than something with outrageous licensing fees, so why not use it? So my own Rails projects have real foreign keys, CHECK constraints, some SQL functions (even some in C), views, and big queries. If I can express an invariant I trust Postgres more than myself to enforce it. I&#x27;ve also had some projects lately where building a JSON response for the front-end involved hundreds of ActiveRecord objects, and dodging that by using the JSON-construction functions in pg 9.4+ is a huge performance win. You can even still use the ActiveRecord DSL to build the query, using your scopes and associations and Ruby code, but then do a `to_sql` and wrap the whole thing in Postgres JSON fuctions. I feel like there could almost be a gem for that. Anyway, sorry for rambling. :-) I agree that Andl could make it much more appealing for people to &quot;put the logic in the database,&quot; and I feel like I have been moving in that direction for a long time. Maybe we will see an ActiveRecord Andl adapter?!</text></comment> |
30,486,546 | 30,486,040 | 1 | 3 | 30,480,083 | train | <story><title>How to waste time and overcomplicate things</title><url>https://ryanwarnock.me/blog/260222.html</url></story><parent_chain></parent_chain><comment><author>kqr</author><text>Note that in this case it happened when the author had the full context of what as needed to get done.<p>In business, the situation is usually even worse. The customer needs some problem solved. They assume the easiest way there is to get a different problem solved. They ask a customer support-type person about that. The CS person assumes a solution is best, and then go to a project manager. The PM assumes a particular implementation is best, and goes to a developer.<p>By the time the developer is trying to solve the customer problem, it has been transformed into a different problem at least four times, by mere assumptions that rarely have anything to do with reality.<p>Always, always ask &quot;Why am I doing this? What evidence do I have that suggests this specific thing absolutely needs to be done?&quot;<p>One of my favourite quotes is &quot;It ain&#x27;t what you don&#x27;t know that gets you in trouble, it&#x27;s what you know for sure that just ain&#x27;t so.&quot;<p>----<p>It&#x27;s not a small effect either. I&#x27;ve heard serious, well-reasoned estimates ranging between 50 % and 99 % of our work being completely unnecessary busywork.<p>Imagine that. In the most pessimistic (optimistic?) case you could spend half the year sipping drinks on a beach and still get just as much truly useful work done.</text></comment> | <story><title>How to waste time and overcomplicate things</title><url>https://ryanwarnock.me/blog/260222.html</url></story><parent_chain></parent_chain><comment><author>revscat</author><text>I hope to save some you a click and let everyone know that this article is not, as you may have assumed from the title, about React.</text></comment> |
18,018,276 | 18,017,680 | 1 | 2 | 18,013,364 | train | <story><title>A new book about Nietzsche: tethering philosophy to the mess of daily experience</title><url>https://www.theatlantic.com/magazine/archive/2018/10/nietzsches-guide-to-better-living/568375/</url></story><parent_chain></parent_chain><comment><author>dang</author><text>It was partly the fault of the original baity title, but what a trainwreck the bulk of this thread turned out to be. If ever there were an occasion to dust off pg&#x27;s old phrase, &quot;the middlebrow dismissal&quot;, here we have it.<p>Discussions celebrating one&#x27;s own and mutual ignorance, with people shooting whatever cheap shots pop up about a great thinker, writer, and soul, make me cringe to be part of HN.<p>There is a morbid interest in seeing how internet discussions, viewed as a whole, behave like a physiological process—perhaps a digestive organ, turning waste of one kind into waste of another.</text></comment> | <story><title>A new book about Nietzsche: tethering philosophy to the mess of daily experience</title><url>https://www.theatlantic.com/magazine/archive/2018/10/nietzsches-guide-to-better-living/568375/</url></story><parent_chain></parent_chain><comment><author>hnthrowaway789</author><text>Many of Nietzsche&#x27;s ideas are almost entirely antithetical to the cultural sensibilities of HN so the discussion that you&#x27;re going to get on here is not going to be that great.<p>This piece presents an exceptionally shallow introduction and survey of Nietzsche&#x27;s body of thought. If you get into reading Nietzsche with the intent of learning how to live better you&#x27;re going to have an impossible time.<p>If you&#x27;re interested in reading Nietzsche I&#x27;d recommend first reading more philosophy and history (the things Nietzsche studied) in order to get some context for the things he says. It&#x27;s pretty much impossible to understand what he&#x27;s talking about unless you have that knowledge since his works are (in large part) a critical analysis of the nature and evolution of the modes of human thought and behavior.</text></comment> |
34,254,941 | 34,254,252 | 1 | 3 | 34,254,183 | train | <story><title>FTC cracks down on companies that impose harmful noncompete restrictions</title><url>https://www.ftc.gov/news-events/news/press-releases/2023/01/ftc-cracks-down-companies-impose-harmful-noncompete-restrictions-thousands-workers</url></story><parent_chain></parent_chain><comment><author>kabdib</author><text>About 20 years ago I joined a large company in California, where non-compete clauses are essentially disallowed.<p>A few years later, I moved to the company&#x27;s offices in Washington State, where non-competes <i>are</i> allowed. Before the move I emailed HR and asked if I needed to sign the WA state employment agreement (with that non-compete clause) and they said &quot;no&quot;. I saved that email.<p>Forward a decade, I resigned to work for a competitor.<p>That exit interview was <i>fun</i>. :-)<p>[I was working on completely different stuff at the new company. I do take NDAs and trade secrets seriously].</text></comment> | <story><title>FTC cracks down on companies that impose harmful noncompete restrictions</title><url>https://www.ftc.gov/news-events/news/press-releases/2023/01/ftc-cracks-down-companies-impose-harmful-noncompete-restrictions-thousands-workers</url></story><parent_chain></parent_chain><comment><author>blakesterz</author><text>FTC seems to be down right now, but The Archive has it already:<p><a href="http:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20230104170101&#x2F;https:&#x2F;&#x2F;www.ftc.gov&#x2F;news-events&#x2F;news&#x2F;press-releases&#x2F;2023&#x2F;01&#x2F;ftc-cracks-down-companies-impose-harmful-noncompete-restrictions-thousands-workers" rel="nofollow">http:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20230104170101&#x2F;https:&#x2F;&#x2F;www.ftc.go...</a></text></comment> |
31,642,483 | 31,642,830 | 1 | 2 | 31,639,354 | train | <story><title>A CIA hacker’s revenge</title><url>https://www.newyorker.com/magazine/2022/06/13/the-surreal-case-of-a-cia-hackers-revenge</url></story><parent_chain><item><author>the_af</author><text>&gt; <i>I still have no idea if he&#x27;s an adversarial plant by some government</i><p>Was what he disclosed true or not? In the end, that&#x27;s all that matters.</text></item><item><author>antiverse</author><text>&gt;Snowden<p>Looking back at everything that transpired with Snowden boggles the mind. I still have no idea if he&#x27;s an adversarial plant by some government (meant to sow distrust, etc) or if he was genuine from the get-go. It is incredibly hard to get to the truths of these things, and the media outlets spinning it in their own ways (based on who donates to them and who owns them) makes it even harder.</text></item><item><author>boomboomsubban</author><text>It&#x27;s not surprising that the cause of the leaks was petty and personal. &quot;Deep Throat&quot; Mark Felt&#x27;s reason for exposing Nixon seems to be that he was upset he didn&#x27;t get the director job, a similarly petty reason.<p>Ideological cases like Ellsberg, Snowden, and Manning are the exception.</text></item></parent_chain><comment><author>at-fates-hands</author><text>From what he reportedly took and what&#x27;s been released, I&#x27;m still so confused.<p>It was a hot mess in the media for a few months about how the reporters he fed stuff to was going to release it all. Then, once the story died down, you didn&#x27;t hear anything and there were no more releases. At least none that were so groundbreaking, they hit the media. You could say the media was culpable and simply ignored subsequent releases though.<p>Is there somewhere you can go to see what&#x27;s been released? I&#x27;m still under the impression the bulk of what he said he had has yet to be released.</text></comment> | <story><title>A CIA hacker’s revenge</title><url>https://www.newyorker.com/magazine/2022/06/13/the-surreal-case-of-a-cia-hackers-revenge</url></story><parent_chain><item><author>the_af</author><text>&gt; <i>I still have no idea if he&#x27;s an adversarial plant by some government</i><p>Was what he disclosed true or not? In the end, that&#x27;s all that matters.</text></item><item><author>antiverse</author><text>&gt;Snowden<p>Looking back at everything that transpired with Snowden boggles the mind. I still have no idea if he&#x27;s an adversarial plant by some government (meant to sow distrust, etc) or if he was genuine from the get-go. It is incredibly hard to get to the truths of these things, and the media outlets spinning it in their own ways (based on who donates to them and who owns them) makes it even harder.</text></item><item><author>boomboomsubban</author><text>It&#x27;s not surprising that the cause of the leaks was petty and personal. &quot;Deep Throat&quot; Mark Felt&#x27;s reason for exposing Nixon seems to be that he was upset he didn&#x27;t get the director job, a similarly petty reason.<p>Ideological cases like Ellsberg, Snowden, and Manning are the exception.</text></item></parent_chain><comment><author>sky-kedge0749</author><text>I don&#x27;t know. If a ton of news came out about shady stuff happening at the Coca-Cola company, I&#x27;d want to know if it was all coming from corporate espionage paid for by Pepsi.<p>We assume an impartial news organization will investigate Coke and Pepsi equally, so if the org comes out with a bunch of stuff about Coke acting badly, we figure that Coke really is bad, otherwise the org would have gone after Pepsi too, or both. On the other hand if a less scrupulous news org one day receives a mysterious package with a ton of bad stuff about Coke and just verifies and prints it, then Pepsi could be good or bad or anything, but most people will think they&#x27;re good because of all the bad stuff only coming out about Coke.</text></comment> |
3,994,062 | 3,993,709 | 1 | 2 | 3,991,689 | train | <story><title>NASDAQ:FB</title><url>http://www.google.com/finance?q=NASDAQ%3AFB</url></story><parent_chain><item><author>jacquesm</author><text>&#62; The top-voted comment on this thread really should be words of praise for what Zuckerberg and his team have accomplished.<p>The top voted comment actually is an excerpt from a book by a man that I respect a whole lot more than I respect Mark Zuckerberg. For one he seemed a genuinely nice and modest human being. He also influenced the lives of countless people by being creative rather than by selling off their private details to the highest bidder. I really like that top voted comment, instead of gushing admiration for a pile of virtual money it causes you to reflect and think.<p>Making a lot of money does not automatically equate accomplishment.<p>Contrast this with the SpaceX announcement on the homepage at the moment. If Elon Musk succeeds, which I certainly hope for then <i>that</i> will be an accomplishment. Even if SpaceX fails it will still be a huge and daring move. Compared to giving humanity a new window on access to space photo sharing seems a little underwhelming.<p>If you can't understand anyone who actually wishes them ill then please consider that we do not all have the same goals and we do not all have the same vision of what the internet could be like. As a creator, as an business person and a hacker I would happily see facebook replaced by a company or an entity that gave us 80% of the functionality with our joint privacy in tact. That would be progress.<p>Facebook is just AOL re-invented for the new millenium.</text></item><item><author>ramanujan</author><text>This is Hacker News. The top-voted comment on this thread really should be words of praise for what Zuckerberg and his team have accomplished.<p>Every hacker, every entrepreneur, every creator should derive inspiration and uplift from Facebook's story. It's a rare bright day in the middle of the worst economic environment since the 1930s. It doesn't matter whether the company will grow into a $100B valuation. It does matter that it was started in February 2004, by a single guy with a computer, and has affected the lives of billions of people and created billions of dollars in wealth.<p>Maybe the markets won't be kind to them. Maybe they won't grow into the $100B valuation. But outside of those who are direct competitors, I can't understand anyone who actually wishes them ill. As a creator, as an entrepreneur, as a hacker, if you tear down Facebook you're just tearing down yourself.</text></item></parent_chain><comment><author>38f0ia</author><text>Facebook is the new AOL.<p>Exactly.<p>And the worst part of it is there is a kid acting as CEO calling himself a "hacker".<p>Hackers do not turn websites into corporations. Imagine if all ISP's were turned into "AOL's".<p>Facebook did not connect billions of people. They were already connected. All they needed to do was share their contact details. And the facility for that already existed in thousands of other websites.<p>People chose one website, Facebook. That's a good thing. And the credit should go to people for encouraging each other to all sign up at one website.<p>But alas it is the website of a sociopath who took people's contact details (calling them "dumb fucks" for giving him their info), the way a spammer collects email addresses, or a cybercriminal collects credit card numbers, and then sold the information for financial gain (your info is worth maybe .85 to a few bucks at most in this market). He's creating the next generation of mailbox stuffed full of junk direct marketing.<p>If Mark Zuckerberg is your hero you need think more carefully about what he has done and re-examine your principles.</text></comment> | <story><title>NASDAQ:FB</title><url>http://www.google.com/finance?q=NASDAQ%3AFB</url></story><parent_chain><item><author>jacquesm</author><text>&#62; The top-voted comment on this thread really should be words of praise for what Zuckerberg and his team have accomplished.<p>The top voted comment actually is an excerpt from a book by a man that I respect a whole lot more than I respect Mark Zuckerberg. For one he seemed a genuinely nice and modest human being. He also influenced the lives of countless people by being creative rather than by selling off their private details to the highest bidder. I really like that top voted comment, instead of gushing admiration for a pile of virtual money it causes you to reflect and think.<p>Making a lot of money does not automatically equate accomplishment.<p>Contrast this with the SpaceX announcement on the homepage at the moment. If Elon Musk succeeds, which I certainly hope for then <i>that</i> will be an accomplishment. Even if SpaceX fails it will still be a huge and daring move. Compared to giving humanity a new window on access to space photo sharing seems a little underwhelming.<p>If you can't understand anyone who actually wishes them ill then please consider that we do not all have the same goals and we do not all have the same vision of what the internet could be like. As a creator, as an business person and a hacker I would happily see facebook replaced by a company or an entity that gave us 80% of the functionality with our joint privacy in tact. That would be progress.<p>Facebook is just AOL re-invented for the new millenium.</text></item><item><author>ramanujan</author><text>This is Hacker News. The top-voted comment on this thread really should be words of praise for what Zuckerberg and his team have accomplished.<p>Every hacker, every entrepreneur, every creator should derive inspiration and uplift from Facebook's story. It's a rare bright day in the middle of the worst economic environment since the 1930s. It doesn't matter whether the company will grow into a $100B valuation. It does matter that it was started in February 2004, by a single guy with a computer, and has affected the lives of billions of people and created billions of dollars in wealth.<p>Maybe the markets won't be kind to them. Maybe they won't grow into the $100B valuation. But outside of those who are direct competitors, I can't understand anyone who actually wishes them ill. As a creator, as an entrepreneur, as a hacker, if you tear down Facebook you're just tearing down yourself.</text></item></parent_chain><comment><author>staunch</author><text>It must be thoughtlessness. You can't honestly look at Facebook's contribution to the Arab Spring (and similar social justice causes) or the millions of people it has reconnected (long-lost family/friends) and think that SpaceX has any chance of creating comparable positive impact at any point in the near future.<p>I like SpaceX too. It's every geek's childhood fantasy. It's a great thing. Elon is the real Tony Stark. But the reality is that <i>far more</i> humans benefit from relatively mundane advances in things like cell phones and social networking than rockets.<p>Facebook is connecting humanity together in a way that's never been possible before. Improving the lives of billions of people in a meaningful way is an undeniably Big Fucking Deal.</text></comment> |
34,531,814 | 34,531,897 | 1 | 2 | 34,531,363 | train | <story><title>What if AI didn't make you a bad writer, but a better thinker?</title><url>https://slite.com/blog/gpt-knowledge-revolution-is-coming</url></story><parent_chain><item><author>rcme</author><text>I’ve been using AI to write with great success. Mostly business documents. My general process is this:<p>Think of the concept I want to write about as well as the supporting evidence for the topic. Ask ChatGPT to write me something in my target format using the topic and supporting evidence as input. What I get back is essentially a well-written skeleton that I can use to fill in additional details. Finally, I pass my revisions through ChatGPT to touch up any errors, rephrase wordy things, etc. I lightly edit the final draft and I usually have an excellent result.</text></item></parent_chain><comment><author>moonchrome</author><text>So you are providing sensitive business information&#x2F;facts to a third party service that&#x27;s likely going to use those for training, analysis, store it, etc. ?<p>It should be fine for most places I guess - but I suspect a decent amount will have a problem with this.<p>This is my main reservation about copilot as well (quality issues aside).</text></comment> | <story><title>What if AI didn't make you a bad writer, but a better thinker?</title><url>https://slite.com/blog/gpt-knowledge-revolution-is-coming</url></story><parent_chain><item><author>rcme</author><text>I’ve been using AI to write with great success. Mostly business documents. My general process is this:<p>Think of the concept I want to write about as well as the supporting evidence for the topic. Ask ChatGPT to write me something in my target format using the topic and supporting evidence as input. What I get back is essentially a well-written skeleton that I can use to fill in additional details. Finally, I pass my revisions through ChatGPT to touch up any errors, rephrase wordy things, etc. I lightly edit the final draft and I usually have an excellent result.</text></item></parent_chain><comment><author>jason-phillips</author><text>The symmetric flow of information back and forth between yourself and the AI assistant is the key distinction here. It&#x27;s a very beneficial, symbiotic relationship.<p>The problem will be the asymmetric, uni-directional flow to those whose sole function is mindless consumption of AI-generated content.</text></comment> |
31,972,464 | 31,971,772 | 1 | 3 | 31,969,345 | train | <story><title>Red Engine: modern scheduling framework for Python applications</title><url>https://red-engine.readthedocs.io/en/stable/index.html</url></story><parent_chain><item><author>dr_kiszonka</author><text>Would you have a recommendation for an easy to use Python scheduler with such a feature for a personal project?</text></item><item><author>mplewis</author><text>Other schedulers have a durable database of attempted runs. This doesn&#x27;t seem to have anything like that.</text></item><item><author>angrais</author><text>If it took less than 5 minutes to boot then I can&#x27;t see why it wouldn&#x27;t work.<p>How would that work for other schedulers? Also, if a server reboots that&#x27;s quite bad all round anyway. Hopefully you&#x27;d be notified directly.</text></item><item><author>wmichelin</author><text>How does it handle state and restarts? What happens if a job is scheduled to run &quot;before 10am&quot;, then the entire server restarts at 9:55am, will it try to run that same job again when it boots back up?</text></item></parent_chain><comment><author>lobocinza</author><text>I think you can create ephemeral timers with Systemd if you&#x27;re on Linux.</text></comment> | <story><title>Red Engine: modern scheduling framework for Python applications</title><url>https://red-engine.readthedocs.io/en/stable/index.html</url></story><parent_chain><item><author>dr_kiszonka</author><text>Would you have a recommendation for an easy to use Python scheduler with such a feature for a personal project?</text></item><item><author>mplewis</author><text>Other schedulers have a durable database of attempted runs. This doesn&#x27;t seem to have anything like that.</text></item><item><author>angrais</author><text>If it took less than 5 minutes to boot then I can&#x27;t see why it wouldn&#x27;t work.<p>How would that work for other schedulers? Also, if a server reboots that&#x27;s quite bad all round anyway. Hopefully you&#x27;d be notified directly.</text></item><item><author>wmichelin</author><text>How does it handle state and restarts? What happens if a job is scheduled to run &quot;before 10am&quot;, then the entire server restarts at 9:55am, will it try to run that same job again when it boots back up?</text></item></parent_chain><comment><author>MonkeyMalarky</author><text>Seconding this. I would love a middle tier job scheduler &#x2F; manager for Python that has persistence. I feel like there&#x27;s a missing middle between cron+scripts and the enterprise grade tooling built for ETL tasks.</text></comment> |
33,965,925 | 33,965,733 | 1 | 2 | 33,954,778 | train | <story><title>Ask HN: What's your proudest hack?</title><text>I saw this question being asked on here years ago with few but interesting answers. I&#x27;d imagine that a lot of you still have some pretty interesting stories to tell about some crafty workarounds.</text></story><parent_chain><item><author>ww520</author><text>In my first job I work on a database product in development that leaked memory slowly, leading to crashes after hours of usage. The software was written in C and there were no tools like Purify or Valgrind back then to deal with memory problem. It was a vexing problem that got punted until release time, when it became a show stopper.<p>I looked into the problem and found that the memory allocation used malloc and free. I then defined macros for malloc and free in a common header to call my_malloc and my_free functions with the standard __FILE__ and __LINE__ macros passed in as parameters. Re-compiled the whole program with the macros, which redirected every call of malloc and free to my functions. My functions logged all the calls with the allocated memory pointer, the filename, and the line number. Once I collected enough log data from test runs, I sorted the lines in the log file by the memory pointer address. Every pointer address should come in pair, one from the malloc() and one from the free(). The odd number pointer addresses are the ones with missing free(). And I got their filename and line number right there.</text></item></parent_chain><comment><author>josephg</author><text>Hah! A few years ago I did something similar.<p>I was in the process of porting some C code (a physics engine) to javascript. After porting the code I benchmarked it - and, no surprises - it was waay slower than the original C code.<p>One reason C is faster than javascript is that C structs get &quot;inlined&quot; into the containing object. For example, in C struct Body { vec2 pos; vec2 velocity; } would just be 1 object. But the equivalent javascript code would allocate 3 objects instead.<p>I inlined vec2 (replacing it with pos_x, pos_y, etc) and performance got a lot better. But I was curious what other structs were thrashing the garbage collector. So I added a call into all my constructors which generated a stack trace (new Error().stack), and used the stack trace as the key in a javascript object - with the value being the number of times that stack trace was seen.<p>After sorting and printing the result, I had a hit list of the hottest stack traces which were thrashing V8&#x27;s garbage collector. I fixed all the worst call sites and by the time I was done performance improved by about 3x or so!</text></comment> | <story><title>Ask HN: What's your proudest hack?</title><text>I saw this question being asked on here years ago with few but interesting answers. I&#x27;d imagine that a lot of you still have some pretty interesting stories to tell about some crafty workarounds.</text></story><parent_chain><item><author>ww520</author><text>In my first job I work on a database product in development that leaked memory slowly, leading to crashes after hours of usage. The software was written in C and there were no tools like Purify or Valgrind back then to deal with memory problem. It was a vexing problem that got punted until release time, when it became a show stopper.<p>I looked into the problem and found that the memory allocation used malloc and free. I then defined macros for malloc and free in a common header to call my_malloc and my_free functions with the standard __FILE__ and __LINE__ macros passed in as parameters. Re-compiled the whole program with the macros, which redirected every call of malloc and free to my functions. My functions logged all the calls with the allocated memory pointer, the filename, and the line number. Once I collected enough log data from test runs, I sorted the lines in the log file by the memory pointer address. Every pointer address should come in pair, one from the malloc() and one from the free(). The odd number pointer addresses are the ones with missing free(). And I got their filename and line number right there.</text></item></parent_chain><comment><author>bane</author><text>You know, that&#x27;s surprisingly an elegant hack. I&#x27;m sure it&#x27;s obvious to some folks, but for some reason I never came up with it during my old C programming days.</text></comment> |
23,551,260 | 23,551,027 | 1 | 3 | 23,550,277 | train | <story><title>Apple is facing rage from developers over the commission on the App Store</title><url>https://www.businessinsider.com/apple-developer-rage-30-percent-app-store-tax-2020-6</url></story><parent_chain><item><author>ReticentVole</author><text>The single best move Europe could make would be to limit any digital stores to maximum 12% commission. That would truly reign in the monopoly power of these platforms (typically American) and dramatically boost the revenues of content creators (many of whom are European).<p>12% covers the overhead costs of the stores and still allows a healthy profit for the monopoly owner.<p>I hope that next on the target list is Valve, who charges a 30% regressive tax on Indie games but allows big-budget AAA games to get by with only 20% tax:<p><a href="https:&#x2F;&#x2F;variety.com&#x2F;2018&#x2F;gaming&#x2F;news&#x2F;valve-revenue-split-changes-1203078700&#x2F;" rel="nofollow">https:&#x2F;&#x2F;variety.com&#x2F;2018&#x2F;gaming&#x2F;news&#x2F;valve-revenue-split-cha...</a></text></item></parent_chain><comment><author>zpeti</author><text>Why 12%? Seems like a completely arbitrary number, with 0 market input. Why shouldn&#x27;t it be 40% for that matter, if a bureaucrat is going to set it?<p>This is the major issue in cases like this, who sets the number? How do they calculate it? How do you know if Apple will be able to sustain an app store with that number? I&#x27;m not saying they can&#x27;t, but will that mean, for example that their approval process for apps won&#x27;t be as vigorous and we get lots of scam apps?<p>The worst possible thing here is if some random number is set by some random person who thinks they&#x27;re _very clever_.</text></comment> | <story><title>Apple is facing rage from developers over the commission on the App Store</title><url>https://www.businessinsider.com/apple-developer-rage-30-percent-app-store-tax-2020-6</url></story><parent_chain><item><author>ReticentVole</author><text>The single best move Europe could make would be to limit any digital stores to maximum 12% commission. That would truly reign in the monopoly power of these platforms (typically American) and dramatically boost the revenues of content creators (many of whom are European).<p>12% covers the overhead costs of the stores and still allows a healthy profit for the monopoly owner.<p>I hope that next on the target list is Valve, who charges a 30% regressive tax on Indie games but allows big-budget AAA games to get by with only 20% tax:<p><a href="https:&#x2F;&#x2F;variety.com&#x2F;2018&#x2F;gaming&#x2F;news&#x2F;valve-revenue-split-changes-1203078700&#x2F;" rel="nofollow">https:&#x2F;&#x2F;variety.com&#x2F;2018&#x2F;gaming&#x2F;news&#x2F;valve-revenue-split-cha...</a></text></item></parent_chain><comment><author>tallanvor</author><text>But indie publishers can choose not to sell on Steam - there are numerous online stores they can choose as well as selling it on their own site.<p>If you want to sell an iPhone app, you have absolutely no choice but to go through Apple, and that&#x27;s where the real problem is. --They make it pay-to-play for devs and prevent customers from making their own decisions on what to put on the devices they own.</text></comment> |
11,713,843 | 11,713,824 | 1 | 3 | 11,713,432 | train | <story><title>From Node.js to Go</title><url>http://blog.scaledrone.com/posts/nodejs-to-go</url></story><parent_chain><item><author>Gonzih</author><text>This blog post feels very empty. No code snippets? No actuall before after benchmarks&#x2F;graphs? How can you state anything without showing numbers?</text></item></parent_chain><comment><author>Cyph0n</author><text>Agreed. I posted a comparison between Node and Go UDP socket performance a few months back with some code snippets. My submission was completely ignored. HN can be weird sometimes, huh.<p>Edit (and shameless plug): <a href="http:&#x2F;&#x2F;assil.me&#x2F;2015&#x2F;11&#x2F;07&#x2F;roadomatic-node-vs-go.html" rel="nofollow">http:&#x2F;&#x2F;assil.me&#x2F;2015&#x2F;11&#x2F;07&#x2F;roadomatic-node-vs-go.html</a><p>You might need to read the previous post (and only other one!) to understand how the GeoJSON geospatial query works.</text></comment> | <story><title>From Node.js to Go</title><url>http://blog.scaledrone.com/posts/nodejs-to-go</url></story><parent_chain><item><author>Gonzih</author><text>This blog post feels very empty. No code snippets? No actuall before after benchmarks&#x2F;graphs? How can you state anything without showing numbers?</text></item></parent_chain><comment><author>swah</author><text>Always expecting something like <a href="https:&#x2F;&#x2F;aphyr.com&#x2F;posts&#x2F;329-jepsen-rethinkdb-2-1-5" rel="nofollow">https:&#x2F;&#x2F;aphyr.com&#x2F;posts&#x2F;329-jepsen-rethinkdb-2-1-5</a></text></comment> |
20,694,279 | 20,693,930 | 1 | 2 | 20,693,438 | train | <story><title>Major breach found in biometrics system used by banks, police and defence firms</title><url>https://www.theguardian.com/technology/2019/aug/14/major-breach-found-in-biometrics-system-used-by-banks-uk-police-and-defence-firms</url></story><parent_chain></parent_chain><comment><author>e12e</author><text>Upstream post:
<a href="https:&#x2F;&#x2F;www.vpnmentor.com&#x2F;blog&#x2F;report-biostar2-leak&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.vpnmentor.com&#x2F;blog&#x2F;report-biostar2-leak&#x2F;</a><p>Quote :<p>Our team was able to access over 27.8 million records, a total of 23 gigabytes of data, which included the following information:<p>- Access to client admin panels, dashboards, back end controls, and permissions<p>- Fingerprint data<p>- Facial recognition information and images of users<p>- Unencrypted usernames, passwords, and user IDs<p>- Records of entry and exit to secure areas<p>- Employee records including start dates<p>- Employee security levels and clearances<p>- Personal details, including employee home address and emails<p>- Businesses’ employee structures and hierarchies<p>- Mobile device and OS information<p>One of the more surprising aspects of this leak was how unsecured the account passwords we accessed were. Plenty of accounts had ridiculously simple passwords, like “Password” and “abcd1234”. It’s difficult to imagine that people still don’t realize how easy this makes it for a hacker to access their account.</text></comment> | <story><title>Major breach found in biometrics system used by banks, police and defence firms</title><url>https://www.theguardian.com/technology/2019/aug/14/major-breach-found-in-biometrics-system-used-by-banks-uk-police-and-defence-firms</url></story><parent_chain></parent_chain><comment><author>Phemist</author><text>Biometrics as an authentication factor suffers from a &quot;weakest-link&quot; problem. The strength of authentication of _every_ system using biometric factors can only be as strong as the weakest, least secure implementation out of those systems.<p>Passwords suffer from the same &quot;weakest-link&quot; problem to a degree, but at least we can choose to have more than 1 or 2 and even more than 10 different passwords. Also, they can be changed after a leak. In biometric authentication, once your raw biometric data has been leaked, you are basically left to rely on the strength of the PAD (Presentation Attack Detection) and the (lack of) propagation of the leaked information.</text></comment> |
4,550,050 | 4,549,999 | 1 | 2 | 4,549,832 | train | <story><title>NFL opens Pandora's Box by offering All-22 tape to public</title><url>http://www.nfl.com/news/story/09000d5d82a0b2d8/article/nfl-opens-pandoras-box-by-offering-all22-tape-to-public</url></story><parent_chain><item><author>bartonfink</author><text>This is very exciting, as there's a lot of strategy to American football that isn't plainly visible when the camera just follows the ball as it does on television. It's not going to showcase technique very well, but it'll go a long way towards explaining e.g. why some wide receivers are always open, why some players always seem to be in the right position to interrupt a pass, etc. I'd actually find it very interesting to see something like a Coursera course using film from this to explain different plays, packages, etc.<p>However, I'm not sure it's of wide interest to HN. As far as I can tell, I'm the only one here who likes NFL football.</text></item></parent_chain><comment><author>jedberg</author><text>&#62; However, I'm not sure it's of wide interest to HN. As far as I can tell, I'm the only one here who likes NFL football.<p>You'd probably be surprised. I know I was surprised when I got to college and found more football fans amongst my engineer friends than my humanities friends.<p>It turns out the game is very complex and deep and discussing strategy can be quite interesting.<p>I wasn't a football fan when I arrived in college, but I was when I left.</text></comment> | <story><title>NFL opens Pandora's Box by offering All-22 tape to public</title><url>http://www.nfl.com/news/story/09000d5d82a0b2d8/article/nfl-opens-pandoras-box-by-offering-all22-tape-to-public</url></story><parent_chain><item><author>bartonfink</author><text>This is very exciting, as there's a lot of strategy to American football that isn't plainly visible when the camera just follows the ball as it does on television. It's not going to showcase technique very well, but it'll go a long way towards explaining e.g. why some wide receivers are always open, why some players always seem to be in the right position to interrupt a pass, etc. I'd actually find it very interesting to see something like a Coursera course using film from this to explain different plays, packages, etc.<p>However, I'm not sure it's of wide interest to HN. As far as I can tell, I'm the only one here who likes NFL football.</text></item></parent_chain><comment><author>sachinag</author><text>It's not Coursera, but for $25 a year, USA Football has a metric asston of material: <a href="http://usafootball.com/coach" rel="nofollow">http://usafootball.com/coach</a></text></comment> |
35,561,866 | 35,561,456 | 1 | 2 | 35,559,497 | train | <story><title>Amazon announces 'Bedrock' AI platform to take on OpenAI</title><url>https://www.businessinsider.com/amazon-bedrock-aws-ai-chatgpt-dall-e-competitor-2023-4</url></story><parent_chain></parent_chain><comment><author>popcorncowboy</author><text>In case it&#x27;s not obvious, this is what &quot;landing page&quot; customer discovery looks like for $trillion companies who have nothing to show but smoke and a whole lot of stick rubbing. The signup form is one massive &quot;we don&#x27;t have a clue what we&#x27;re doing, here are dozens of options, tell us absolutely everything about how you plan to use our hypothetical cough excuse me awesome and totally real bedrock service&quot;.<p>AWS will play hard in this space but as someone else in this thread eloquently put it: this is what the sound of executive butt clenching looks like writ large. Microsoft can only be laughing.</text></comment> | <story><title>Amazon announces 'Bedrock' AI platform to take on OpenAI</title><url>https://www.businessinsider.com/amazon-bedrock-aws-ai-chatgpt-dall-e-competitor-2023-4</url></story><parent_chain></parent_chain><comment><author>andrewstuart</author><text>I used to be an AWS true believer. Now I find it increasingly difficult to be enthused about anything AWS. It’s all so expensive, complex and locked in. I recently shut down everything I had on AWS except Route 53 and workmail, both of which I really like. The craziest AWS thing is that they moved all GPU instances to a quota system where you have to request access, specifying the number and type and location of instances that you want to run. It’s like Azure which has an equally terrible quota system. Anyhow I needed to run some performance tests in GPU instances. In the past I would have spun up a bunch of different instance types, run my tests and moved on. In this case I applied for a quota of one machine type and 24 hours later AWS got back to me to approve my request to run one instance. At that point I gave up on the idea of AWS being the heart of any GPU based infrastructure.</text></comment> |
28,956,490 | 28,955,855 | 1 | 2 | 28,955,636 | train | <story><title>After the pandemic, we can’t go back to sleep (2020)</title><url>https://theanarchistlibrary.org/library/david-graeber-after-the-pandemic-we-can-t-go-back-to-sleep</url></story><parent_chain></parent_chain><comment><author>soared</author><text>Meh. I’ve seen a lot of these short essays about how after the pandemic we either should not or simply will not return to the status quo. It doesn’t really do anything to say “the economy doesn’t work” in 5 paragraphs and then say nothing else.<p>Yes, lots of poor people are getting screwed. Some jobs don’t pay well despite the higher moral standing of directly assisting others. The environment looks pretty bad. But you can’t just say “rich people bad. New economy plz”.<p>This essay is basically r&#x2F;im14andthisisdeep</text></comment> | <story><title>After the pandemic, we can’t go back to sleep (2020)</title><url>https://theanarchistlibrary.org/library/david-graeber-after-the-pandemic-we-can-t-go-back-to-sleep</url></story><parent_chain></parent_chain><comment><author>q-base</author><text>I had somehow missed that he died. What a shame. He wrote one of the most interesting, fascinating and influential books I have ever read.</text></comment> |
5,232,127 | 5,232,131 | 1 | 3 | 5,230,259 | train | <story><title>LLC vs. S-Corp vs. C-Corp</title><url>http://www.launchside.com/blog/llc-vs-s-corp-vs-c-corp/</url></story><parent_chain><item><author>molsongolden</author><text>I am sure the author of this article intended to help others make wise tax/entity formation decisions but many of the facts mentioned are just incorrect (tax rates and some general tax concepts). C-corps are fairly uncommon nowadays and for good reason You are almost always going to pay more tax in the C-corp and you will face built in gains issues when you realize this and decide to elect to be an S-corp.<p>The tone of the article seems to be slightly rushed and frustrated and leads me to wonder if the author just received unexpected news from his accountant.<p>One example:<p>Using 2013 tax rates and assuming that the taxpayer is single:<p>Individual Federal income tax on taxable income of $90,000 (ignoring personal deductions/exemptions/itemized deductions, etc..) that the example taxpayer in the article might have to pay if they were a 50% partner/member in an LLC:<p>Roughly $18,493 (less than 21%)<p>Corporate Federal income tax on $100,000 if you and your partner had a C-corp instead and took 40k salaries then left $100k in the company.<p>Roughly $22,250 (About 22%)<p>But then if you end up not spending that money because you made a boatload of cash the next year and want to take it out:<p>$3,337 (15% capital gains)<p>leading to a rough total of $25,587 (over 25.5%).<p>You might look at this example and say "hey that's just a few %" but as the income in question grows, so does the gap.<p>Edit: The real reason startups might end up as corporations is for the beneficial tax treatment investors can receive as holders of small business stock (1202, 1244).</text></item></parent_chain><comment><author>swampthing</author><text><i>C-corps are fairly uncommon nowadays and for good reason</i><p>This is a bit misleading for people looking to start your typical startup (using PG's definition of 'startup'). All those startups you read about raising money - want to know how many of them are C-corps? Just about 100%.<p>One thing that many people don't realize is that for many startups, those pass-through tax benefits of LLCs and S-corps are largely illusory, since they're not going to be profitable at that stage anyways.<p>Starting off as an LLC means you're going to introduce delay when you start raising money (unless you're really on top of things and convert in advance of fundraising), which introduces deal risk.<p>Yes, there is double taxation on income from C-corps, but most startup founders aren't in it for the salary / dividends, they're in it for the eventual acquisition / IPO (or these days, private market sales). Gains for QSB stock held more than 5 years are now tax-free under Section 1202.<p>There's a whole bunch of reasons why companies end up as corporations - not just the QSB stuff. Main street small businesses are often fine with LLCs or S-corps. Startups (as defined by PG) should really talk with an experienced startup attorney before going the route of an LLC or S-corp.</text></comment> | <story><title>LLC vs. S-Corp vs. C-Corp</title><url>http://www.launchside.com/blog/llc-vs-s-corp-vs-c-corp/</url></story><parent_chain><item><author>molsongolden</author><text>I am sure the author of this article intended to help others make wise tax/entity formation decisions but many of the facts mentioned are just incorrect (tax rates and some general tax concepts). C-corps are fairly uncommon nowadays and for good reason You are almost always going to pay more tax in the C-corp and you will face built in gains issues when you realize this and decide to elect to be an S-corp.<p>The tone of the article seems to be slightly rushed and frustrated and leads me to wonder if the author just received unexpected news from his accountant.<p>One example:<p>Using 2013 tax rates and assuming that the taxpayer is single:<p>Individual Federal income tax on taxable income of $90,000 (ignoring personal deductions/exemptions/itemized deductions, etc..) that the example taxpayer in the article might have to pay if they were a 50% partner/member in an LLC:<p>Roughly $18,493 (less than 21%)<p>Corporate Federal income tax on $100,000 if you and your partner had a C-corp instead and took 40k salaries then left $100k in the company.<p>Roughly $22,250 (About 22%)<p>But then if you end up not spending that money because you made a boatload of cash the next year and want to take it out:<p>$3,337 (15% capital gains)<p>leading to a rough total of $25,587 (over 25.5%).<p>You might look at this example and say "hey that's just a few %" but as the income in question grows, so does the gap.<p>Edit: The real reason startups might end up as corporations is for the beneficial tax treatment investors can receive as holders of small business stock (1202, 1244).</text></item></parent_chain><comment><author>berberous</author><text>I've heard leading lawyers at the Silicon Valley firms recommend that any start-up seriously seeking VC funding choose a Delaware C-Corp.<p>The main reason being that investors do not want to deal with the pass-through income associated with an LLC or S-Corp.<p>(Of course, this is not legal advice, and you should speak to your lawyer.)</text></comment> |
41,177,326 | 41,177,290 | 1 | 2 | 41,174,014 | train | <story><title>How not to say the wrong thing (2013)</title><url>https://www.latimes.com/nation/la-oe-0407-silk-ring-theory-20130407-story.html</url></story><parent_chain><item><author>ants_everywhere</author><text>A lot of these ideas if taken literally would harm the person in the center.<p>There&#x27;s a long history of clinical psychology and evidence based psychology diverging, with the clinical psychologists adopting methods that actively harm their patients. The history starts of course with Freud, but another prominent example was the theory of recovered memories in the late 1900s.<p>In this case, the ring theory was developed out of hurt because the first author felt hurt by something a colleague said. That&#x27;s not generally a good basis for a theory of how to deal with something as complicated as trauma.<p>Even the basic idea of a &quot;center&quot; is suspect. In many cases, a traumatic event is an event that affects multiple people who must interact. The classic example of trauma is warfare. Families go through trauma. Even when there isn&#x27;t a common trauma, many conversations happen between individuals who have separate but comparable traumas. You don&#x27;t want to get into a frame of mind where you have to judge and compare people&#x27;s trauma to determine what they can and can&#x27;t say.<p>On top of that there is a lot of research on kvetching and whether it&#x27;s good for patients. In most cases I&#x27;m aware of, it&#x27;s harmful to them. Most evidence-based approaches, such as Cognitive Behavioral Therapy (CBT), advocate the opposite of what this article is advocating. CBT says that the patient does best when they talk back to their own distorted thoughts. That means not thinking of yourself as the center of some universe, and not thinking of yourself as a &quot;why me&quot; victim that is targeted by some cosmic force. This article is saying diametrically the opposite; it says you should reinforce people&#x27;s distorted thoughts.<p>Of course, you have to be kind and gentle to someone when they&#x27;re having a hard time. But that kindness can take a lot of forms, and this article is advocating a very particular and almost ideological approach.</text></item></parent_chain><comment><author>maxerickson</author><text>The article proposes a heuristic for people to use when offering support to those close to them. You are analyzing it as if it is a treatment plan for the person receiving support.<p>It doesn&#x27;t say that it&#x27;s good for someone in the hospital to spend all of their time complaining about their situation, it says that their co-worker who is visiting to be supportive probably shouldn&#x27;t bring up how it was hard for them to do it.</text></comment> | <story><title>How not to say the wrong thing (2013)</title><url>https://www.latimes.com/nation/la-oe-0407-silk-ring-theory-20130407-story.html</url></story><parent_chain><item><author>ants_everywhere</author><text>A lot of these ideas if taken literally would harm the person in the center.<p>There&#x27;s a long history of clinical psychology and evidence based psychology diverging, with the clinical psychologists adopting methods that actively harm their patients. The history starts of course with Freud, but another prominent example was the theory of recovered memories in the late 1900s.<p>In this case, the ring theory was developed out of hurt because the first author felt hurt by something a colleague said. That&#x27;s not generally a good basis for a theory of how to deal with something as complicated as trauma.<p>Even the basic idea of a &quot;center&quot; is suspect. In many cases, a traumatic event is an event that affects multiple people who must interact. The classic example of trauma is warfare. Families go through trauma. Even when there isn&#x27;t a common trauma, many conversations happen between individuals who have separate but comparable traumas. You don&#x27;t want to get into a frame of mind where you have to judge and compare people&#x27;s trauma to determine what they can and can&#x27;t say.<p>On top of that there is a lot of research on kvetching and whether it&#x27;s good for patients. In most cases I&#x27;m aware of, it&#x27;s harmful to them. Most evidence-based approaches, such as Cognitive Behavioral Therapy (CBT), advocate the opposite of what this article is advocating. CBT says that the patient does best when they talk back to their own distorted thoughts. That means not thinking of yourself as the center of some universe, and not thinking of yourself as a &quot;why me&quot; victim that is targeted by some cosmic force. This article is saying diametrically the opposite; it says you should reinforce people&#x27;s distorted thoughts.<p>Of course, you have to be kind and gentle to someone when they&#x27;re having a hard time. But that kindness can take a lot of forms, and this article is advocating a very particular and almost ideological approach.</text></item></parent_chain><comment><author>nine_k</author><text>This is fair. But I think that instead of debunking this approach, it just limits its applicability.<p>(1) Keep the &quot;kvetching order&quot; for the (relatively) short time when the impact of the trauma is still very strong and hasn&#x27;t been processed by the person in the center.<p>(2) Do not allow two systems of kvetching rings clash. Yes, this includes both warfare, hopefully far from most people here, and, say, divorces.<p>This is not a universal solution. Taken too literally, or too long-term, it will harm the person(s) in the center it&#x27;s intended to protect. Yes, sometimes the only way out of pain is through, &quot;no pain, no gain&quot;. But this is a good rule-of-thumb kind of solution that helps limit the pain inflicted to the people <i>definitely more hurt than you</i>, without any significant gain. Maybe a traumatized person, for their long-term benefit. needs to have a difficult conversation that would be extra painful due to the trauma. But there&#x27;s no reason to inflict pain by small talk and trivial daily iissues.</text></comment> |
33,353,581 | 33,353,010 | 1 | 2 | 33,351,647 | train | <story><title>An ode to that “coffee friend”</title><url>https://tiramisu.bearblog.dev/coffee-gift/</url></story><parent_chain><item><author>fishtoaster</author><text>I thing I decided late in life is that being really into things is cool.<p>Something I&#x27;m rather sad about is that highschool kinda beat that attitude out of me. I was a classic nerd, including all the bad attributes that label comes with, but also one really good one: I was really into a number of things. But I learned from hard experience that being super into stuff was lame - being disinterested and too cool for stuff was hip. I internalized that attitude.<p>Even into adulthood, I occasionally find myself making fun of people for being into specific things. I eventually made myself a rule: if someone really enjoys something that&#x27;s not hurting anyone, that&#x27;s an admirable trait. It&#x27;s easy to obey this rule for things I like: science fiction, fancy beer, programming. It&#x27;s not too hard to obey this rule for things that I&#x27;m not personally into, but are culturally adjacent to me: classical music, literature, skiing, fancy coffee. It&#x27;s harder for things that are not as cool among my social group. I sometimes have to remind myself that being super into football, nascar, or the bachelorette is just as admirable as being into my things. Un-ironic enthusiasm is one of our best traits as humans, even when directed towards things I don&#x27;t personally get that excited about.<p>And so I&#x27;ll always appreciate that coffee friend. They&#x27;re lucky enough to have maintained the ability to nerd out about something and I&#x27;m glad of it.</text></item></parent_chain><comment><author>koonsolo</author><text>This &quot;too cool for stuff&quot; sounds like US culture. I never experienced that kind of thing in EU. We each had our own friend groups, and didn&#x27;t really care what the other groups were into.<p>I once heard an artist say (can&#x27;t remember which one), that they loved playing in Europe, since everyone at a festival is there to have fun. While in US, everyone is there to look cool.</text></comment> | <story><title>An ode to that “coffee friend”</title><url>https://tiramisu.bearblog.dev/coffee-gift/</url></story><parent_chain><item><author>fishtoaster</author><text>I thing I decided late in life is that being really into things is cool.<p>Something I&#x27;m rather sad about is that highschool kinda beat that attitude out of me. I was a classic nerd, including all the bad attributes that label comes with, but also one really good one: I was really into a number of things. But I learned from hard experience that being super into stuff was lame - being disinterested and too cool for stuff was hip. I internalized that attitude.<p>Even into adulthood, I occasionally find myself making fun of people for being into specific things. I eventually made myself a rule: if someone really enjoys something that&#x27;s not hurting anyone, that&#x27;s an admirable trait. It&#x27;s easy to obey this rule for things I like: science fiction, fancy beer, programming. It&#x27;s not too hard to obey this rule for things that I&#x27;m not personally into, but are culturally adjacent to me: classical music, literature, skiing, fancy coffee. It&#x27;s harder for things that are not as cool among my social group. I sometimes have to remind myself that being super into football, nascar, or the bachelorette is just as admirable as being into my things. Un-ironic enthusiasm is one of our best traits as humans, even when directed towards things I don&#x27;t personally get that excited about.<p>And so I&#x27;ll always appreciate that coffee friend. They&#x27;re lucky enough to have maintained the ability to nerd out about something and I&#x27;m glad of it.</text></item></parent_chain><comment><author>bliteben</author><text>I was recently struck by this tidbit about Cormac McCarthy:<p>&gt; As a child, McCarthy saw no value in school, preferring to pursue his own interests. He described a moment when his teacher asked the class about their hobbies. McCarthy answered eagerly, as he later said, &quot;I was the only one with any hobbies and I had every hobby there was ... name anything, no matter how esoteric. I could have given everyone a hobby and still had 40 or 50 to take home.&quot;[15]</text></comment> |
39,265,462 | 39,265,190 | 1 | 2 | 39,261,511 | train | <story><title>Cable companies, automakers try to derail FTC, FCC quest to kill misleading fees</title><url>https://www.techdirt.com/2024/02/05/cable-companies-automakers-try-to-derail-ftc-fcc-quest-to-kill-misleading-fees/</url></story><parent_chain><item><author>mgkimsal</author><text>With so many local taxing jurisdiction, it&#x27;s essentially impossible. I bought something from my office, and if it&#x27;s shipped to my office, I pay one tax. Shipped to my home (in a neighboring county), it&#x27;s a different (lower) tax.<p>I did some POS work for a company years back and tried to integrate &#x27;taxes&#x27;. I was replacing an earlier system, and I used modern tax SaaS (avalara, IIRC). The client was telling me all my taxes were wrong, but... digging in... Avalara was <i>correct</i>, and the client had been calculating and collecting taxes wrong for... about 15 years. I had no way to try to figure out how they were doing it &#x27;wrong&#x27; to match how they&#x27;d been doing it. This had to do with &#x27;service&#x2F;labor&#x27; income vs &#x27;product&#x27; vs &#x27;chemicals&#x27; they used. Different counties in the same state had different rates (which changed over different months&#x2F;years historically). Tribal lands had different rules still.<p>The biggest lesson I took from that was... if you do something (tax calculations), do it consistently and uniformly. Should they have been audited, it may have looked a bit better that they were at least consistent in their tax issues, instead of looking like they were explicitly trying to somehow intentionally scam customers or the govt.</text></item><item><author>jimt1234</author><text>I once read a comment here on HN from someone in Australia, saying that, according to local laws, advertised prices must match the final price, including taxes, fees, etc. So, if the price says &quot;$100&quot;, you&#x27;re gonna pay $100. That blew my mind. I&#x27;ve lived in the US my whole life; I never really thought a straight-forward pricing system was possible. Seriously.<p>Then I remember getting kinda depressed, because the pricing system here (in the US) isn&#x27;t going to change anytime soon. I recalled an article about Ticketmaster, which basically said that their system of showing the final price only at checkout, after a bunch of screens&#x2F;clicks, is hugely profitable for them, almost everyone still purchases the tickets, regardless of the fees, because the process is so painful and there&#x27;s really no alternative. Back to reality. Advertised ticket price = $100. Final price = $165. Ugh.</text></item><item><author>jacobyoder</author><text>When my wife first moved here to the US (from overseas), we&#x27;d pass by some used car places and they had cars with big &quot;$1999&quot; and &quot;$2799&quot; in the windows. &quot;Wow... they&#x27;ve got great prices!&quot; she said. I burst her bubble with &quot;that&#x27;s just &#x27;downpayment&#x27;&quot;. Eventually we went up close to one to show her &quot;yep, the car is actually $11k, but they put $1999 in giant numbers to get you to pull in.<p>She&#x27;s not <i>dumb</i> by any means, but I don&#x27;t think this was legal in the UK where she came from. That was a bit of an eye-opener for me.</text></item></parent_chain><comment><author>ryandrake</author><text>You could solve this in two ways:<p>1. Allow companies to advertise a price exclusive of tax (but inclusive of fees)<p>2. Require companies to list a single total price where the final price the customer pays is less than or equal to. So their advertised price would be inclusive of the highest tax rate the customer would be required to pay.<p>The oft-cited tax calculation &quot;problem&quot; is just an excuse.</text></comment> | <story><title>Cable companies, automakers try to derail FTC, FCC quest to kill misleading fees</title><url>https://www.techdirt.com/2024/02/05/cable-companies-automakers-try-to-derail-ftc-fcc-quest-to-kill-misleading-fees/</url></story><parent_chain><item><author>mgkimsal</author><text>With so many local taxing jurisdiction, it&#x27;s essentially impossible. I bought something from my office, and if it&#x27;s shipped to my office, I pay one tax. Shipped to my home (in a neighboring county), it&#x27;s a different (lower) tax.<p>I did some POS work for a company years back and tried to integrate &#x27;taxes&#x27;. I was replacing an earlier system, and I used modern tax SaaS (avalara, IIRC). The client was telling me all my taxes were wrong, but... digging in... Avalara was <i>correct</i>, and the client had been calculating and collecting taxes wrong for... about 15 years. I had no way to try to figure out how they were doing it &#x27;wrong&#x27; to match how they&#x27;d been doing it. This had to do with &#x27;service&#x2F;labor&#x27; income vs &#x27;product&#x27; vs &#x27;chemicals&#x27; they used. Different counties in the same state had different rates (which changed over different months&#x2F;years historically). Tribal lands had different rules still.<p>The biggest lesson I took from that was... if you do something (tax calculations), do it consistently and uniformly. Should they have been audited, it may have looked a bit better that they were at least consistent in their tax issues, instead of looking like they were explicitly trying to somehow intentionally scam customers or the govt.</text></item><item><author>jimt1234</author><text>I once read a comment here on HN from someone in Australia, saying that, according to local laws, advertised prices must match the final price, including taxes, fees, etc. So, if the price says &quot;$100&quot;, you&#x27;re gonna pay $100. That blew my mind. I&#x27;ve lived in the US my whole life; I never really thought a straight-forward pricing system was possible. Seriously.<p>Then I remember getting kinda depressed, because the pricing system here (in the US) isn&#x27;t going to change anytime soon. I recalled an article about Ticketmaster, which basically said that their system of showing the final price only at checkout, after a bunch of screens&#x2F;clicks, is hugely profitable for them, almost everyone still purchases the tickets, regardless of the fees, because the process is so painful and there&#x27;s really no alternative. Back to reality. Advertised ticket price = $100. Final price = $165. Ugh.</text></item><item><author>jacobyoder</author><text>When my wife first moved here to the US (from overseas), we&#x27;d pass by some used car places and they had cars with big &quot;$1999&quot; and &quot;$2799&quot; in the windows. &quot;Wow... they&#x27;ve got great prices!&quot; she said. I burst her bubble with &quot;that&#x27;s just &#x27;downpayment&#x27;&quot;. Eventually we went up close to one to show her &quot;yep, the car is actually $11k, but they put $1999 in giant numbers to get you to pull in.<p>She&#x27;s not <i>dumb</i> by any means, but I don&#x27;t think this was legal in the UK where she came from. That was a bit of an eye-opener for me.</text></item></parent_chain><comment><author>user_7832</author><text>I don&#x27;t think that&#x27;s true. India for example has a ton of different taxes and until a few years ago the differences between states and different products were significant. Yet that didn&#x27;t make it impossible, because everyone was already used to it.</text></comment> |
19,815,757 | 19,814,672 | 1 | 2 | 19,812,557 | train | <story><title>JetBlue explains to a passenger how it got a photo of her face</title><url>https://boingboing.net/2019/04/23/in-this-twitter-exchange-jetb.html</url></story><parent_chain><item><author>gumby</author><text>&gt; It&#x27;s important to know who is crossing the border, in both directions.<p>Why?<p>And if there exists an important reason to know that someone is exiting the country does that same criterion not also apply to exiting a state or city or neighborhood?<p>I am not being sarcastic; I am genuinely unable to come up with a reason it&#x27;s important to track <i>who</i> leaves almost any place, except in highly unusual cases (e.g. &quot;OK guys, chatmasta has gone; let&#x27;s get to work planning the surprise party for when he gets back&quot;)</text></item><item><author>chatmasta</author><text>Is it really that useful to identify someone who has overstayed their visa <i>when they are leaving the country</i>? Sure, you then know not to let them in next time. But it seems like a lot of effort when there are so many people overstaying their visa and <i>not</i> leaving out of the airports.<p>That said, even as a libertarian, privacy-conscious person, I&#x27;m not sure I have a problem with exit controls like this. It&#x27;s important to know who is crossing the border, in both directions.<p>But why do they even need the photo? Presumably the name is already on the ticket... surely they can detect overstays from names + address alone, not just photos?</text></item><item><author>crazygringo</author><text>Most relevant details, from the last link [1]:<p>&gt; <i>It took her photo, comparing her picture to a preloaded photo databased of all the passengers with tickets on this flight, and then she got a check mark, indicating she was cleared to board. The whole process took about five to six seconds.</i><p>&gt; <i>The Aruba experiment is expected to last somewhere between 45 and 90 days.</i><p>&gt; <i>&quot;We&#x27;re basically capturing that picture at the boarding gate, providing it to U.S. Customs and Border Protection. They&#x27;re identifying the traveler,&quot; Farrell said. &quot;It&#x27;s actually the U.S. government that&#x27;s implementing the biometric matching system that does all the hard analysis and crunching of the data.&quot;</i><p>&gt; <i>A biometric exit system to track non-U.S. citizens using their faces or fingerprints has long been a congressional mandate, particularly after 9&#x2F;11, to improve border security and identify people who&#x27;ve overstayed their visas.</i><p>&gt; <i>Crockford says people don&#x27;t know how CBP might share that data with local police. CBP insists it&#x27;ll discard photos taken of citizens, and only keep a database of non-citizens.</i><p>&gt; <i>Customs and Border Protection has been piloting similar biometric tests at airports in Atlanta, New York and the D.C. area. And, according to a customs official, the goal is to deploy facial recognition tech widely by early next year.</i><p>I guess it must be comparing with their passport photo? (Or visa photo, for foreigners?) It doesn&#x27;t seem much different from the way you&#x27;re already required to show your physical passport and they check your photo manually. It&#x27;s also always been pretty normal to have your photo taken by countries when passing through passport control. So I don&#x27;t really see what the problem would be here?<p>[1] <a href="https:&#x2F;&#x2F;www.wbur.org&#x2F;bostonomix&#x2F;2017&#x2F;06&#x2F;21&#x2F;jetblue-facial-recognition-pilot" rel="nofollow">https:&#x2F;&#x2F;www.wbur.org&#x2F;bostonomix&#x2F;2017&#x2F;06&#x2F;21&#x2F;jetblue-facial-re...</a></text></item></parent_chain><comment><author>URSpider94</author><text>Its worth pointing out that the US is literally the only country in the world that I have visited, in my recollection, that does not have passport control upon exiting the country.</text></comment> | <story><title>JetBlue explains to a passenger how it got a photo of her face</title><url>https://boingboing.net/2019/04/23/in-this-twitter-exchange-jetb.html</url></story><parent_chain><item><author>gumby</author><text>&gt; It&#x27;s important to know who is crossing the border, in both directions.<p>Why?<p>And if there exists an important reason to know that someone is exiting the country does that same criterion not also apply to exiting a state or city or neighborhood?<p>I am not being sarcastic; I am genuinely unable to come up with a reason it&#x27;s important to track <i>who</i> leaves almost any place, except in highly unusual cases (e.g. &quot;OK guys, chatmasta has gone; let&#x27;s get to work planning the surprise party for when he gets back&quot;)</text></item><item><author>chatmasta</author><text>Is it really that useful to identify someone who has overstayed their visa <i>when they are leaving the country</i>? Sure, you then know not to let them in next time. But it seems like a lot of effort when there are so many people overstaying their visa and <i>not</i> leaving out of the airports.<p>That said, even as a libertarian, privacy-conscious person, I&#x27;m not sure I have a problem with exit controls like this. It&#x27;s important to know who is crossing the border, in both directions.<p>But why do they even need the photo? Presumably the name is already on the ticket... surely they can detect overstays from names + address alone, not just photos?</text></item><item><author>crazygringo</author><text>Most relevant details, from the last link [1]:<p>&gt; <i>It took her photo, comparing her picture to a preloaded photo databased of all the passengers with tickets on this flight, and then she got a check mark, indicating she was cleared to board. The whole process took about five to six seconds.</i><p>&gt; <i>The Aruba experiment is expected to last somewhere between 45 and 90 days.</i><p>&gt; <i>&quot;We&#x27;re basically capturing that picture at the boarding gate, providing it to U.S. Customs and Border Protection. They&#x27;re identifying the traveler,&quot; Farrell said. &quot;It&#x27;s actually the U.S. government that&#x27;s implementing the biometric matching system that does all the hard analysis and crunching of the data.&quot;</i><p>&gt; <i>A biometric exit system to track non-U.S. citizens using their faces or fingerprints has long been a congressional mandate, particularly after 9&#x2F;11, to improve border security and identify people who&#x27;ve overstayed their visas.</i><p>&gt; <i>Crockford says people don&#x27;t know how CBP might share that data with local police. CBP insists it&#x27;ll discard photos taken of citizens, and only keep a database of non-citizens.</i><p>&gt; <i>Customs and Border Protection has been piloting similar biometric tests at airports in Atlanta, New York and the D.C. area. And, according to a customs official, the goal is to deploy facial recognition tech widely by early next year.</i><p>I guess it must be comparing with their passport photo? (Or visa photo, for foreigners?) It doesn&#x27;t seem much different from the way you&#x27;re already required to show your physical passport and they check your photo manually. It&#x27;s also always been pretty normal to have your photo taken by countries when passing through passport control. So I don&#x27;t really see what the problem would be here?<p>[1] <a href="https:&#x2F;&#x2F;www.wbur.org&#x2F;bostonomix&#x2F;2017&#x2F;06&#x2F;21&#x2F;jetblue-facial-recognition-pilot" rel="nofollow">https:&#x2F;&#x2F;www.wbur.org&#x2F;bostonomix&#x2F;2017&#x2F;06&#x2F;21&#x2F;jetblue-facial-re...</a></text></item></parent_chain><comment><author>unreal37</author><text>Most countries of the world have maximum visit lengths as part of a visitor visa.<p>And those maximum visit lengths are counted on an annual basis. So you can only visit the US 179 days out of 365.<p>So they need to know when you came in and when you left. It&#x27;s not good enough to just leave and not tell anyone.</text></comment> |
35,859,312 | 35,855,997 | 1 | 3 | 35,855,398 | train | <story><title>Prolog for data science</title><url>https://emiruz.com/post/2023-04-30-prolog-for-data-science/</url></story><parent_chain></parent_chain><comment><author>burakemir</author><text>Logic programming offers a good foundation for anything that people call &quot;rule engines.&quot; Within logic programming, there is some variation on the degree of declarativeness.<p>Datalog is arguably the minimal core logic programming, similar to what the lambda calculus achieves for functional programming. Unfortunately, it has been forgotten outside of database and query processing realm. A resurgence has happened in recent years, as PL researchers and also industry have discovered the virtues of datalog (e.g. Flix, DataFun). My own attempt at making this more widely known is here <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;mangle">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;mangle</a>, a language from the datalog family and its implementation as a go library.<p>As the example shows: plain &quot;rules&quot; (or: plain datalog) is rarely enough to capture everything that one wants to express: the question then is, how to combine a pure declarative &quot;kernel&quot; with more general purpose programming (e.g. mapping a list).<p>PROLOG offered one answer, already in the 1980s, but I fully reject it: the fact that the writing a program in the wrong order with negation and recursion makes it non-terminating is not something we&#x27;d want everyone to deal with. Datalog with stratified recursion is somewhat better, as &quot;layers of rules&quot; is a concept that is easy to understand.<p>In mainstream programming languages, the possibility of writing non-terminating programs also exists, but is rarely an issue. That is why I believe a good combination of declarative and general-purpose has to make it really easy to recognize which parts of a program are in the declarative, terminating, safe kernel and which parts require more attention from the programmer.</text></comment> | <story><title>Prolog for data science</title><url>https://emiruz.com/post/2023-04-30-prolog-for-data-science/</url></story><parent_chain></parent_chain><comment><author>henrydark</author><text>A different, also very explicit way to go about this type of problem, that also generalizes fully, is to use a Bayesian hierarchical model of a dirichlet process and sub-isotonic regressions.<p>Gelman et al have written a lot about this, and they have a proposed general workflow [1]<p>[1] Bayesian Workflow <a href="https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2011.01808" rel="nofollow">https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;2011.01808</a></text></comment> |
7,587,582 | 7,587,600 | 1 | 3 | 7,586,225 | train | <story><title>TrueCrypt Security Assessment [pdf]</title><url>https://opencryptoaudit.org/reports/iSec_Final_Open_Crypto_Audit_Project_TrueCrypt_Security_Assessment.pdf</url></story><parent_chain><item><author>sigil</author><text><i>The iteration count used by TrueCrypt [in its PBKDF2 key derivation] is either 1000 or 2000, depending on the hash function and use case. In both cases, this iteration count is too small to prevent password guessing attacks for even moderately complex passwords.</i><p>Until TrueCrypt gets patched to use scrypt for key derivation, roughly how long should a volume password be to put it out of reach?<p>Edit: There&#x27;s a table in the scrypt paper from 2002 [1] that estimates the cost of various brute force attacks. Back then, a PBKDF2 iteration count of 86,000 and a password of length 40 would cost $200K to crack. TrueCrypt&#x27;s choice of 1000-2000 iterations look staggeringly low in comparison. And that&#x27;s not even accounting for hardware advances in the last 12 years.<p>[1] page 14, <a href="http://www.tarsnap.com/scrypt/scrypt.pdf" rel="nofollow">http:&#x2F;&#x2F;www.tarsnap.com&#x2F;scrypt&#x2F;scrypt.pdf</a></text></item></parent_chain><comment><author>ef47d35620c1</author><text>I do not think this is significantly new as it has been documented in the official TC source code and various 3rd-party source code (TCHead, tcplay, etc.) for many years.<p>I was the first to crack the majority of the TrueCrypt volumes in the 2012 <i></i><i>Defcon - Crack Me if You Can</i><i></i> password cracking contest using TCHead running on an old Intel Celeron processor.<p>Write-up: <a href="http://16s.us/software/wm/Defcon/cmiyc_2012.txt" rel="nofollow">http:&#x2F;&#x2F;16s.us&#x2F;software&#x2F;wm&#x2F;Defcon&#x2F;cmiyc_2012.txt</a><p>Contest Page (3rd table down): <a href="http://contest-2012.korelogic.com/stats.html" rel="nofollow">http:&#x2F;&#x2F;contest-2012.korelogic.com&#x2F;stats.html</a><p>TCHead: <a href="http://16s.us/software/TCHead/" rel="nofollow">http:&#x2F;&#x2F;16s.us&#x2F;software&#x2F;TCHead&#x2F;</a></text></comment> | <story><title>TrueCrypt Security Assessment [pdf]</title><url>https://opencryptoaudit.org/reports/iSec_Final_Open_Crypto_Audit_Project_TrueCrypt_Security_Assessment.pdf</url></story><parent_chain><item><author>sigil</author><text><i>The iteration count used by TrueCrypt [in its PBKDF2 key derivation] is either 1000 or 2000, depending on the hash function and use case. In both cases, this iteration count is too small to prevent password guessing attacks for even moderately complex passwords.</i><p>Until TrueCrypt gets patched to use scrypt for key derivation, roughly how long should a volume password be to put it out of reach?<p>Edit: There&#x27;s a table in the scrypt paper from 2002 [1] that estimates the cost of various brute force attacks. Back then, a PBKDF2 iteration count of 86,000 and a password of length 40 would cost $200K to crack. TrueCrypt&#x27;s choice of 1000-2000 iterations look staggeringly low in comparison. And that&#x27;s not even accounting for hardware advances in the last 12 years.<p>[1] page 14, <a href="http://www.tarsnap.com/scrypt/scrypt.pdf" rel="nofollow">http:&#x2F;&#x2F;www.tarsnap.com&#x2F;scrypt&#x2F;scrypt.pdf</a></text></item></parent_chain><comment><author>lucb1e</author><text>&gt; a password of length 40 would cost $200K to crack<p>I&#x27;d love to see someone try. Here, an md5, those are super vulnerable right? This is a 9 character password. Piece of cake if I should believe the news.<p><pre><code> f1f107c27cae21b5b5b01002e9c9ead8</code></pre></text></comment> |
25,018,689 | 25,018,715 | 1 | 2 | 25,016,362 | train | <story><title>V8 has optimized new JavaScript language features (2018)</title><url>https://github.com/thlorenz/v8-perf/blob/master/language-features.md</url></story><parent_chain><item><author>chrismorgan</author><text>&gt; <i>const performs a lot better in optimized code than var or let</i><p>This puzzles me; if only ever one value is assigned, I would have expected at least <i>let</i> to perform identically to <i>const</i> in optimised code, because I expect the optimiser to look at the <i>let</i> and say “never reassigned, turn it into a <i>const</i>”. By the sound of it, I’m wrong, and I’d be interested to know <i>why</i> I’m wrong.</text></item></parent_chain><comment><author>rewq4321</author><text>JavaScript is very dynamic. Here I define a variable with `let` and then change it:<p>let foo = 10;
eval(&quot;fo&quot;+&quot;o = 10&quot;);<p>I could &quot;obfuscate&quot; that eval assignment as much as I like. So you can&#x27;t completely statically analyse `let` variables.<p>That said, it&#x27;s likely you&#x27;d end up with perf <i>very</i> close to `const` in a very &quot;hot&quot; part of your code, since a good JIT compiler like V8 will eventually make &quot;assumptions&quot; about your code, and optimise around them, while having (ideally cheap) checks in place to ensure the assumptions continue to hold.</text></comment> | <story><title>V8 has optimized new JavaScript language features (2018)</title><url>https://github.com/thlorenz/v8-perf/blob/master/language-features.md</url></story><parent_chain><item><author>chrismorgan</author><text>&gt; <i>const performs a lot better in optimized code than var or let</i><p>This puzzles me; if only ever one value is assigned, I would have expected at least <i>let</i> to perform identically to <i>const</i> in optimised code, because I expect the optimiser to look at the <i>let</i> and say “never reassigned, turn it into a <i>const</i>”. By the sound of it, I’m wrong, and I’d be interested to know <i>why</i> I’m wrong.</text></item></parent_chain><comment><author>dean177</author><text>The const keyword also guarantees that once a value is assigned to its slot it won&#x27;t change in the future.
As a result TurboFan skips loading and checking const slot values slots each time they are accessed (Function Context Specialization)<p><a href="https:&#x2F;&#x2F;github.com&#x2F;thlorenz&#x2F;v8-perf&#x2F;blob&#x2F;master&#x2F;language-features.md#const" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thlorenz&#x2F;v8-perf&#x2F;blob&#x2F;master&#x2F;language-fea...</a></text></comment> |
5,007,784 | 5,007,717 | 1 | 2 | 5,007,565 | train | <story><title>Android SDK is now proprietary</title><url>http://blogs.fsfe.org/torsten.grote/2013/01/03/android-sdk-is-now-proprietary-replicant-to-the-rescue/</url></story><parent_chain></parent_chain><comment><author>fpgeek</author><text>Hold on a minute.<p>While the Android SDK terms have changed over the years (most notably with the recent "anti-fragmentation" clause), that's not what the post is talking about. Instead, the post is identifying the Android SDK as non-free because you have to agree to Google's Terms and Conditions in order to use it at all. That's absolutely correct, however...<p>As someone who downloaded the original SDK in 2007, I can tell you that this was true from the beginning. Sadly the Wayback Machine is having trouble retrieving their first crawl of the terms (February 2009), but here's a crawl from January 2010 that shows that the offending clause has been there for at least 3 years: <a href="http://web.archive.org/web/20100111025451/http://developer.android.com/intl/ja/sdk/terms.html" rel="nofollow">http://web.archive.org/web/20100111025451/http://developer.a...</a><p>A more accurate title would be: Google's Android SDK has always been proprietary, but I only just noticed.<p>Edit: Based on the date at the bottom of the wayback page, the linked version of the agreement dates back to April 2009.</text></comment> | <story><title>Android SDK is now proprietary</title><url>http://blogs.fsfe.org/torsten.grote/2013/01/03/android-sdk-is-now-proprietary-replicant-to-the-rescue/</url></story><parent_chain></parent_chain><comment><author>codeflo</author><text>At first I thought this is hyperbole, but there's an anti-forking clause in the license agreement:<p>&#62; "3.4 You agree that you will not take any actions that may cause or result in the fragmentation of Android, including but not limited to distributing, participating in the creation of, or promoting in any way a software development kit derived from the SDK."<p>IANAL, but this seems to be designed to prevent projects like the Kindle Fire from building their own ecosystem on Google's code. Good for Google I guess, but no longer in the spirit of open source.</text></comment> |
34,280,228 | 34,280,054 | 1 | 2 | 34,278,005 | train | <story><title>Rising rent, not poverty, is the real driver of homelessness</title><url>https://www.kcrw.com/news/shows/press-play-with-madeleine-brand/house-speaker-rain-homeless-film-reviews/housing</url></story><parent_chain><item><author>dionidium</author><text>Yeah, the thing I always say about the people who complain about tech workers and gentrification in a place like San Francisco is like, look, if you can&#x27;t figure out how to gain from an influx of wealthy, highly-educated, low-criminality, nerdy tech workers, then that&#x27;s really on you. What a gift! Any city would be lucky to have that &quot;problem.&quot; You have to <i>actively</i> work to make that a negative (by, say, refusing to allow almost any new housing for literally decades).<p>The consequences of that decision are fairly obvious and straightforward and they&#x27;ve by now been explained to everybody 50 times, but this is the path these cities choose anyway! It&#x27;s their choice and it&#x27;s what they keep choosing.<p>Cities like San Francisco have said clearly, firmly, and repeatedly: &quot;we would rather suffer a housing crisis than allow the city to change too rapidly.&quot; At this point what else can you say in response?</text></item><item><author>jlmorton</author><text>Imagine you&#x27;re a municipality like San Francisco. You control all of the zoning regulations, and many of the permitting requirements. You have a AA+ credit rating, and even in today&#x27;s higher rate environment, you can borrow billions of dollars at 6%.<p>You already own oodles of land. You can build to whatever height you want within reason, because you control the zoning, and you even control many of the ordinances that allow citizens to block development (though certainly not all, like CEQA and NEPA). So you have lots of lands to build on, and what you build is largely in your control.<p>Construction costs in San Francisco are sky-high, at $440 sq ft. But people will happily pay you $40&#x2F;sq foot per year for housing, probably for 75 years.<p>How is this not the easiest decision in the world?<p>Create a housing development agency, become a permanent developer, and landlord. Never stop building. Put proper incentives in place, so that employees at the agency can partake in the profits, incentivizing them to be efficient. Never stop doing this.<p>You might not be great at this at first, but fifty years later you will be.</text></item></parent_chain><comment><author>danjac</author><text>Maybe San Francisco is just not suitable any more? There&#x27;s nothing magic about SF&#x27;s geography that makes it a tech hub. It&#x27;s not a mining town that needs to be next to coal or minerals, or a ski resort town that needs some mountains and snow. It&#x27;s based on work that can literally be done anywhere.<p>Hollywood, after all, was just a dusty desert town that became the hub of the movie business because it was easier to move there and start a new one than dealing with Edison&#x27;s lawyers back East, so maybe the tech industry needs to get out of SF, start a new hub somewhere else, and leave the city to the NIMBYs.</text></comment> | <story><title>Rising rent, not poverty, is the real driver of homelessness</title><url>https://www.kcrw.com/news/shows/press-play-with-madeleine-brand/house-speaker-rain-homeless-film-reviews/housing</url></story><parent_chain><item><author>dionidium</author><text>Yeah, the thing I always say about the people who complain about tech workers and gentrification in a place like San Francisco is like, look, if you can&#x27;t figure out how to gain from an influx of wealthy, highly-educated, low-criminality, nerdy tech workers, then that&#x27;s really on you. What a gift! Any city would be lucky to have that &quot;problem.&quot; You have to <i>actively</i> work to make that a negative (by, say, refusing to allow almost any new housing for literally decades).<p>The consequences of that decision are fairly obvious and straightforward and they&#x27;ve by now been explained to everybody 50 times, but this is the path these cities choose anyway! It&#x27;s their choice and it&#x27;s what they keep choosing.<p>Cities like San Francisco have said clearly, firmly, and repeatedly: &quot;we would rather suffer a housing crisis than allow the city to change too rapidly.&quot; At this point what else can you say in response?</text></item><item><author>jlmorton</author><text>Imagine you&#x27;re a municipality like San Francisco. You control all of the zoning regulations, and many of the permitting requirements. You have a AA+ credit rating, and even in today&#x27;s higher rate environment, you can borrow billions of dollars at 6%.<p>You already own oodles of land. You can build to whatever height you want within reason, because you control the zoning, and you even control many of the ordinances that allow citizens to block development (though certainly not all, like CEQA and NEPA). So you have lots of lands to build on, and what you build is largely in your control.<p>Construction costs in San Francisco are sky-high, at $440 sq ft. But people will happily pay you $40&#x2F;sq foot per year for housing, probably for 75 years.<p>How is this not the easiest decision in the world?<p>Create a housing development agency, become a permanent developer, and landlord. Never stop building. Put proper incentives in place, so that employees at the agency can partake in the profits, incentivizing them to be efficient. Never stop doing this.<p>You might not be great at this at first, but fifty years later you will be.</text></item></parent_chain><comment><author>luckylion</author><text>Especially for a city that is explicitly progressive, why the &quot;all rapid change is bad, it must take decades or centuries, otherwise it&#x27;s not natural&quot; approach?<p>Germany&#x27;s large cities have similar issues where they don&#x27;t want to start building new districts because it&#x27;d be artificial and not naturally grown building by building. And it&#x27;s better to have rents double every 10 years, apparently.<p>I don&#x27;t get the &quot;why&quot;, but the approach is fairly explicit -- and politicians get reelected while following it, so I guess it&#x27;s what &quot;the people&quot; want.</text></comment> |
7,993,308 | 7,993,328 | 1 | 3 | 7,993,076 | train | <story><title>How Does One Create A Gtk+ Application?</title><url>http://blogs.gnome.org/mortenw/2014/06/23/how-does-one-create-a-gtk-application/</url></story><parent_chain><item><author>jeorgun</author><text>I feel really conflicted about Qt. On one hand, as a graphical toolkit&#x2F;environment, it&#x27;s great. It&#x27;s well-structured and easy to use, and QML is basically everything web applications should have been.<p>On the other hand, as a C++ library it really couldn&#x27;t be worse, with its flagrant reinvention of the standard library, pervasive UTF16, complex object hierarchies, raw pointers, extensive use of macros, etc., etc.<p>Maybe I&#x27;m just too choosy, but it&#x27;d be <i>really</i> nice to have a graphical toolkit that didn&#x27;t have such an air of sausage factory to it.</text></item><item><author>scrollaway</author><text>This post was written by Morten Welinder, the author of Gnumeric and a popular GNOME blogger.<p>I feel really bad for GTK developers. The GNOME guys have clearly taken the toolkit from a &quot;general purpose&quot; direction to a much more gnome-centric one.<p>At the same time though, I can&#x27;t help but be hopeful for the future. Qt is a wonderful project, with a bunch of wonderful licenses, developed in a wonderfully-open environment (It&#x27;s not like before!) and with wonderful improvements already available in Qt 5. With more and more applications switching to it, I see Qt as a central part of the Linux desktop ecosystem in the future - finally, not only will we have a beautiful desktop with common themes for all apps, but also the power of a truly cross-platform toolkit in most Linux apps. It will be nice.</text></item></parent_chain><comment><author>asgeir</author><text>I think that the reason for reimplementing stl functionality is that they want complex types such as QString as a part of their external interface and they want different minor versions to be binary compatible which can&#x27;t be guaranteed for types like std::string unless everything is compiled with the same compiler and runtime. See <a href="https://qt-project.org/wiki/Dpointer" rel="nofollow">https:&#x2F;&#x2F;qt-project.org&#x2F;wiki&#x2F;Dpointer</a><p>As for the raw pointer use you should always use QPointer smart pointers for objects whose lifetime you don&#x27;t control. However they don&#x27;t recommend passing QPointers as function parameters since they are easily&#x2F;cheaply constructed and the reference count is embedded in the QObject instance itself in any case.</text></comment> | <story><title>How Does One Create A Gtk+ Application?</title><url>http://blogs.gnome.org/mortenw/2014/06/23/how-does-one-create-a-gtk-application/</url></story><parent_chain><item><author>jeorgun</author><text>I feel really conflicted about Qt. On one hand, as a graphical toolkit&#x2F;environment, it&#x27;s great. It&#x27;s well-structured and easy to use, and QML is basically everything web applications should have been.<p>On the other hand, as a C++ library it really couldn&#x27;t be worse, with its flagrant reinvention of the standard library, pervasive UTF16, complex object hierarchies, raw pointers, extensive use of macros, etc., etc.<p>Maybe I&#x27;m just too choosy, but it&#x27;d be <i>really</i> nice to have a graphical toolkit that didn&#x27;t have such an air of sausage factory to it.</text></item><item><author>scrollaway</author><text>This post was written by Morten Welinder, the author of Gnumeric and a popular GNOME blogger.<p>I feel really bad for GTK developers. The GNOME guys have clearly taken the toolkit from a &quot;general purpose&quot; direction to a much more gnome-centric one.<p>At the same time though, I can&#x27;t help but be hopeful for the future. Qt is a wonderful project, with a bunch of wonderful licenses, developed in a wonderfully-open environment (It&#x27;s not like before!) and with wonderful improvements already available in Qt 5. With more and more applications switching to it, I see Qt as a central part of the Linux desktop ecosystem in the future - finally, not only will we have a beautiful desktop with common themes for all apps, but also the power of a truly cross-platform toolkit in most Linux apps. It will be nice.</text></item></parent_chain><comment><author>general_failure</author><text>&gt; On the other hand, as a C++ library it really couldn&#x27;t be worse, with its flagrant reinvention of the standard library, pervasive UTF16, complex object hierarchies, raw pointers, extensive use of macros, etc., etc.<p>Have you given Qt a serious try? Most of the above arguments don&#x27;t hold good at all.
* c++ std lib is total crap. Anyone arguing for it has no idea what a good API is. Have you used Qt container? It&#x27;s as intuitive as it gets. The C++ std lib is performance optimized and most desktop apps don&#x27;t need it. It comes at a cost of developers having to learn complex APIs.<p>* Complex object hierarchies - huh? Qt&#x27;s value based types need no memory management. The pointer types has a simple parent-child relationship. Delete the parent and all children are deleted as well. How hard is this?<p>* Raw pointers - Commented truly like someone who hasn&#x27;t understood Qt.<p>* Why do you care about UTF16? It&#x27;s an internal representation. BTW, Do you write any web apps? Do you know or care what internal representation is used by strings? If you some ultra-special case of a performance critical app, no string library out there will be good for you. You will have to roll out your own.<p>Let me guess. It really looks like you are one on the few guys who likes writing libraries (as opposed to apps). People who write apps love Qt. People who like writing libraries don&#x27;t like any other library other than their own because their way is the true way.<p>There are many valid criticism of Qt but these are none of them.</text></comment> |
16,013,268 | 16,012,210 | 1 | 2 | 16,010,173 | train | <story><title>How I learned to program</title><url>https://danluu.com/learning-to-program/</url></story><parent_chain><item><author>mattfrommars</author><text>Looking back in my life when I was born a year after Tavish Armstrong, I just feel so, disappointed how my life turned out to be. I had similar dreams and hope but they didn&#x27;t work out in the end.<p>Only if I told my younger self to actually go through the Macromedia Flash book I borrowed once in high school, I would have had my first glimpse in computing. But during my early days, I never had anyone who was remotely interested in computers. I wasn&#x27;t great at socializing either which would have lead me to people who were in machines. There was AP CS course at my university but I never took it only because I thought it was too hard and instead took AP Calc.<p>Without any concept of computing or the power of programming, how can a kid get into life of software development? All the random success stories I&#x27;ve read of popular programmers these days, all of their younger days began with someone giving them a gift or some &#x27;assembly&#x27; language computer and started from there.<p>Wish the pursuit of programming caught me much earlier in life than right now, went into wrong major and always thought about programming, programming. Having friends and family who aren&#x27;t into computers didn&#x27;t help either until last year. So much life was wasted.</text></item></parent_chain><comment><author>solotronics</author><text>I used to spend 14 hours sitting at my computer installing weird operating systems and learning to code and hack games when I was 10. I still do basically the same thing at 30 but its cloud systems instead of games and will probably do this the rest of my life. If this isn&#x27;t something that you are naturally driven to why force yourself to it? Find what you love and put your best effort into it. If what you love is just hanging out then be happy with that.</text></comment> | <story><title>How I learned to program</title><url>https://danluu.com/learning-to-program/</url></story><parent_chain><item><author>mattfrommars</author><text>Looking back in my life when I was born a year after Tavish Armstrong, I just feel so, disappointed how my life turned out to be. I had similar dreams and hope but they didn&#x27;t work out in the end.<p>Only if I told my younger self to actually go through the Macromedia Flash book I borrowed once in high school, I would have had my first glimpse in computing. But during my early days, I never had anyone who was remotely interested in computers. I wasn&#x27;t great at socializing either which would have lead me to people who were in machines. There was AP CS course at my university but I never took it only because I thought it was too hard and instead took AP Calc.<p>Without any concept of computing or the power of programming, how can a kid get into life of software development? All the random success stories I&#x27;ve read of popular programmers these days, all of their younger days began with someone giving them a gift or some &#x27;assembly&#x27; language computer and started from there.<p>Wish the pursuit of programming caught me much earlier in life than right now, went into wrong major and always thought about programming, programming. Having friends and family who aren&#x27;t into computers didn&#x27;t help either until last year. So much life was wasted.</text></item></parent_chain><comment><author>aloner</author><text>Don&#x27;t get too caught up with success stories about &quot;epic programmers&quot;, there&#x27;s more than one path to a what you want. Stay focused and you&#x27;ll get closer everyday.</text></comment> |
29,398,134 | 29,398,093 | 1 | 2 | 29,393,937 | train | <story><title>New research links potentially toxic fat-protein complexes to Alzheimer's</title><url>https://www.medicalnewstoday.com/articles/likely-cause-of-alzheimers-identified-in-new-study</url></story><parent_chain><item><author>echelon</author><text>(Reposting again since it wasn&#x27;t noticed ~1.5 months ago.)<p>This paper looks really good.<p>Amyloid beta has long been implicated in Alzheimer&#x27;s. Now they&#x27;ve found a way to trigger the disease by generating amyloid in the liver and shown that it can reach the brain (by crossing the blood brain barrier). This setup was shown to trigger the disease. It&#x27;s a very plausible mechanism that worked end-to-end and seems to fit all of the observational evidence we&#x27;ve gathered.<p>The paper: Synthesis of human amyloid restricted to liver results in an Alzheimer disease–like neurodegenerative phenotype<p><a href="https:&#x2F;&#x2F;journals.plos.org&#x2F;plosbiology&#x2F;article?id=10.1371&#x2F;journal.pbio.3001358" rel="nofollow">https:&#x2F;&#x2F;journals.plos.org&#x2F;plosbiology&#x2F;article?id=10.1371&#x2F;jou...</a><p>Abstract:<p>&gt; Several lines of study suggest that peripheral metabolism of amyloid beta (Aß) is associated with risk for Alzheimer disease (AD). In blood, greater than 90% of Aß is complexed as an apolipoprotein, raising the possibility of a lipoprotein-mediated axis for AD risk. In this study, we report that genetic modification of C57BL&#x2F;6J mice engineered to synthesise human Aß only in liver (hepatocyte-specific human amyloid (HSHA) strain) has marked neurodegeneration concomitant with capillary dysfunction, parenchymal extravasation of lipoprotein-Aß, and neurovascular inflammation. Moreover, the HSHA mice showed impaired performance in the passive avoidance test, suggesting impairment in hippocampal-dependent learning. Transmission electron microscopy shows marked neurovascular disruption in HSHA mice. This study provides causal evidence of a lipoprotein-Aß &#x2F;capillary axis for onset and progression of a neurodegenerative process.<p>We knew amyloid beta was highly associated with Alzheimer&#x27;s. We&#x27;ve been studying this for decades.<p>The researchers noticed amyloid beta was found in lipoprotein complexes (fat+protein), then experimentally modified the liver to produce it. The protein leaks out of the liver and causes neurodegeneration.<p>&gt; Insight into how blood Aβ increases risk for AD comes from findings that in humans, greater than 90% of blood Aβ1–40 and 97% of the particularly pro-amyloidogenic Aβ1–42 is associated with plasma lipoproteins [3], principally the triglyceride-rich lipoproteins (TRLs) of hepatically derived very low-density lipoproteins (VLDLs) and of postprandial chylomicrons [4,5]. Direct evidence of a peripheral TRL-Aβ&#x2F;vascular risk pathway for AD comes from studies in preclinical models, which show that cerebral capillary amyloid-angiopathy, a common early neurovascular pathology of AD, may be a consequence of parenchymal extravasation of TRL-Aβ.<p>This implicates fatty acids originating from the liver migrating (extravasation). And they just experimentally reproduced this.<p>Some quotes from the linked article:<p>&gt; “This study,” he added, “shows that exaggerated abundance in blood of potentially toxic fat-protein complexes can damage microscopic brain blood vessels called capillaries and, thereafter, leak into the brain, causing inflammation and brain cell death.”<p>&gt; “[Changes] in dietary behaviors and certain medications could potentially reduce blood concentration of these toxic fat-protein complexes, [subsequently] reducing the risk for Alzheimer’s or [slowing] down the disease progression,” he concluded.<p>This would suggest that liver health and diet can play a factor in disease development.<p>Of course there&#x27;s the chance that this is just a really good &quot;biologically plausible&quot; mechanism that looks good on paper, but might not naturally occur outside of this experimental setup. There will need to be much more research to either prove or rule this out.<p>This looks exciting though.</text></item></parent_chain><comment><author>tux3</author><text>I&#x27;m curious how this squares up with the failure of drugs targeting beta-amyloid plaques. Despite some of these drugs being very effective at clearing Aβ plaques, they don&#x27;t seem to ever achieve any significant benefit in clinical trials.<p>Reading Derek Lowe, you&#x27;d get the impression that the beta amyloid hypothesis is a formerly exciting thing of the past with a disastrous track record.<p>&gt;the relentless failure in this area, when amyloid plaques seemed for so long to be the most likely causative agent for the disease, is really something that makes you question things.<p>&gt;Add in the additional complete failures for every other attempt at the amyloid mechanism (secretase inhibitors, for example) and you start wondering if amyloid really is a cause of the disease or not<p>Now Wikipedia is more optimistic:<p>&gt;The &quot;amyloid hypothesis&quot;, that the plaques are responsible for the pathology of Alzheimer&#x27;s disease, is accepted by the majority of researchers but is not conclusively established.<p>I&#x27;m curious to see what comes out of this study, it&#x27;s a very encouraging result. But it&#x27;s hard to resolve this conflict of the mechanism looking great on paper, and completely failing in trials.</text></comment> | <story><title>New research links potentially toxic fat-protein complexes to Alzheimer's</title><url>https://www.medicalnewstoday.com/articles/likely-cause-of-alzheimers-identified-in-new-study</url></story><parent_chain><item><author>echelon</author><text>(Reposting again since it wasn&#x27;t noticed ~1.5 months ago.)<p>This paper looks really good.<p>Amyloid beta has long been implicated in Alzheimer&#x27;s. Now they&#x27;ve found a way to trigger the disease by generating amyloid in the liver and shown that it can reach the brain (by crossing the blood brain barrier). This setup was shown to trigger the disease. It&#x27;s a very plausible mechanism that worked end-to-end and seems to fit all of the observational evidence we&#x27;ve gathered.<p>The paper: Synthesis of human amyloid restricted to liver results in an Alzheimer disease–like neurodegenerative phenotype<p><a href="https:&#x2F;&#x2F;journals.plos.org&#x2F;plosbiology&#x2F;article?id=10.1371&#x2F;journal.pbio.3001358" rel="nofollow">https:&#x2F;&#x2F;journals.plos.org&#x2F;plosbiology&#x2F;article?id=10.1371&#x2F;jou...</a><p>Abstract:<p>&gt; Several lines of study suggest that peripheral metabolism of amyloid beta (Aß) is associated with risk for Alzheimer disease (AD). In blood, greater than 90% of Aß is complexed as an apolipoprotein, raising the possibility of a lipoprotein-mediated axis for AD risk. In this study, we report that genetic modification of C57BL&#x2F;6J mice engineered to synthesise human Aß only in liver (hepatocyte-specific human amyloid (HSHA) strain) has marked neurodegeneration concomitant with capillary dysfunction, parenchymal extravasation of lipoprotein-Aß, and neurovascular inflammation. Moreover, the HSHA mice showed impaired performance in the passive avoidance test, suggesting impairment in hippocampal-dependent learning. Transmission electron microscopy shows marked neurovascular disruption in HSHA mice. This study provides causal evidence of a lipoprotein-Aß &#x2F;capillary axis for onset and progression of a neurodegenerative process.<p>We knew amyloid beta was highly associated with Alzheimer&#x27;s. We&#x27;ve been studying this for decades.<p>The researchers noticed amyloid beta was found in lipoprotein complexes (fat+protein), then experimentally modified the liver to produce it. The protein leaks out of the liver and causes neurodegeneration.<p>&gt; Insight into how blood Aβ increases risk for AD comes from findings that in humans, greater than 90% of blood Aβ1–40 and 97% of the particularly pro-amyloidogenic Aβ1–42 is associated with plasma lipoproteins [3], principally the triglyceride-rich lipoproteins (TRLs) of hepatically derived very low-density lipoproteins (VLDLs) and of postprandial chylomicrons [4,5]. Direct evidence of a peripheral TRL-Aβ&#x2F;vascular risk pathway for AD comes from studies in preclinical models, which show that cerebral capillary amyloid-angiopathy, a common early neurovascular pathology of AD, may be a consequence of parenchymal extravasation of TRL-Aβ.<p>This implicates fatty acids originating from the liver migrating (extravasation). And they just experimentally reproduced this.<p>Some quotes from the linked article:<p>&gt; “This study,” he added, “shows that exaggerated abundance in blood of potentially toxic fat-protein complexes can damage microscopic brain blood vessels called capillaries and, thereafter, leak into the brain, causing inflammation and brain cell death.”<p>&gt; “[Changes] in dietary behaviors and certain medications could potentially reduce blood concentration of these toxic fat-protein complexes, [subsequently] reducing the risk for Alzheimer’s or [slowing] down the disease progression,” he concluded.<p>This would suggest that liver health and diet can play a factor in disease development.<p>Of course there&#x27;s the chance that this is just a really good &quot;biologically plausible&quot; mechanism that looks good on paper, but might not naturally occur outside of this experimental setup. There will need to be much more research to either prove or rule this out.<p>This looks exciting though.</text></item></parent_chain><comment><author>newsbinator</author><text>&gt; [Changes] in dietary behaviors and certain medications could potentially reduce blood concentration of these toxic fat-protein complexes, [subsequently] reducing the risk for Alzheimer’s<p>What would be some recommended changes in dietary behaviors if this link were also verified in humans?</text></comment> |
19,600,672 | 19,598,060 | 1 | 3 | 19,597,173 | train | <story><title>Is It Time to Rewrite the Operating System in Rust? [video]</title><url>https://youtube.com/watch?v=HgtRAbE1nBM</url></story><parent_chain></parent_chain><comment><author>pornel</author><text>As someone who&#x27;s rewritten several things in Rust, and even written C to Rust &quot;transpiler&quot;, I totally agree with the approach of keeping working C code as-is, and switching to Rust for new code.<p>Rewrites from scratch are time consuming, and at risk of second system syndrome (especially when you suddenly have all the shiny new language features).<p>Direct 1:1 rewrites are underwhelming. After the initial C to Rust pass you end up with the same program, with a C-like architecture, and all you&#x27;ve done is replaced gcc with a slower rustc.<p>But wrapping a C implementation in a Rust API works <i>great</i>. You can translate C&#x27;s implied ownership semantics into explicit Rust types. You can wrap all these C structs&#x2F;handles with their init and free functions into RAII that never leaks.<p>It&#x27;s something you can do in days, not months to years. You keep a fully working program at all times. You benefit from Rust for new development, and you can gradually refactor C out of it when and where it&#x27;s sensible to do so.</text></comment> | <story><title>Is It Time to Rewrite the Operating System in Rust? [video]</title><url>https://youtube.com/watch?v=HgtRAbE1nBM</url></story><parent_chain></parent_chain><comment><author>Redoubts</author><text>By Bryan Cantrill, which makes it totally worth it.</text></comment> |
12,154,190 | 12,153,745 | 1 | 2 | 12,153,510 | train | <story><title>Functional Programming Jargon</title><url>https://github.com/hemanth/functional-programming-jargon</url></story><parent_chain></parent_chain><comment><author>erikrothoff</author><text>Seriously, what&#x27;s up with these comments? If the examples are plain wrong, wouldn&#x27;t it be more prudent to create an issue in the repo? Also it seems to be a lot of hate for the use of JavaScript. It&#x27;s a great thing that they chose the most widely available language. We get it, you know a purely functional language. Good for you! I am really disappointed in the general, holier-than-thou attitude here.</text></comment> | <story><title>Functional Programming Jargon</title><url>https://github.com/hemanth/functional-programming-jargon</url></story><parent_chain></parent_chain><comment><author>greydius</author><text>I took a (mandatory for cs) class in college that introduced these concepts. For a long time I thought that was a normal part of cs curriculums, but it seems not.<p>Also, its very strange to see these concepts illustrated with Javascript. I imagine thats something like trying to learn Chinese using the roman alphabet. Not that it can&#x27;t be done, but a lot of important details are necessarily missing.</text></comment> |
28,061,487 | 28,059,878 | 1 | 3 | 28,035,213 | train | <story><title>A Soviet Prisoner's View on What's Important</title><url>https://butwhatfor.substack.com/p/speech-at-the-stadium</url></story><parent_chain><item><author>WalterBright</author><text>I was sadly amused when Obama decided to get involved in gender and bathrooms.<p>Shouldn&#x27;t the President of the United States, the most powerful person in the world, be instead concerned with issues like, say, nuclear destruction, defense of the realm, the economy, etc.?<p>But such involvement from the top in minor issues is characteristic when the top accretes too much power. Everyone lower just delegates it upwards because nobody wants to take responsibility.<p>Back in the 70s when the dorm at Caltech I attended went coed, the bathrooms weren&#x27;t set up for that. So the students solved the problem themselves. A sign was made with a circle divided into 4 quadrants and a rotating pointer in the center. The quadrants were labeled:<p>1. men<p>2. women<p>3. don&#x27;t know<p>4. don&#x27;t care<p>which seemed to satisfy everyone.</text></item><item><author>brundolf</author><text>&quot;Try not to set too much store by politicians. Not so much because they are dumb or dishonest, which is more often than not the case, but because of the size of their job, which is too big even for the best among them, by this or that political party, doctrine, system or a blueprint thereof. All they or those can do, at best, is to diminish a social evil, not eradicate it. No matter how substantial an improvement may be, ethically speaking it will always be negligible, because there will always be those — say, just one person — who won’t profit from this improvement…<p>No matter how fairly the man you’ve elected will promise to cut the pie, it won’t grow in size; as a matter of fact, the portions are bound to get smaller. In light of that, or, rather, in dark of that — you ought to rely on your own home cooking, that is, on managing the world yourselves — at least that part of it that lies within your reach, within your radius.&quot;<p>I&#x27;ve been thinking about this a lot lately. Society doesn&#x27;t get better because we elect the right politicians, it gets better because the people in it decide to be better (in themselves, towards each other, etc). Politicians are just a (grotesque, exaggerated, warped) reflection of the rest of us; they will never be our salvation. We should stay informed, we should vote, but big-picture politics should be a small part of our lives (and heaven forbid it to be an integral part of our identities). Relationships with real people, solving small-scale problems that confront those we care about, are what really count. And the tragedy is that even as we&#x27;ve put more and more stock in the former, we&#x27;ve been actively sabotaging the latter.</text></item></parent_chain><comment><author>azemetre</author><text>I think you are gravely misremembering why the DOJ took a stance, North Carolina declared it illegal for transgendered people to use the bathroom that best represents their identity.<p>The backlash was immense with many companies and the NBA pulling support out of North Carolina. They &quot;lost over $400 million in investments and jobs.&quot; [1]<p>As a result the governor that advocated this bill lost his election that year.<p>But no, Obama didn&#x27;t &quot;just decided&quot; to &quot;stick his nose&quot; in the bathroom debates. The Republicans decided to take up a new culture war because attacking gay people after they were allowed to marry was no longer socially acceptable. The President responded because it was a stupid law put forth to attack vulnerable people.<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Public_Facilities_Privacy_%26_Security_Act" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Public_Facilities_Privacy_%26_...</a></text></comment> | <story><title>A Soviet Prisoner's View on What's Important</title><url>https://butwhatfor.substack.com/p/speech-at-the-stadium</url></story><parent_chain><item><author>WalterBright</author><text>I was sadly amused when Obama decided to get involved in gender and bathrooms.<p>Shouldn&#x27;t the President of the United States, the most powerful person in the world, be instead concerned with issues like, say, nuclear destruction, defense of the realm, the economy, etc.?<p>But such involvement from the top in minor issues is characteristic when the top accretes too much power. Everyone lower just delegates it upwards because nobody wants to take responsibility.<p>Back in the 70s when the dorm at Caltech I attended went coed, the bathrooms weren&#x27;t set up for that. So the students solved the problem themselves. A sign was made with a circle divided into 4 quadrants and a rotating pointer in the center. The quadrants were labeled:<p>1. men<p>2. women<p>3. don&#x27;t know<p>4. don&#x27;t care<p>which seemed to satisfy everyone.</text></item><item><author>brundolf</author><text>&quot;Try not to set too much store by politicians. Not so much because they are dumb or dishonest, which is more often than not the case, but because of the size of their job, which is too big even for the best among them, by this or that political party, doctrine, system or a blueprint thereof. All they or those can do, at best, is to diminish a social evil, not eradicate it. No matter how substantial an improvement may be, ethically speaking it will always be negligible, because there will always be those — say, just one person — who won’t profit from this improvement…<p>No matter how fairly the man you’ve elected will promise to cut the pie, it won’t grow in size; as a matter of fact, the portions are bound to get smaller. In light of that, or, rather, in dark of that — you ought to rely on your own home cooking, that is, on managing the world yourselves — at least that part of it that lies within your reach, within your radius.&quot;<p>I&#x27;ve been thinking about this a lot lately. Society doesn&#x27;t get better because we elect the right politicians, it gets better because the people in it decide to be better (in themselves, towards each other, etc). Politicians are just a (grotesque, exaggerated, warped) reflection of the rest of us; they will never be our salvation. We should stay informed, we should vote, but big-picture politics should be a small part of our lives (and heaven forbid it to be an integral part of our identities). Relationships with real people, solving small-scale problems that confront those we care about, are what really count. And the tragedy is that even as we&#x27;ve put more and more stock in the former, we&#x27;ve been actively sabotaging the latter.</text></item></parent_chain><comment><author>BoxOfRain</author><text>&gt;Shouldn&#x27;t the President of the United States, the most powerful person in the world, be instead concerned with issues like, say, nuclear destruction, defense of the realm, the economy, etc.?<p>I think prioritisation is half the problem in politics, everyone thinks that <i>their</i> issues ought to be a priority and it&#x27;s very hard to have a centralised authority wade in and decide that for people without looking at best out of touch and at worst actively malicious. It&#x27;s a big reason I&#x27;m a fan of liberalism (in the British rather than American sense) and subsidiarity, central planning in my opinion usually leads to poorer results because the people on the ground in a given situation tend to make better and more informed decisions than someone sitting at a desk in London with many degrees of seperation from the situation at hand. The solution I think is to make government as local as possible so that different places can have different priorities without breaking things for other people.<p>I believe that politics ought to be as decentralised as practically possible and political abstractions are employed only when absolutely necessary (ie it&#x27;d be a bit silly to ask Ceredigion County Council to run its own nuclear energy programme). Not only does this reduce tensions between ideologically diverse areas, it also frees up what remains of the central government&#x27;s power to focus on long-term globally important issues rather than flitting about with the issues of the day. We need to dispense with this &quot;winner takes all&quot; approach to politics where the most powerful ideological minority can lord it over everyone else for five years at a time and instead adopt a much more &quot;each to their own&quot; approach in my opinion.<p>The two big barriers to this approach are a) politicians that currently rule the roost of a highly centralised system would be loathe to give up their power - it&#x27;s very rare that powerful people have the moral fibre to selflessly abandon power and influence for the greater good of humanity and b) current local government infrastructure is pretty atrocious, it&#x27;s often made up of ridiculous retirees with nothing better to do than exercise their instincts for petty tyranny.</text></comment> |
28,017,604 | 28,015,942 | 1 | 2 | 28,015,335 | train | <story><title>Firefox lost 50M users since 2019</title><url>https://data.firefox.com/dashboard/user-activity</url></story><parent_chain><item><author>nightski</author><text>I have used Firefox for about a decade now and I can&#x27;t think of a single page that did not work. I&#x27;m not saying it&#x27;s impossible, but incredibly rare. I&#x27;d be more inclined to just give up on the site than install Chrome.</text></item><item><author>nsilvestri</author><text>Chrome is already the standard. Firefox usually works, but more and more often nowadays I encounter a glitchy or poorly performing page, which I switch to Chrome to use properly.<p>I use Firefox to not be part of the Chrome monopoly, not because it&#x27;s actually a fundamentally better browser.</text></item><item><author>toper-centage</author><text>It&#x27;s honestly a pity. Firefox is it perfect but the Internet is becoming worse because of chrome. Google is able to fast track any non standard Web tech and the hordes follow. Soon after, that become <i>the</i> standard. I don&#x27;t want to cheer for a broken browser, but only Safari is able to stop this madness now.<p>Also, Firefox on the Desktop is really good and still let&#x27;s you do so much more than chrome clones. But it suffers specially when using Google websites.</text></item></parent_chain><comment><author>bluedevil2k</author><text>Sony PlayStation’s support pages did not work on Firefox. Texas’s franchise tax payment pages did not work on Firefox. Boy Scout certification pages did not work on Firefox. My kids’ baseball registration pages did not work on Firefox. As a front end dev, it seemed really hard to get things to NOT work on Firefox and still work on Chrome.</text></comment> | <story><title>Firefox lost 50M users since 2019</title><url>https://data.firefox.com/dashboard/user-activity</url></story><parent_chain><item><author>nightski</author><text>I have used Firefox for about a decade now and I can&#x27;t think of a single page that did not work. I&#x27;m not saying it&#x27;s impossible, but incredibly rare. I&#x27;d be more inclined to just give up on the site than install Chrome.</text></item><item><author>nsilvestri</author><text>Chrome is already the standard. Firefox usually works, but more and more often nowadays I encounter a glitchy or poorly performing page, which I switch to Chrome to use properly.<p>I use Firefox to not be part of the Chrome monopoly, not because it&#x27;s actually a fundamentally better browser.</text></item><item><author>toper-centage</author><text>It&#x27;s honestly a pity. Firefox is it perfect but the Internet is becoming worse because of chrome. Google is able to fast track any non standard Web tech and the hordes follow. Soon after, that become <i>the</i> standard. I don&#x27;t want to cheer for a broken browser, but only Safari is able to stop this madness now.<p>Also, Firefox on the Desktop is really good and still let&#x27;s you do so much more than chrome clones. But it suffers specially when using Google websites.</text></item></parent_chain><comment><author>eightails</author><text>Stuff doesn&#x27;t always completely break -- e.g. Google forcing new Chrome-only web standards on certain sites and making other browsers like Firefox resort to alternatives which can end up being 5x slower [0], or serving a more dated design of google search on FF mobile vs Chrome. I suspect this sort of thing might be enough to make some people switch.<p>And I have had a few experiences with sites not loading properly in the last few months. Try windy.com for example: on FF 90 with no extensions enabled and tracking protection on &#x27;balanced&#x27; I get blue and yellow banding on the map, and the wind gusts graphics fail to load properly. I have reported a few of these instances in the past, but a lot of the time I&#x27;d rather just switch to chromium temporarily and continue with what I&#x27;m doing.<p>[0] <a href="https:&#x2F;&#x2F;www.cnet.com&#x2F;tech&#x2F;services-and-software&#x2F;mozilla-exec-says-google-slowed-youtube-down-on-non-chrome-browsers&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.cnet.com&#x2F;tech&#x2F;services-and-software&#x2F;mozilla-exec...</a></text></comment> |
40,904,895 | 40,903,219 | 1 | 2 | 40,901,623 | train | <story><title>A Mini Monitor for a Pi</title><url>https://noamzeise.com/2024/07/05/mini-monitor.html</url></story><parent_chain><item><author>hiisukun</author><text>I love these projects but when I have had a need for a display at home, I struggled to find a case! Small displays complete with a case, that was also slim and of decent material, seemed incredibly elusive.<p>I suppose the modern workflow is to 3d print one: but perhaps other consumers, like me, buying a $20 SBC and a $20 display have not outlayed for a 3d printer... Or purchase a 3d printed one to spec? Unfortunately I don&#x27;t yet have the confidence in the quality of materials of a purchased 3d printed item, nor enough familiarity with the materials and process to choose from the many options online. They also did not seem particularly cheap.<p>Most recently, I ended up finding a 2nd hand (refurbished) small tablet, and simply used that as the display for a small system. It pulls the display content over wifi and displays it in a browser, which is incredible overhead for such simple content. But it is slim, has a touch screen, comes complete in a case, and was cheaper than purchasing a similar waveshare or other unnamed-brand display with a matching case (where one could even be found!)</text></item></parent_chain><comment><author>mbreese</author><text>Before 3D printers were so common, the way you’d solve this problem was to buy an enclosure and modify it (cut out a hole) for the monitor to fit into. There are many options for prebuilt enclosure&#x2F;cases, so I’m sure you could find one with the right amount of space and size for this project.<p>3D printing will yield a more custom solution that fits <i>exactly</i> the size you need. But that’s a pretty recent advancement and there are alternatives.</text></comment> | <story><title>A Mini Monitor for a Pi</title><url>https://noamzeise.com/2024/07/05/mini-monitor.html</url></story><parent_chain><item><author>hiisukun</author><text>I love these projects but when I have had a need for a display at home, I struggled to find a case! Small displays complete with a case, that was also slim and of decent material, seemed incredibly elusive.<p>I suppose the modern workflow is to 3d print one: but perhaps other consumers, like me, buying a $20 SBC and a $20 display have not outlayed for a 3d printer... Or purchase a 3d printed one to spec? Unfortunately I don&#x27;t yet have the confidence in the quality of materials of a purchased 3d printed item, nor enough familiarity with the materials and process to choose from the many options online. They also did not seem particularly cheap.<p>Most recently, I ended up finding a 2nd hand (refurbished) small tablet, and simply used that as the display for a small system. It pulls the display content over wifi and displays it in a browser, which is incredible overhead for such simple content. But it is slim, has a touch screen, comes complete in a case, and was cheaper than purchasing a similar waveshare or other unnamed-brand display with a matching case (where one could even be found!)</text></item></parent_chain><comment><author>squigz</author><text>&gt; I suppose the modern workflow is to 3d print one: but perhaps other consumers, like me, buying a $20 SBC and a $20 display have not outlayed for a 3d printer.<p>There are a few options here, including 3D-printing-as-a-service. Depending where you are, there may be a makerspace you can visit - even my local library has a small 3D printer available for use</text></comment> |
8,470,615 | 8,470,725 | 1 | 2 | 8,469,802 | train | <story><title>A Raw Deal in Michigan</title><url>http://www.teslamotors.com/blog/raw-deal-michigan</url></story><parent_chain><item><author>wiremine</author><text>I live in Michigan, and was dishearten when I read about this story the other day. But not really that surprised.<p>A few observations:<p>- Tesla isn&#x27;t a name brand here like Ford or GM. In fact, if you asked a lot of people if we should help the Big Three with this sort of legislation, you might be surprised by the answer. Remember, they generate a LOT of jobs in this state: not just the Big Three, but the tier 2 and tier 3 manufactors. While I think logic would win out in the day, I wouldn&#x27;t assume that everybody in Michigan _wants_ Tesla. It isn&#x27;t in their best interest.<p>- I haven&#x27;t seen one media story about this yet, outside of social media.<p>- We&#x27;re in the middle of an election cycle year, including a gubernatorial race. So, the special interests picked a good time to insert this language: there are a lot of problems the state is still dealing with, including Detroit going through bankruptcy. And people want the money to win races.<p>Personally, I&#x27;d love to see Telsa in the state, both the cars and charging stations. But, honestly, Telsa isn&#x27;t going to get much traction here until they improve cold weather battery performance.</text></item><item><author>skrebbel</author><text><i>Using a procedure that prevented legislators and the public at large from knowing what was happening or allowing debate, Senator Joe Hune added new language in an attempt to lock Tesla out of the State. Unsurprisingly, Senator Hune counts the Michigan Automobile Dealers Association as one of his top financial contributors, and his wife’s firm lobbies for the dealers.</i><p>In the Netherlands, we call this corruption.<p>(It happens too, but so openly? Don&#x27;t you guys have rules against this? Or media who like scandals?)</text></item></parent_chain><comment><author>clarebear</author><text>My retired father-in-law who lives in a suburb of Detroit got a car that was not manufactured by the by the Big Three a couple years ago. He felt so much social pressure that he quickly returned it and got one that was. He told me that some &quot;foreign&quot; cars would be egged in his neighborhood. I put foreign in quotes, as big three cars are not always manufactured in the US and sometimes other cars are manufactured here. But if you are from Detroit, where the headquarters is and the profits go back to matters most, and tangibly matters.</text></comment> | <story><title>A Raw Deal in Michigan</title><url>http://www.teslamotors.com/blog/raw-deal-michigan</url></story><parent_chain><item><author>wiremine</author><text>I live in Michigan, and was dishearten when I read about this story the other day. But not really that surprised.<p>A few observations:<p>- Tesla isn&#x27;t a name brand here like Ford or GM. In fact, if you asked a lot of people if we should help the Big Three with this sort of legislation, you might be surprised by the answer. Remember, they generate a LOT of jobs in this state: not just the Big Three, but the tier 2 and tier 3 manufactors. While I think logic would win out in the day, I wouldn&#x27;t assume that everybody in Michigan _wants_ Tesla. It isn&#x27;t in their best interest.<p>- I haven&#x27;t seen one media story about this yet, outside of social media.<p>- We&#x27;re in the middle of an election cycle year, including a gubernatorial race. So, the special interests picked a good time to insert this language: there are a lot of problems the state is still dealing with, including Detroit going through bankruptcy. And people want the money to win races.<p>Personally, I&#x27;d love to see Telsa in the state, both the cars and charging stations. But, honestly, Telsa isn&#x27;t going to get much traction here until they improve cold weather battery performance.</text></item><item><author>skrebbel</author><text><i>Using a procedure that prevented legislators and the public at large from knowing what was happening or allowing debate, Senator Joe Hune added new language in an attempt to lock Tesla out of the State. Unsurprisingly, Senator Hune counts the Michigan Automobile Dealers Association as one of his top financial contributors, and his wife’s firm lobbies for the dealers.</i><p>In the Netherlands, we call this corruption.<p>(It happens too, but so openly? Don&#x27;t you guys have rules against this? Or media who like scandals?)</text></item></parent_chain><comment><author>nathanm412</author><text>Cold weather performance is trumpeted a lot by EV detractors, but the number one selling new car in Norway last month was the Tesla Model S.<p><a href="http://www.reuters.com/article/2013/10/08/tesla-norway-idUSL6N0HX1CH20131008" rel="nofollow">http:&#x2F;&#x2F;www.reuters.com&#x2F;article&#x2F;2013&#x2F;10&#x2F;08&#x2F;tesla-norway-idUSL...</a><p>Here&#x27;s an interesting interview from Elon Musk about the Tesla battery winter performance.
<a href="http://cleantechnica.com/2013/03/01/interview-with-elon-musk-on-tesla-model-s-performance-in-cold-weather/" rel="nofollow">http:&#x2F;&#x2F;cleantechnica.com&#x2F;2013&#x2F;03&#x2F;01&#x2F;interview-with-elon-musk...</a></text></comment> |
2,149,848 | 2,149,748 | 1 | 2 | 2,149,585 | train | <story><title>Please drop the SOAP</title><url>http://thecoffman.com/2011/01/please-drop-the-soap/</url></story><parent_chain></parent_chain><comment><author>rst</author><text>One of the things in life I really regret is suggesting SOAP on a project. I thought it was just a packaged, somewhat elaborated version of a semi-reasonable XML-RPC type thing --- and worse, that the idea that it was standardized meant that you could count on some kind of half-decent interoperability.<p>It was initially sold that way, but that was just the first of a parade of sales pitches, hilariously chronicled here, <a href="http://wanderingbarque.com/nonintersecting/2006/11/15/the-s-stands-for-simple/" rel="nofollow">http://wanderingbarque.com/nonintersecting/2006/11/15/the-s-...</a> --- endlessly shifting as if seen through a fun-house mirror.</text></comment> | <story><title>Please drop the SOAP</title><url>http://thecoffman.com/2011/01/please-drop-the-soap/</url></story><parent_chain></parent_chain><comment><author>asmithmd1</author><text>SOAP is a nightmare.<p>soapUI is an application that will let you fiddle around until you get the calls right.<p>I recently did exactly this. I wound up not only generating the SOAP envelope by hand but also the HTTP headers:<p>SOAPAction: "<a href="http://...//SubmitDataform" rel="nofollow">http://...//SubmitDataform</a><p>What is the action I am trying to do doing in the HTTP headers?</text></comment> |
23,485,953 | 23,485,918 | 1 | 2 | 23,485,290 | train | <story><title>How and why GraphQL will influence the Sourcehut alpha</title><url>https://sourcehut.org/blog/2020-06-10-how-graphql-will-shape-the-alpha/</url></story><parent_chain><item><author>WhatIsDukkha</author><text>I don&#x27;t understand the attraction to Graphql. (I do understand it if maybe you actually want the things that gRPC or Thrift etc gives you)<p>It seems like exactly the ORM solution&#x2F;problem but even more abstract and less under control since it pushes the orm out to browser clients and the frontend devs.<p>ORM suffer from being at beyond arms length from the query analyzer in the database server.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Query_optimization" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Query_optimization</a><p>A query optimizer that&#x27;s been tuned over decades by pretty serious people.<p>Bad queries, overfetching, sudden performance cliffs everywhere.<p>Graphql actually adds another query language on top of the normal orm problem. (Maybe the answer is that graphql is so simple by design that it has no dark corners but that seems like a matter of mathematical proof that I haven&#x27;t seen alluded to).<p>Why is graphql not going to have exactly this problem as we see people actually start to work seriously with it?<p>Four or five implementations in javascript, haskell and now go. From what I could see none of them were mentioning query optimization as an aspiration.</text></item></parent_chain><comment><author>baddox</author><text>GraphQL is quite similar to SQL. They’re both declarative languages, but GraphQL is declaring a desired data format, whereas SQL is declaring (roughly) a set of relational algebra operations to apply to a relational database. GraphQL is really nothing like an ORM beyond the fact that they are both software tools used to get data from a database. You might use an ORM to implement the GraphQL resolvers, but that’s certainly not required.<p>I wouldn’t expect the performance issues to be much more problematic than they would be for REST endpoints that offer similar functionality. If you’re offering a public API, then either way you’re going to need to solve for clients who are requesting too many expensive resources. If you control the client and the server, then you probably don’t need to worry about it beyond the testing of your client code you would need to do anyway.<p>As far as query optimization goes, that’s largely out of scope of GraphQL itself, although many server implementations offer interesting ways to fulfill GraphQL queries. Dataloader is neat, and beyond that, I believe you can do any inspection of the query request you want, so you could for example see the nested path “Publisher -&gt; Book -&gt; Author -&gt; name” and decide to join all three of those tables together. I’m not aware of any tools that provide this optimization automatically, but it’s not difficult to imagine it existing for some ORMs like those in Django or Rails.</text></comment> | <story><title>How and why GraphQL will influence the Sourcehut alpha</title><url>https://sourcehut.org/blog/2020-06-10-how-graphql-will-shape-the-alpha/</url></story><parent_chain><item><author>WhatIsDukkha</author><text>I don&#x27;t understand the attraction to Graphql. (I do understand it if maybe you actually want the things that gRPC or Thrift etc gives you)<p>It seems like exactly the ORM solution&#x2F;problem but even more abstract and less under control since it pushes the orm out to browser clients and the frontend devs.<p>ORM suffer from being at beyond arms length from the query analyzer in the database server.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Query_optimization" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Query_optimization</a><p>A query optimizer that&#x27;s been tuned over decades by pretty serious people.<p>Bad queries, overfetching, sudden performance cliffs everywhere.<p>Graphql actually adds another query language on top of the normal orm problem. (Maybe the answer is that graphql is so simple by design that it has no dark corners but that seems like a matter of mathematical proof that I haven&#x27;t seen alluded to).<p>Why is graphql not going to have exactly this problem as we see people actually start to work seriously with it?<p>Four or five implementations in javascript, haskell and now go. From what I could see none of them were mentioning query optimization as an aspiration.</text></item></parent_chain><comment><author>kevan</author><text>Seems like you&#x27;re looking at this through the lens of a single system that could submit a query to a single database and get all the data it needs. From that perspective GraphQL is definitely an extra layer that probably doesn&#x27;t make sense. But even then there&#x27;s still some value in letting the client specify the shape of the the data it needs and having client SDKs (there&#x27;s definitely non-GraphQL ways to achieve these too).<p>My impression is GraphQL starts to shine when you have multiple backend systems, probably separated based on your org chart, and the frontend team needs to stitch them together for cohesive UX. The benchmark isn&#x27;t absolute performance here, it&#x27;s whether it performs better than the poor mobile app making a dozen separate API calls to different backends to stitch together a view.</text></comment> |
11,895,420 | 11,894,390 | 1 | 2 | 11,893,164 | train | <story><title>Hints of an unexpected new particle could be confirmed within days</title><url>http://blogs.scientificamerican.com/guest-blog/is-particle-physics-about-to-crack-wide-open</url></story><parent_chain></parent_chain><comment><author>Trombone12</author><text>What a shitty article. First of all, the excesses presented in December are more noteworthy because they demonstrated how much information flows between the supposedly &quot;independent&quot; general experiments. In December the global CMS excess (the one that matters) was 1.2 sigma, but heyoo a little bird told us ATLAS sees a 2 sigma global excess at the same place so into the slides it goes! So much for independence...<p>Since then there was an update in march where ATLAS still sees a global significance of 2 sigma and CMS is down below 1. Local significances are up though CMS has pushed their 2.6 to 2.8, and ATLAS has gotten their 3.6 sigma into 3.9 (Both have also added a new model for interpreting this, I&#x27;m just giving the largest sigma values reported). The reason improvement is so modest is because there hasn&#x27;t been any new data on account of the LHC being set in the &quot;off&quot; position.<p>Anyway, the reason the OP article is such crap is that it doesn&#x27;t mention any details about the rumour it is so clearly based on. Perusing more technical rumourmongers I find a mention of a 4.7 sigma excess in an ATLAS analysis that wasn&#x27;t approved in time for the big conference in March. So if the article is based on that rumour, it is about three months old by now. But we can&#x27;t tell, since the author wusses out on even saying what detector will &quot;CRACK PARTICLE PHYSICS WIDE OPEN&quot;... -_-</text></comment> | <story><title>Hints of an unexpected new particle could be confirmed within days</title><url>http://blogs.scientificamerican.com/guest-blog/is-particle-physics-about-to-crack-wide-open</url></story><parent_chain></parent_chain><comment><author>pdonis</author><text>Unfortunately, this sort of linkbait headline has become typical for Scientific American (which is one of the reasons I haven&#x27;t subscribed for years). As has already been pointed out in these comments, the Standard Model is already believed to be incomplete by particle physicists, and discovering a new particle in this general energy regime is exactly what everyone has been hoping for for a couple of decades now. Yes, such a new particle is not included in the Standard Model--because there hasn&#x27;t been any experimental evidence for one. If this discovery pans out, particle physicists will finally be able to start model building again the way it was done when the SM itself was built: based on good experimental data.</text></comment> |
12,625,358 | 12,624,859 | 1 | 2 | 12,618,341 | train | <story><title>Scientists Trace Society’s Myths to Primordial Origins</title><url>http://www.scientificamerican.com/article/scientists-trace-society-s-myths-to-primordial-origins/</url></story><parent_chain><item><author>Natsu</author><text>How do we know these actually relate to the same original story and not to, say, the fact that there weren&#x27;t quite so many things to do back then but look at stars and hunt, so there would be a lot of random stories about starts and hunting, along with other common elements of daily life?</text></item></parent_chain><comment><author>lgessler</author><text>Isn&#x27;t the answer to this the same as the answer to Jung&#x27;s hypothesis?<p>&gt; “Myths are first and foremost psychic phenomena that reveal the nature of the soul,” Jung argued. But the dissemination of Cosmic Hunt stories around the world cannot be explained by a universal psychic structure. If that were the case, Cosmic Hunt stories would pop up everywhere. Instead they are nearly absent in Indonesia and New Guinea and very rare in Australia but present on both sides of the Bering Strait, which geologic and archaeological evidence indicates was above water between 28,000 and 13,000 B.C.<p>(So, the absence of Cosmic Hunt stories in New Guinea, Indonesia, and Australia would seem to be a counter to your hypothesis, unless for some reason we could explain why people in those regions thought less about stars and hunting.)</text></comment> | <story><title>Scientists Trace Society’s Myths to Primordial Origins</title><url>http://www.scientificamerican.com/article/scientists-trace-society-s-myths-to-primordial-origins/</url></story><parent_chain><item><author>Natsu</author><text>How do we know these actually relate to the same original story and not to, say, the fact that there weren&#x27;t quite so many things to do back then but look at stars and hunt, so there would be a lot of random stories about starts and hunting, along with other common elements of daily life?</text></item></parent_chain><comment><author>nswanberg</author><text>That&#x27;s a great question which doesn&#x27;t appear to be answered in the article or the paper. Maybe there is convergent evolution for features in myths just like in biology.</text></comment> |
23,454,101 | 23,453,157 | 1 | 2 | 23,452,365 | train | <story><title>Python Wheels Crosses 90%</title><url>https://pythonwheels.com/</url></story><parent_chain><item><author>haberman</author><text>Today I spent at least an hour fighting with Python packaging. The more I think about it, the more I feel that self-contained static binaries are the way to go. Trying to load source files from all over the filesystem at runtime is hell. Or at least it&#x27;s hell to debug when it goes wrong.<p>I would love to see a move towards &quot;static&quot; binaries that package everything together into a single, self-contained unit.</text></item></parent_chain><comment><author>gorgoiler</author><text>In the past week my coding colleague (whose age is only just into double digits) and I have had to:<p>* insert lines of code into asciidoctor Ruby to debug how the command line interface differs from the library interface;<p>* read through Raspberry Pi SenseHat code to figure out that the drivers won’t load via SSH (you have to plug in an HDMI cable!);<p>* rummage through Python’s PY Sequence List to answer the question “what kind of sort does Python actually use?”.<p>The problem with shipping binaries is it lowers the standard for being able to build from source.<p>If a package is easier to ship as a binary because the source is hard to distribute reliably, we give up hope of end users being able to modify and build their own versions.<p>This is obviously bad for freedom. It’s also hard for debugging and <i>learning</i>.</text></comment> | <story><title>Python Wheels Crosses 90%</title><url>https://pythonwheels.com/</url></story><parent_chain><item><author>haberman</author><text>Today I spent at least an hour fighting with Python packaging. The more I think about it, the more I feel that self-contained static binaries are the way to go. Trying to load source files from all over the filesystem at runtime is hell. Or at least it&#x27;s hell to debug when it goes wrong.<p>I would love to see a move towards &quot;static&quot; binaries that package everything together into a single, self-contained unit.</text></item></parent_chain><comment><author>m4rtink</author><text>Its fun and games until you find out one of the things you bundled into your static binary has a remote code execution CVE that is being actively exploited in the wild. Good luck tracking down all the artifacts and making sure they are rebuild with the patched version - till the time next CVE hits and you can do it all again for every static binary bundling the affected component.</text></comment> |
28,747,955 | 28,747,670 | 1 | 2 | 28,747,182 | train | <story><title>The Apple A15 SoC Performance Review: Faster and More Efficient</title><url>https://www.anandtech.com/show/16983/the-apple-a15-soc-performance-review-faster-more-efficient</url></story><parent_chain></parent_chain><comment><author>ksec</author><text>Even though I am no longer an Apple Fan I was surprised at the sentiment on A15 after the Keynote and Reviews.<p>Do people really expect revolutionary improvement every single year? ~20% Improvement YoY within the same power envelop is god damn impressive. And if this is not good enough? This is just layering ground work for next year&#x27;s 3nm and LPDDR5. ( Or 4nm depending on circumstances )<p>The E Core are interesting because they are a preview of what to expect in next generation Apple Watch.<p>I was hoping there is some investigation on new Display Engine and Video Encoder &#x2F; Decoder. Especially on power usage. But looks like these kind of interest are in the minority.</text></comment> | <story><title>The Apple A15 SoC Performance Review: Faster and More Efficient</title><url>https://www.anandtech.com/show/16983/the-apple-a15-soc-performance-review-faster-more-efficient</url></story><parent_chain></parent_chain><comment><author>retskrad</author><text>People love to ding Tim Cook for Apple&#x27;s lack of innovation but the I&#x27;d argue the M1 is a revolutionary product on the same level as the first iPhone. Of course, it&#x27;s not as sexy and in your face as the first iPhone but people in the industry and consumers immediately felt the impact of the shock wave.<p>When you think about it, the M1 perfectly encapsulates Apple under Tim Cook. It didn&#x27;t come out of nowhere. They have slowly improved on their A-series in the iPhones the last decade and it accumulated into the M1. That&#x27;s exactly how Apple is run today. Inch by inch.</text></comment> |
30,112,792 | 30,112,256 | 1 | 2 | 30,103,728 | train | <story><title>On being a PhD student of Robert Harper</title><url>https://www.cambridge.org/core/journals/journal-of-functional-programming/article/on-being-a-phd-student-of-robert-harper/B68BCF31384084D9FDCB17A7DF1DE7A0</url></story><parent_chain><item><author>Micoloth</author><text>I’m just some guy that works as a software engineer (i don’t even <i>have</i> a phd) but I’ve always been interested in Type theory.<p>So, a few years back, i found on youtube the lectures Bob Harper gave at the OPLSS, and watched them all.<p>It’s been a revelation for me!<p>It’s truly an experience, and I’ve been a straight up Bob Harper fan ever since. This is how <i>all</i> lectures should be given. The passion he has for these topics is completely evident!<p>Before, i was vaguely interestes in type theory. Since then, i’ve been <i>really</i> into type theory, and I’ve gotten deeper and deeper into it.<p>So nice to see this homage to him!</text></item></parent_chain><comment><author>pramodbiligiri</author><text>I watched most of the Bob Harper OPLSS videos of 2012 [1] recently.<p>It felt like I was learning something deep when I was watching, but when I looked back on it later, I couldn’t remember any tangible insights or applications :( A whole lot about equality and then finally how useful dependent types are.<p>Was wondering if anyone else had the same kind of experience?<p>1 - <a href="https:&#x2F;&#x2F;youtube.com&#x2F;playlist?list=PL5FJyaC2WsVmiZHLVm7Z718vbHXUxLtHM" rel="nofollow">https:&#x2F;&#x2F;youtube.com&#x2F;playlist?list=PL5FJyaC2WsVmiZHLVm7Z718vb...</a></text></comment> | <story><title>On being a PhD student of Robert Harper</title><url>https://www.cambridge.org/core/journals/journal-of-functional-programming/article/on-being-a-phd-student-of-robert-harper/B68BCF31384084D9FDCB17A7DF1DE7A0</url></story><parent_chain><item><author>Micoloth</author><text>I’m just some guy that works as a software engineer (i don’t even <i>have</i> a phd) but I’ve always been interested in Type theory.<p>So, a few years back, i found on youtube the lectures Bob Harper gave at the OPLSS, and watched them all.<p>It’s been a revelation for me!<p>It’s truly an experience, and I’ve been a straight up Bob Harper fan ever since. This is how <i>all</i> lectures should be given. The passion he has for these topics is completely evident!<p>Before, i was vaguely interestes in type theory. Since then, i’ve been <i>really</i> into type theory, and I’ve gotten deeper and deeper into it.<p>So nice to see this homage to him!</text></item></parent_chain><comment><author>madarcho</author><text>I think I might be in a similar boat. I&#x27;ve an interest in Type Theory, but rarely get to really connect day to day work with the fun bits.<p>Interestingly I have never heard of Robert Harper, so I will be looking at those lectures with great interest.<p>Instead, I have Benjamin C. Pierce&#x27;s fantastic &quot;Types and Programming Languages&quot; book (still working my way through it bit by bit), and I happened to get one of the most impactful talks of my life from Derek Dreyer: How to Give Talks that People Can Follow. I still use those 20 minutes of advice to this day.<p>I&#x27;m strangely excited to see both their names as authors on this article, and I believe that tells me a lot about what kind of passionate speaking I can expect from Robert Harper!</text></comment> |
36,872,520 | 36,871,642 | 1 | 2 | 36,858,076 | train | <story><title>Digikey's Physical Connectors Tutorial</title><url>https://www.digikey.com/en/articles/connector-tutorial</url></story><parent_chain></parent_chain><comment><author>inamberclad</author><text>I&#x27;ve been on a MIL-DTL-38999 journey over the last few weeks. There&#x27;s a lot of surplus tooling on Ebay, and they&#x27;re by far the best connectors I&#x27;ve ever used. Rugged, really high pin density, and impossible to insert wrong. The prices are high for new tools, but there&#x27;s tons of surplus floating around thanks to government standards. There&#x27;s also solder-cup versions of a lot of the connectors so that no crimp tools are required. If you want to use the crimped versions, you&#x27;ll want the M22520&#x2F;1 basic tool or M22520&#x2F;2 miniature tool for smaller wire gauges. You&#x27;ll also need a positioner to hold the crimp in the right position within the tool (these are interchangeable for a ton of different models). You&#x27;ll probably want the M22520&#x2F;1-04 turret head. A Chinese company called JReady sells new crimp tools with the positioners for $300. It sounds like a lot, but it&#x27;s much less than the $800 American made tool and even less than the single purpose crimp hand tools for cheaper Molex and JST connectors. One tool standard, lots of different high quality connectors!</text></comment> | <story><title>Digikey's Physical Connectors Tutorial</title><url>https://www.digikey.com/en/articles/connector-tutorial</url></story><parent_chain></parent_chain><comment><author>mitthrowaway2</author><text>This is a good tutorial. Connectors are very tricky purchases; even if you do know exactly what you want, it&#x27;s easy to buy the wrong version of a part, or forget to buy a necessary part of an assembly, or struggle to find the correctly-mating part that you know you need, or lack the crimping tool that goes with it, and so on. And they are expensive, so errors are costly. The difficulty, and cost, is why a lot of hobbyists (and even professionals) often stick to the same few connectors that they are familiar with. But sometimes you need to branch out; maybe you need something waterproof, or something which handles higher current, etc, and then you can spend hours looking through catalogs.</text></comment> |
33,816,691 | 33,816,429 | 1 | 2 | 33,814,950 | train | <story><title>Show HN: I made a 2D shoot 'em up game with Go, using Entity Component System</title><url>https://github.com/m110/airplanes</url></story><parent_chain></parent_chain><comment><author>NortySpock</author><text>Beautiful game, thanks for sharing. Koblas&#x27;s comment caught my eye and I will definitely be poking around the github actions code to learn how to compile Golang to WASM.</text></comment> | <story><title>Show HN: I made a 2D shoot 'em up game with Go, using Entity Component System</title><url>https://github.com/m110/airplanes</url></story><parent_chain></parent_chain><comment><author>koblas</author><text>Great work here, while I suck at games, it&#x27;s great to see how Go can be used to build browser based applications.</text></comment> |
31,635,531 | 31,635,238 | 1 | 3 | 31,634,400 | train | <story><title>Fine dining faces its dark truths in Copenhagen</title><url>https://www.ft.com/content/a62a96b8-2db2-44ec-ac80-67fcf83d86ef</url></story><parent_chain><item><author>_zzaw</author><text>I think inflicting sexual, physical, verbal, and psychological abuse—to say nothing of paying one’s workers a pittance, or not paying them at all—goes a little beyond merely being a “misfit”.</text></item><item><author>colechristensen</author><text>Anthony Bourdain characterized kitchens like that as a place for misfits to work when much of the rest of the world just can’t accommodate people of a certain disposition. Doubtless there are plenty of people who could never survive an office lifestyle and it is not wrong that some people need it.<p>There is a complicated issue where some people thrive in an environment which is abusive to people who have much different needs. Only accommodating the most vulnerable does leave people behind. (And I say this having had to speak up loudly more than once for someone being mistreated in the industry)</text></item><item><author>sva_</author><text>I have a few friends who work in restaurants (not Michelin-starred ones), and something I found peculiar is that pretty much all of them seem to be using hard drugs and consume excessive amounts of alcohol on the regular. A look through some places on the web where kitchenworkers exchange stories, such as &#x2F;r&#x2F;kitchenconfidential, confirmed to me that this is not a local phenomenon.</text></item></parent_chain><comment><author>jazzyjackson</author><text>I don&#x27;t the the parent was describing the abusers as misfits, but that the job can accomodate people who don&#x27;t fit in to other work<p>to put it another way, it&#x27;s not that the kitchen turns people into alcoholics, it&#x27;s that alcoholics find it hard to work anywhere else (since they can indulge their vice while gainfully employed)<p>As for abusers, they may find it convenient to fill their payroll with people who can&#x27;t make it elsewhere (drug addicts, misfits), such that your employees won&#x27;t quit the second you start sexually harassing them<p>(edit: a sibling comment to you makes a good point about the cycle of abuse, start as a misfit, get hazed, perpetuate the cycle of hiring people who put up with your abuse because they have no where else to go)</text></comment> | <story><title>Fine dining faces its dark truths in Copenhagen</title><url>https://www.ft.com/content/a62a96b8-2db2-44ec-ac80-67fcf83d86ef</url></story><parent_chain><item><author>_zzaw</author><text>I think inflicting sexual, physical, verbal, and psychological abuse—to say nothing of paying one’s workers a pittance, or not paying them at all—goes a little beyond merely being a “misfit”.</text></item><item><author>colechristensen</author><text>Anthony Bourdain characterized kitchens like that as a place for misfits to work when much of the rest of the world just can’t accommodate people of a certain disposition. Doubtless there are plenty of people who could never survive an office lifestyle and it is not wrong that some people need it.<p>There is a complicated issue where some people thrive in an environment which is abusive to people who have much different needs. Only accommodating the most vulnerable does leave people behind. (And I say this having had to speak up loudly more than once for someone being mistreated in the industry)</text></item><item><author>sva_</author><text>I have a few friends who work in restaurants (not Michelin-starred ones), and something I found peculiar is that pretty much all of them seem to be using hard drugs and consume excessive amounts of alcohol on the regular. A look through some places on the web where kitchenworkers exchange stories, such as &#x2F;r&#x2F;kitchenconfidential, confirmed to me that this is not a local phenomenon.</text></item></parent_chain><comment><author>colechristensen</author><text>Of course there is a point at which everything goes too far, but for a certain kind of person an amount of many of those things seems not to be abuse.</text></comment> |
27,581,809 | 27,581,908 | 1 | 2 | 27,580,946 | train | <story><title>We Can't Let People Work from Home, for Stupid Reasons</title><url>https://blog.davidtate.org/we-cant-let-people-work-from-home-for-stupid-reasons/</url></story><parent_chain><item><author>ecf</author><text>On the contrary, I feel it deserves LESS respect. Treating the office as an escape from an undesirable at-home situation and then having the audacity to try to force more people to be in-person is incredibly selfish behavior.<p>If these people truly need that social interaction, how about putting more effort into community&#x2F;personal relationships instead of workplace relationships?</text></item><item><author>lastofthemojito</author><text>I think a lot of the responses to the straw man&#x27;s questions are reasonable and thoughtful. But I think this sentiment:<p>&gt;I don&#x27;t want to change the way I work, I just want people to join me in the office. My kids are driving me crazy. Is it weird to say I&#x27;m lonely; I miss my office friends.<p>Deserves more respect. There are lot of types of people out there, and it seems like at least some of them are energized by being surrounded by smart people doing interesting work. For whatever reason, for some folks, exchanging Slack messages with those same smart people isn&#x27;t similarly energizing compared to overhearing and jumping into interesting in-person conversations, etc. Maybe the tech giants need to be very accommodating to remote work in order to maintain their massive workforces, but I think a lot of typical companies could just say &quot;we prefer being in-office&quot; and find sufficient local folks to make that happen. That won&#x27;t be for everyone. But there might be a sizeable enough cohort that performs better in the office that it&#x27;ll be a good option for some companies.</text></item></parent_chain><comment><author>alextheparrot</author><text>We should respect honesty more. At least then we can talk about the real issues, like maybe finding relationships in a non-work context.<p>We can call this person selfish and attend to the root malice only because they were honest. If they just contrived a reason to further their goal state, then they are being both duplicitous and selfish, which seems to be something we should respect less?</text></comment> | <story><title>We Can't Let People Work from Home, for Stupid Reasons</title><url>https://blog.davidtate.org/we-cant-let-people-work-from-home-for-stupid-reasons/</url></story><parent_chain><item><author>ecf</author><text>On the contrary, I feel it deserves LESS respect. Treating the office as an escape from an undesirable at-home situation and then having the audacity to try to force more people to be in-person is incredibly selfish behavior.<p>If these people truly need that social interaction, how about putting more effort into community&#x2F;personal relationships instead of workplace relationships?</text></item><item><author>lastofthemojito</author><text>I think a lot of the responses to the straw man&#x27;s questions are reasonable and thoughtful. But I think this sentiment:<p>&gt;I don&#x27;t want to change the way I work, I just want people to join me in the office. My kids are driving me crazy. Is it weird to say I&#x27;m lonely; I miss my office friends.<p>Deserves more respect. There are lot of types of people out there, and it seems like at least some of them are energized by being surrounded by smart people doing interesting work. For whatever reason, for some folks, exchanging Slack messages with those same smart people isn&#x27;t similarly energizing compared to overhearing and jumping into interesting in-person conversations, etc. Maybe the tech giants need to be very accommodating to remote work in order to maintain their massive workforces, but I think a lot of typical companies could just say &quot;we prefer being in-office&quot; and find sufficient local folks to make that happen. That won&#x27;t be for everyone. But there might be a sizeable enough cohort that performs better in the office that it&#x27;ll be a good option for some companies.</text></item></parent_chain><comment><author>Grimm1</author><text>For what it&#x27;s worth, without the word option being emphasized here, yours is an equally selfish desire because it brings harm to that person or group of people who prefer the office experience. I liked working in an office, sorry you don&#x27;t.</text></comment> |
31,633,299 | 31,632,669 | 1 | 2 | 31,632,137 | train | <story><title>I only care about the helpful notifications, not the promotional ones</title><url>https://alexanderell.is/posts/sneaking-notifications/</url></story><parent_chain><item><author>dguo</author><text>My rule is: if I get a single notification that I find useless, I&#x27;ll immediately disable that notification channel (I&#x27;m on Android; I&#x27;m not sure if iOS has a concept of channel-specific settings) for that app. Even if the channel can include useful notifications, as the article discusses.<p>If the app doesn&#x27;t bother to categorize its notifications into channels at all, I turn off its notifications entirely, and I won&#x27;t turn it back on.<p>If something is important enough, I can always manually check on it. My attention is too valuable to me to waste it on useless notifications.<p>I do want more control over my notifications in general. I use Google Apps Script to automatically process&#x2F;triage my email, and I want to do something similar with notifications. I can probably do so using Tasker, but I haven&#x27;t gotten around to it.</text></item></parent_chain><comment><author>izacus</author><text>&gt; My rule is: if I get a single notification that I find useless, I&#x27;ll immediately disable that notification channel (I&#x27;m on Android; I&#x27;m not sure if iOS has a concept of channel-specific settings) for that app. Even if the channel can include useful notifications, as the article discusses.<p>Well, the developers have started fighting against that by not splitting notifications into channels anymore. Now you just get &quot;General&quot; channel were basic functionality and spam can&#x27;t be separated.<p>The modern world of user abuse is great.</text></comment> | <story><title>I only care about the helpful notifications, not the promotional ones</title><url>https://alexanderell.is/posts/sneaking-notifications/</url></story><parent_chain><item><author>dguo</author><text>My rule is: if I get a single notification that I find useless, I&#x27;ll immediately disable that notification channel (I&#x27;m on Android; I&#x27;m not sure if iOS has a concept of channel-specific settings) for that app. Even if the channel can include useful notifications, as the article discusses.<p>If the app doesn&#x27;t bother to categorize its notifications into channels at all, I turn off its notifications entirely, and I won&#x27;t turn it back on.<p>If something is important enough, I can always manually check on it. My attention is too valuable to me to waste it on useless notifications.<p>I do want more control over my notifications in general. I use Google Apps Script to automatically process&#x2F;triage my email, and I want to do something similar with notifications. I can probably do so using Tasker, but I haven&#x27;t gotten around to it.</text></item></parent_chain><comment><author>xahrepap</author><text>I follow the same rule. But I will also then go one star review it.<p>I will also one-star review any app that prompts me to review it by first asking me if I like it (sneaky sneaky!)</text></comment> |
5,447,998 | 5,447,837 | 1 | 2 | 5,447,059 | train | <story><title>Graphs that show America’s health-care prices are ludicrous</title><url>http://www.washingtonpost.com/blogs/wonkblog/wp/2013/03/26/21-graphs-that-show-americas-health-care-prices-are-ludicrous/</url></story><parent_chain><item><author>michael_miller</author><text>Another way to look at this is that the US is subsidizing the world's healthcare. Take the example of drugs in the linked article [1]. Given their pricing power in the environment, the article asserts that we pay 2x what other countries do for identical drugs, for no other reason than we aren't negotiating as a large group. As an anecdotal example, when visiting Beijing, I had some trouble breathing, so I went to a pharmacy to buy an inhaler. I didn't have insurance that worked in China, so I had to pay out of pocket. Not only did I not need a prescription, but I also only paid $4 for the inhaler, complete with medicine. The same inhaler + medicine costs $10 with insurance in the US (god knows how much without it).<p>Tom Sackville, a UK politician quoted in [1] summed it up nicely: "We end up with the benefits of your investment. You’re subsidizing the rest of the world by doing the front-end research."<p>[1] <a href="http://www.washingtonpost.com/blogs/wonkblog/post/why-an-mri-costs-1080-in-america-and-280-in-france/2011/08/25/gIQAVHztoR_blog.html" rel="nofollow">http://www.washingtonpost.com/blogs/wonkblog/post/why-an-mri...</a></text></item></parent_chain><comment><author>robbiep</author><text>I believe this to be a fallacy: see my post further down <a href="https://news.ycombinator.com/item?id=5447890" rel="nofollow">https://news.ycombinator.com/item?id=5447890</a><p>Too much effort: didn't read?<p>The summly version:<p>Most of the excess expenditure in the US is <i>not</i> going to pharma and other device companies for research; it is instead being divided up by billing companies working for hospitals, doctors and other businesses in the supply chain.<p>This should be obvious to anyone who looks at the charts and sees the mean cost vs the high and low end: companies are charging what they can when they can to the end user because there is no good advocate for the end user and they are up against a wall.<p>I also expand on who does in effect pay for medics research and the answer is not the American consumer but mostly the taxpayers (and philanthropists to university endowments etc) of the world given that most of the research that advances medical knowledge, that is <i>innovative</i> rather than <i>iterative</i> research, is performed in universities.</text></comment> | <story><title>Graphs that show America’s health-care prices are ludicrous</title><url>http://www.washingtonpost.com/blogs/wonkblog/wp/2013/03/26/21-graphs-that-show-americas-health-care-prices-are-ludicrous/</url></story><parent_chain><item><author>michael_miller</author><text>Another way to look at this is that the US is subsidizing the world's healthcare. Take the example of drugs in the linked article [1]. Given their pricing power in the environment, the article asserts that we pay 2x what other countries do for identical drugs, for no other reason than we aren't negotiating as a large group. As an anecdotal example, when visiting Beijing, I had some trouble breathing, so I went to a pharmacy to buy an inhaler. I didn't have insurance that worked in China, so I had to pay out of pocket. Not only did I not need a prescription, but I also only paid $4 for the inhaler, complete with medicine. The same inhaler + medicine costs $10 with insurance in the US (god knows how much without it).<p>Tom Sackville, a UK politician quoted in [1] summed it up nicely: "We end up with the benefits of your investment. You’re subsidizing the rest of the world by doing the front-end research."<p>[1] <a href="http://www.washingtonpost.com/blogs/wonkblog/post/why-an-mri-costs-1080-in-america-and-280-in-france/2011/08/25/gIQAVHztoR_blog.html" rel="nofollow">http://www.washingtonpost.com/blogs/wonkblog/post/why-an-mri...</a></text></item></parent_chain><comment><author>NoPiece</author><text>That's true of drugs costs, but it doesn't explain the expense of things like an office visit.</text></comment> |
8,490,224 | 8,490,284 | 1 | 2 | 8,489,788 | train | <story><title>When Women Stopped Coding</title><url>http://www.npr.org/blogs/money/2014/10/21/357629765/when-women-stopped-coding</url></story><parent_chain><item><author>orionhenry</author><text>Gaming has been a hell of a gateway drug for programming.</text></item><item><author>jiggy2011</author><text>When I studied CS , only a small minority arrived with programming skills, a much larger number came with knowledge of gaming and by extension computer building because it was much easier to afford a PC required for the newest games if you could build it yourself.</text></item><item><author>nathan_long</author><text>This story makes a compelling case that women stopped programming because<p>- 1. Computers started being sold as consumer products
- 2. They were marketed almost exclusively to boys
- 3. Boys played with computers and learned about them, while girls were made to feel that computers weren&#x27;t for them
- 3. Men showed up to college with more computer experience
- 4. Women felt they must not be &quot;naturally good&quot; at computers, based on how men already knew more<p>While I think people sometimes exaggerate how much of gender differences come from society, advertising, etc, the facts of women&#x27;s history in programming are clear, and I think the cause is well-argued here.<p>We need to fix the perception that women aren&#x27;t welcome to program. We&#x27;re missing out on talented developers.</text></item></parent_chain><comment><author>filereaper</author><text>I concur.<p>I got into programming because I couldn&#x27;t complete a level in a game, and I resorted to cheat-codes and hacks.<p>First it was the missing-no hack in Pokemon, then getting the console for &quot;sv_cheats 1&#x2F;god&#x2F;impulse 101&#x2F;noclip&quot; for Half-Life and then rules.ini for the Red Alert series.<p>Hand hacking rules.ini for Red-Alert made a massive impression, any of the game&#x27;s dynamics could be altered, you could spew out units for $1, bolt a tesla-coil on a tank etc...<p>Cheats and trainers got me to look into the workings of a computer program, plus the midi music from trainers is addictive :)</text></comment> | <story><title>When Women Stopped Coding</title><url>http://www.npr.org/blogs/money/2014/10/21/357629765/when-women-stopped-coding</url></story><parent_chain><item><author>orionhenry</author><text>Gaming has been a hell of a gateway drug for programming.</text></item><item><author>jiggy2011</author><text>When I studied CS , only a small minority arrived with programming skills, a much larger number came with knowledge of gaming and by extension computer building because it was much easier to afford a PC required for the newest games if you could build it yourself.</text></item><item><author>nathan_long</author><text>This story makes a compelling case that women stopped programming because<p>- 1. Computers started being sold as consumer products
- 2. They were marketed almost exclusively to boys
- 3. Boys played with computers and learned about them, while girls were made to feel that computers weren&#x27;t for them
- 3. Men showed up to college with more computer experience
- 4. Women felt they must not be &quot;naturally good&quot; at computers, based on how men already knew more<p>While I think people sometimes exaggerate how much of gender differences come from society, advertising, etc, the facts of women&#x27;s history in programming are clear, and I think the cause is well-argued here.<p>We need to fix the perception that women aren&#x27;t welcome to program. We&#x27;re missing out on talented developers.</text></item></parent_chain><comment><author>panic</author><text>UNIX itself started because Ken Thompson wanted to port his game Space Travel to the PDP-7: <a href="http://cm.bell-labs.com/who/dmr/spacetravel.html" rel="nofollow">http:&#x2F;&#x2F;cm.bell-labs.com&#x2F;who&#x2F;dmr&#x2F;spacetravel.html</a></text></comment> |
11,368,246 | 11,367,387 | 1 | 3 | 11,366,265 | train | <story><title>Andy Grove’s Warning to Silicon Valley</title><url>http://www.nytimes.com/2016/03/26/opinion/andy-groves-warning-to-silicon-valley.html?action=click&pgtype=Homepage&clickSource=story-heading&module=opinion-c-col-left-region&region=opinion-c-col-left-region&WT.nav=opinion-c-col-left-region&_r=0</url></story><parent_chain><item><author>atom-morgan</author><text>And when they&#x27;re done? What about the jobs!</text></item><item><author>tw04</author><text>Given the absolutely embarrassing state of our country, hole diggers are exactly what we need. Legitimately go pay someone to dig holes all day and lay single-mode fiber to every home. Pay them to turn a wrench replacing support brackets on a bridge.<p>The Works program was the single most successful employer in this country&#x27;s history and we replaced it with welfare because &quot;unemployment is low and we don&#x27;t need it anymore&quot;. Stupidity. The US is a prime example of exactly how a government focused on job creation can be a raving success!</text></item><item><author>luso_brazilian</author><text>&gt; &quot;There was room for improvement, he argued, for what he called “job-centric” economics and politics. In a job-centric system, job creation would be the nation’s No. 1 objective, with the government setting priorities and arraying the forces necessary to achieve the goal, and with businesses operating not only in their immediate profit interest but also in the interests of “employees, and employees yet to be hired.”&quot;<p>Although a valid concern putting &quot;job creation&quot; as a goal for governments can (and in a lot of occurrences in recent history, did) backfire spectacularly.<p>In the most reductive analogy it creates incentive for the government to create &quot;hole diggers&quot; and &quot;hole fillers&quot; type of jobs that, in aggregate, generate very few useful work while fulfilling this basic goal of job creation.<p>I believe this &quot;job creation as priority&quot; approach is inferior to both the &quot;laissez-faire&quot; capitalist alternative and the &quot;basic income&quot; social democratic one.<p>As an example of its dangers it suffices to see the kafkaesque process of fund allocation (and sourcing) for the public funded aerospace industry, both the military procurement (fighter jets, bombers) and the civilian NASA one.</text></item></parent_chain><comment><author>jernfrost</author><text>While a job might not produce anything of value to a customer, I think it is often forgotten that a job also has the dual purpose of skills training.<p>People doing &quot;useless&quot; jobs might acquire the skills to do other and more useful jobs in the future. Keeping people unemployed has a high cost in the form of loss of skills over time, mental health etc.<p>If you don&#x27;t keep things going you might risk losing some people forever as their skills become so obsolete and their motivation and work capacity destroyed.<p>Companies will usually not higher long term unemployed so that is why many people can get permanently lost to the labour market.</text></comment> | <story><title>Andy Grove’s Warning to Silicon Valley</title><url>http://www.nytimes.com/2016/03/26/opinion/andy-groves-warning-to-silicon-valley.html?action=click&pgtype=Homepage&clickSource=story-heading&module=opinion-c-col-left-region&region=opinion-c-col-left-region&WT.nav=opinion-c-col-left-region&_r=0</url></story><parent_chain><item><author>atom-morgan</author><text>And when they&#x27;re done? What about the jobs!</text></item><item><author>tw04</author><text>Given the absolutely embarrassing state of our country, hole diggers are exactly what we need. Legitimately go pay someone to dig holes all day and lay single-mode fiber to every home. Pay them to turn a wrench replacing support brackets on a bridge.<p>The Works program was the single most successful employer in this country&#x27;s history and we replaced it with welfare because &quot;unemployment is low and we don&#x27;t need it anymore&quot;. Stupidity. The US is a prime example of exactly how a government focused on job creation can be a raving success!</text></item><item><author>luso_brazilian</author><text>&gt; &quot;There was room for improvement, he argued, for what he called “job-centric” economics and politics. In a job-centric system, job creation would be the nation’s No. 1 objective, with the government setting priorities and arraying the forces necessary to achieve the goal, and with businesses operating not only in their immediate profit interest but also in the interests of “employees, and employees yet to be hired.”&quot;<p>Although a valid concern putting &quot;job creation&quot; as a goal for governments can (and in a lot of occurrences in recent history, did) backfire spectacularly.<p>In the most reductive analogy it creates incentive for the government to create &quot;hole diggers&quot; and &quot;hole fillers&quot; type of jobs that, in aggregate, generate very few useful work while fulfilling this basic goal of job creation.<p>I believe this &quot;job creation as priority&quot; approach is inferior to both the &quot;laissez-faire&quot; capitalist alternative and the &quot;basic income&quot; social democratic one.<p>As an example of its dangers it suffices to see the kafkaesque process of fund allocation (and sourcing) for the public funded aerospace industry, both the military procurement (fighter jets, bombers) and the civilian NASA one.</text></item></parent_chain><comment><author>tw04</author><text>When they&#x27;re done they start all over again. Unless you&#x27;ve invented some magical material that never needs replacing it will have broken down by the time they finish. It&#x27;s not like we have so many unemployed people that we&#x27;re going to replace&#x2F;upgrade every piece of infrastructure that needs it in a year.</text></comment> |
14,919,916 | 14,919,966 | 1 | 3 | 14,917,765 | train | <story><title>Stack Overflow Sunsetting Documentation</title><url>https://meta.stackoverflow.com/questions/354217/sunsetting-documentation/</url></story><parent_chain><item><author>PaulHoule</author><text>Lately I have been writing a lot of Python and I am seeing a lot of bit rot in Stack Overflow lately.<p>For one thing, it seems almost all the code snippets use &quot;print-without-parenthesis&quot; from Python 2, so you cannot just cut and paste them into Python 3. It isn&#x27;t hard to fix this, but it&#x27;s a clear sign the lights are on and nobody is home.<p>The lack of curation is a problem too. Often the first answer is wrong, or less than optimal. From the viewpoint of somebody looking for answers you don&#x27;t really want 10 people&#x27;s opinion, you want one really good answer.</text></item><item><author>shagie</author><text>A core problem for Stack Overflow is the lack of people willing to curate material. Its not an easy job and is quite thankless.<p>Its possible to have a site that is a mashup of &#x2F;r&#x2F;programming, &#x2F;r&#x2F;programmerhumor and &#x2F;r&#x2F;learnprogramming (and a few others) all on one site. Though when all of those things are together on one site it makes the job of the people trying to curate it impossible.<p>Sure, Strangest language feature is interesting... and it has 320 visible answers when it was locked. Is it useful? It might be interesting, but it is impossible to remove the crap content from it (go to page 11 and start reading backwards and saying &quot;is that useful or not?&quot;).<p>Jeff Atwood wrote about this - <a href="https:&#x2F;&#x2F;stackoverflow.blog&#x2F;2012&#x2F;01&#x2F;31&#x2F;the-trouble-with-popularity&#x2F;" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.blog&#x2F;2012&#x2F;01&#x2F;31&#x2F;the-trouble-with-popul...</a> . Too much interesting but ultimately not useful stuff gets in the way of finding useful stuff. This really runs up against the Atwoodian vision of Stack Overflow ( <a href="https:&#x2F;&#x2F;blog.codinghorror.com&#x2F;introducing-stackoverflow-com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.codinghorror.com&#x2F;introducing-stackoverflow-com&#x2F;</a> )<p>&gt; It is by programmers, for programmers, with the ultimate intent of collectively increasing the sum total of <i>good</i> programming knowledge in the world. No matter what programming language you use, or what operating system you call home. Better programming is our goal.<p>Interesting stuff and fun stuff may be interesting and fun - but when it gets in the way of making a site that is a library of good programming knowledge... something needs to be done about it.<p>Everything doesn&#x27;t have to be on Stack Overflow. There are many other sites that are better suited to discussions and fun things than the format for that Stack Overflow took as a Q&amp;A site.<p>It may be boring and heavily controlled... but that unity of vision is necessary for trying to make it a site that provides material that I need when I search for how to deal with some programming problem of configuring Spring Statemachine or whatnot... and then interesting and fun gets in the way of me doing my job.</text></item><item><author>jon889</author><text>Ever since StackOverflow started closing strictly off topic questions that were interesting and still related to programming (closed as not constructive, or locked and marked as having &quot;historical significance&quot; such as <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;1995113&#x2F;strangest-language-feature" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;1995113&#x2F;strangest-langua...</a>) the sense of community there pretty much disappeared. There&#x27;s not much incentive for knowledgable people to visit a site that is boring, and now StackOverflow seems to contain a lot more questions asked by noobs (I&#x27;ve done this about subjects I don&#x27;t know) that go unanswered.<p>The same also goes for questions that are almost duplicates. Or are basically but have been inactive so you want to get further information. And when interesting discussions get moved to chat. The whole place is just boring and too heavily controlled. I&quot;m not surprised something that required community failed there.</text></item></parent_chain><comment><author>fovc</author><text>It&#x27;s even worse with javascript. Often times there will be 10+ duplicates with legacy kludgy answers that are irrelevant now or using jquery, when the correct answer should use new APIs or less buggy browsers.</text></comment> | <story><title>Stack Overflow Sunsetting Documentation</title><url>https://meta.stackoverflow.com/questions/354217/sunsetting-documentation/</url></story><parent_chain><item><author>PaulHoule</author><text>Lately I have been writing a lot of Python and I am seeing a lot of bit rot in Stack Overflow lately.<p>For one thing, it seems almost all the code snippets use &quot;print-without-parenthesis&quot; from Python 2, so you cannot just cut and paste them into Python 3. It isn&#x27;t hard to fix this, but it&#x27;s a clear sign the lights are on and nobody is home.<p>The lack of curation is a problem too. Often the first answer is wrong, or less than optimal. From the viewpoint of somebody looking for answers you don&#x27;t really want 10 people&#x27;s opinion, you want one really good answer.</text></item><item><author>shagie</author><text>A core problem for Stack Overflow is the lack of people willing to curate material. Its not an easy job and is quite thankless.<p>Its possible to have a site that is a mashup of &#x2F;r&#x2F;programming, &#x2F;r&#x2F;programmerhumor and &#x2F;r&#x2F;learnprogramming (and a few others) all on one site. Though when all of those things are together on one site it makes the job of the people trying to curate it impossible.<p>Sure, Strangest language feature is interesting... and it has 320 visible answers when it was locked. Is it useful? It might be interesting, but it is impossible to remove the crap content from it (go to page 11 and start reading backwards and saying &quot;is that useful or not?&quot;).<p>Jeff Atwood wrote about this - <a href="https:&#x2F;&#x2F;stackoverflow.blog&#x2F;2012&#x2F;01&#x2F;31&#x2F;the-trouble-with-popularity&#x2F;" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.blog&#x2F;2012&#x2F;01&#x2F;31&#x2F;the-trouble-with-popul...</a> . Too much interesting but ultimately not useful stuff gets in the way of finding useful stuff. This really runs up against the Atwoodian vision of Stack Overflow ( <a href="https:&#x2F;&#x2F;blog.codinghorror.com&#x2F;introducing-stackoverflow-com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.codinghorror.com&#x2F;introducing-stackoverflow-com&#x2F;</a> )<p>&gt; It is by programmers, for programmers, with the ultimate intent of collectively increasing the sum total of <i>good</i> programming knowledge in the world. No matter what programming language you use, or what operating system you call home. Better programming is our goal.<p>Interesting stuff and fun stuff may be interesting and fun - but when it gets in the way of making a site that is a library of good programming knowledge... something needs to be done about it.<p>Everything doesn&#x27;t have to be on Stack Overflow. There are many other sites that are better suited to discussions and fun things than the format for that Stack Overflow took as a Q&amp;A site.<p>It may be boring and heavily controlled... but that unity of vision is necessary for trying to make it a site that provides material that I need when I search for how to deal with some programming problem of configuring Spring Statemachine or whatnot... and then interesting and fun gets in the way of me doing my job.</text></item><item><author>jon889</author><text>Ever since StackOverflow started closing strictly off topic questions that were interesting and still related to programming (closed as not constructive, or locked and marked as having &quot;historical significance&quot; such as <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;1995113&#x2F;strangest-language-feature" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;1995113&#x2F;strangest-langua...</a>) the sense of community there pretty much disappeared. There&#x27;s not much incentive for knowledgable people to visit a site that is boring, and now StackOverflow seems to contain a lot more questions asked by noobs (I&#x27;ve done this about subjects I don&#x27;t know) that go unanswered.<p>The same also goes for questions that are almost duplicates. Or are basically but have been inactive so you want to get further information. And when interesting discussions get moved to chat. The whole place is just boring and too heavily controlled. I&quot;m not surprised something that required community failed there.</text></item></parent_chain><comment><author>tedmiston</author><text>You can edit other people&#x27;s answers to update them or fix this. Most people are very open to it. I do it regularly if the code isn&#x27;t linted or if SQL keywords are lowercase vs uppercase to improve readability for everyone.</text></comment> |
9,382,512 | 9,381,152 | 1 | 3 | 9,380,468 | train | <story><title>Remote Kernel Code Execution Via HTTP Request In IIS On Windows</title><url>https://ma.ttias.be/remote-code-execution-via-http-request-in-iis-on-windows/?hn</url></story><parent_chain><item><author>Khao</author><text>I tried to send the bad curl request to our servers (test env, obviously) and I didn&#x27;t get any error. It seems I should be getting &quot;Requested Range Not Satisfiable&quot; if the server is vulnerable and &quot;The request has an invalid header name&quot; if it&#x27;s patched. I&#x27;m getting neither, simply a normal response HTTP 200 with the requested page. Anyone knows how to really test it?<p>EDIT : It is indeed related to &quot;Output Cache&quot; setting in IIS as I said I was suspecting in another comment. I managed to crash our servers by going to IIS Management, select the website I wanted to test, go to Output Caching, enable the feature AND also add a rule (I added a rule for .png just to test). If you have NO rules it is the same as having the feature disabled so you are safe. If you add a rule and check &quot;Enable Kernal Caching&quot; you are vulnerable!<p>EDIT 2 : As some have asked, this is the command I used to crash our test server. I tested it after having created a new Output Caching rule to cache all .png files in kernel mode.<p>curl -v <a href="http:&#x2F;&#x2F;example.com&#x2F;image.png" rel="nofollow">http:&#x2F;&#x2F;example.com&#x2F;image.png</a> -H &quot;Range: bytes=18-18446744073709551615&quot;<p>I didn&#x27;t take a screenshot of the BSOD and I don&#x27;t plan on crashing our test env a second time today because people are using it (I tested it early enough that not a lot of people were at the office yet).</text></item></parent_chain><comment><author>cbrevik</author><text>I just crashed a 2008 R2 server without a rule, just with &quot;Enable Kernel Caching&quot;.
Not sure if it is relevant, but I first added a rule for .png, and then removed it again. Still worked.</text></comment> | <story><title>Remote Kernel Code Execution Via HTTP Request In IIS On Windows</title><url>https://ma.ttias.be/remote-code-execution-via-http-request-in-iis-on-windows/?hn</url></story><parent_chain><item><author>Khao</author><text>I tried to send the bad curl request to our servers (test env, obviously) and I didn&#x27;t get any error. It seems I should be getting &quot;Requested Range Not Satisfiable&quot; if the server is vulnerable and &quot;The request has an invalid header name&quot; if it&#x27;s patched. I&#x27;m getting neither, simply a normal response HTTP 200 with the requested page. Anyone knows how to really test it?<p>EDIT : It is indeed related to &quot;Output Cache&quot; setting in IIS as I said I was suspecting in another comment. I managed to crash our servers by going to IIS Management, select the website I wanted to test, go to Output Caching, enable the feature AND also add a rule (I added a rule for .png just to test). If you have NO rules it is the same as having the feature disabled so you are safe. If you add a rule and check &quot;Enable Kernal Caching&quot; you are vulnerable!<p>EDIT 2 : As some have asked, this is the command I used to crash our test server. I tested it after having created a new Output Caching rule to cache all .png files in kernel mode.<p>curl -v <a href="http:&#x2F;&#x2F;example.com&#x2F;image.png" rel="nofollow">http:&#x2F;&#x2F;example.com&#x2F;image.png</a> -H &quot;Range: bytes=18-18446744073709551615&quot;<p>I didn&#x27;t take a screenshot of the BSOD and I don&#x27;t plan on crashing our test env a second time today because people are using it (I tested it early enough that not a lot of people were at the office yet).</text></item></parent_chain><comment><author>amarraja</author><text>Have tried on all our production facing domains (with and without CDN and get 200 responses also.<p>One server (our development server) has proven vulnerable. Maybe reverse proxies are sanitizing the results?<p><pre><code> $ curl -v 10.100.0.40&#x2F; -H &quot;Host: irrelevant&quot; -H &quot;Range: bytes=0-18446744073709551615&quot;
* About to connect() to 10.100.0.40 port 80 (#0)
* Trying 10.100.0.40...
* Adding handle: conn: 0x1d83278
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x1d83278) send_pipe: 1, recv_pipe: 0
* Connected to 10.100.0.40 (10.100.0.40) port 80 (#0)
&gt; GET &#x2F; HTTP&#x2F;1.1
&gt; User-Agent: curl&#x2F;7.30.0
&gt; Accept: *&#x2F;*
&gt; Host: irrelevant
&gt; Range: bytes=0-18446744073709551615
&gt;
&lt; HTTP&#x2F;1.1 416 Requested Range Not Satisfiable
&lt; Content-Type: text&#x2F;html
&lt; Last-Modified: Wed, 27 Aug 2014 14:56:23 GMT
&lt; Accept-Ranges: bytes
&lt; ETag: &quot;885fe5117c2cf1:0&quot;
* Server Microsoft-IIS&#x2F;7.5 is not blacklisted
&lt; Server: Microsoft-IIS&#x2F;7.5</code></pre></text></comment> |
39,013,305 | 39,009,307 | 1 | 3 | 39,004,526 | train | <story><title>Niklaus Wirth, or the Importance of Being Simple</title><url>https://cacm.acm.org/blogs/blog-cacm/279178-niklaus-wirth-or-the-importance-of-being-simple/fulltext</url></story><parent_chain></parent_chain><comment><author>Agraillo</author><text>The article mentioned Philippe Kahn (Borland co-founder) as the student of Wirth, never heard the fact before. The podcast [1] confirms this. Probably the Borland&#x27;s decision to buy Compass Pascal might be influenced by his Kahn&#x27;s early impressions.<p><i>[00:07:12] ... I remember you had a choice between two programming language and on one side they taught Fortran and Fortran is the language of science, or it was the language of scientists.<p>[00:07:40] And then there was this new class that was started by this Professor Niklaus Wirth about Pascal. And it was, I think the first or second year it was taught. There were a lot of people in the Fortran class and not that many people in the Pascal class. So I said, oh, I&#x27;ll go to the Pascal class.<p>[00:07:59] And that&#x27;s how I met Professor Wirth. And that was great. That was my favorite class from that moment because he&#x27;s such a, such an enlightened person and a clear thinker that it was a great, great experience for me.</i><p>[1] <a href="https:&#x2F;&#x2F;ethz.ch&#x2F;en&#x2F;news-and-events&#x2F;eth-news&#x2F;news&#x2F;2022&#x2F;05&#x2F;we-are-eth-podcast-philippe-kahn.html" rel="nofollow">https:&#x2F;&#x2F;ethz.ch&#x2F;en&#x2F;news-and-events&#x2F;eth-news&#x2F;news&#x2F;2022&#x2F;05&#x2F;we-...</a></text></comment> | <story><title>Niklaus Wirth, or the Importance of Being Simple</title><url>https://cacm.acm.org/blogs/blog-cacm/279178-niklaus-wirth-or-the-importance-of-being-simple/fulltext</url></story><parent_chain></parent_chain><comment><author>dang</author><text>Recent and related:<p><i>Closing word at Zürich Colloquium (1968)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38883652">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38883652</a> - Jan 2024 (28 comments)<p><i>Niklaus Wirth, 1934-2024: Geek For Life</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38871086">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38871086</a> - Jan 2024 (61 comments)<p><i>Niklaus Wirth has died</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38858012">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38858012</a> - Jan 2024 (403 comments)</text></comment> |
27,604,901 | 27,605,120 | 1 | 2 | 27,603,747 | train | <story><title>Instructions show how cops use GrayKey to brute force iPhones</title><url>https://www.vice.com/en/article/k7835w/how-to-brute-force-iphones-graykey</url></story><parent_chain><item><author>TwoBit</author><text>I once had auto reset enabled on my phone after 10 attempts, and then somehow while it was in my gym bag it proceeded to accidentally get buttons pressed and reset itself. Better to set that number to 1000 instead of 10.</text></item><item><author>gjsman-1000</author><text>Quote from Apple Platform Security &gt; Hardware Security &gt; Secure Enclave:<p>&quot;Devices first released in Fall 2020 or later are equipped with a 2nd-generation Secure Storage Component. The 2nd-generation Secure Storage Component adds counter lockboxes. Each counter lockbox stores a 128-bit salt, a 128-bit passcode verifier, an 8-bit counter, and an 8-bit maximum attempt value. Access to the counter lockboxes is through an encrypted and authenticated protocol.<p>Counter lockboxes hold the entropy needed to unlock passcode-protected user data. To access the user data, the paired Secure Enclave must derive the correct passcode entropy value from the userʼs passcode and the Secure Enclaveʼs UID. The user’s passcode can’t be learned using unlock attempts sent from a source other than the paired Secure Enclave. If the passcode attempt limit is exceeded (for example, 10 attempts on iPhone), the passcode-protected data is erased completely by the Secure Storage Component.&quot;<p><a href="https:&#x2F;&#x2F;support.apple.com&#x2F;guide&#x2F;security&#x2F;secure-enclave-sec59b0b31ff&#x2F;1&#x2F;web&#x2F;1" rel="nofollow">https:&#x2F;&#x2F;support.apple.com&#x2F;guide&#x2F;security&#x2F;secure-enclave-sec5...</a></text></item><item><author>gjsman-1000</author><text>Of notable curiosity not mentioned by VICE, but Apple actually modified their A12, A13, and A14 (I believe) CPUs <i>while still in production</i> to have a new second-generation Secure Enclave embedded within them sometime around Fall 2020. We don&#x27;t know the full extent of the changes, but it sounds like the 2nd-generation enclave comes with much stronger hardware-based rate limiting on PIN code guessing through a &quot;mailbox&quot; system.<p>For me, that means I have my eyes all on whether an iPhone 12, iPhone 12 Pro, or (new) iPhone SE 2nd Gen get hacked. Right now the highest confirmed GrayKey hack is an iPhone 11, which wouldn&#x27;t have the change. We&#x27;ll see whether Apple got them this time.</text></item></parent_chain><comment><author>gruez</author><text>How&#x27;s that even possible? AFAIK after the first few attempts there&#x27;s an exponentially increasing lockout time between passcode attempts, so the random button pressings would have to persist for a long time for it to reach 10 attempts.</text></comment> | <story><title>Instructions show how cops use GrayKey to brute force iPhones</title><url>https://www.vice.com/en/article/k7835w/how-to-brute-force-iphones-graykey</url></story><parent_chain><item><author>TwoBit</author><text>I once had auto reset enabled on my phone after 10 attempts, and then somehow while it was in my gym bag it proceeded to accidentally get buttons pressed and reset itself. Better to set that number to 1000 instead of 10.</text></item><item><author>gjsman-1000</author><text>Quote from Apple Platform Security &gt; Hardware Security &gt; Secure Enclave:<p>&quot;Devices first released in Fall 2020 or later are equipped with a 2nd-generation Secure Storage Component. The 2nd-generation Secure Storage Component adds counter lockboxes. Each counter lockbox stores a 128-bit salt, a 128-bit passcode verifier, an 8-bit counter, and an 8-bit maximum attempt value. Access to the counter lockboxes is through an encrypted and authenticated protocol.<p>Counter lockboxes hold the entropy needed to unlock passcode-protected user data. To access the user data, the paired Secure Enclave must derive the correct passcode entropy value from the userʼs passcode and the Secure Enclaveʼs UID. The user’s passcode can’t be learned using unlock attempts sent from a source other than the paired Secure Enclave. If the passcode attempt limit is exceeded (for example, 10 attempts on iPhone), the passcode-protected data is erased completely by the Secure Storage Component.&quot;<p><a href="https:&#x2F;&#x2F;support.apple.com&#x2F;guide&#x2F;security&#x2F;secure-enclave-sec59b0b31ff&#x2F;1&#x2F;web&#x2F;1" rel="nofollow">https:&#x2F;&#x2F;support.apple.com&#x2F;guide&#x2F;security&#x2F;secure-enclave-sec5...</a></text></item><item><author>gjsman-1000</author><text>Of notable curiosity not mentioned by VICE, but Apple actually modified their A12, A13, and A14 (I believe) CPUs <i>while still in production</i> to have a new second-generation Secure Enclave embedded within them sometime around Fall 2020. We don&#x27;t know the full extent of the changes, but it sounds like the 2nd-generation enclave comes with much stronger hardware-based rate limiting on PIN code guessing through a &quot;mailbox&quot; system.<p>For me, that means I have my eyes all on whether an iPhone 12, iPhone 12 Pro, or (new) iPhone SE 2nd Gen get hacked. Right now the highest confirmed GrayKey hack is an iPhone 11, which wouldn&#x27;t have the change. We&#x27;ll see whether Apple got them this time.</text></item></parent_chain><comment><author>pueblito</author><text>Or someone tried to access your phone while you were away</text></comment> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.