Readit News logoReadit News
PhDuck commented on John Carmack on Functional Programming in C++ (2018)   sevangelatos.com/john-car... · Posted by u/signa11
optbuild · 3 years ago
Why aren't more universities teaching functional programming first to form good mental models for the students and then show them when to use state and when to not.

Why is everyone teaching Python?

PhDuck · 3 years ago
I think many CS degrees teach FP, I remember learning a variant of SML (mosml) for my first programming course. Now the same university is teaching the same course in F#.

Of course a lot of the data science/machine learning is being done in Python, but that is likely due much of the frameworks/tooling around is Python in general in that world.

PhDuck commented on Lenovo ThinkPad P1 Gen3 Review – with Linux   ernestas.me/lenovo-thinkp... · Posted by u/narmontas
jeroenhd · 4 years ago
I have a model from this series. I find the trackpad to work great and I don't see the problem the author is having with it. Dragging works just fine, assuming you use the correct drag gesture (quick double tap, then drag, like usual).

Compatibility wise, my experience has been slowly degrading. I've had to force the Intel GPU driver to use DRI 2 or X11 wouldn't work (this might have something to do with the manual config in the sound system I needed to get the sound working when I bought the laptop because Intel hadn't released proper drivers yet).

I'd use Wayland, but that just doesn't work with the Nvidia GPU (even though it should in modern drivers). A recent kernel update broke sleep for me, it now no longer goes to sleep and immediately wakes up.

I also occasionally get full system freezes whenever GDM tries to load the login screen, either on boot or when switching users. Those have been becoming more rare lately but it's still happening every now and then. Just a black screen, the computer slowly heating up and nothing.

Lastly, for firmware updates you just need to boot Windows every now and then. Some firmware updates come through fwupdmgr, but others need to be installed manually or through a Windows install.

Perhaps I need a reinstall Linux, perhaps I need to switch distros. It works fine with it works: touchpad is nice and responsive, has full multi finger gesture support in Wayland, the keyboard is good and the palm rejection is a pain when trying to game on the touchpad but it works great for normal typing. I've also found it a lot quieter and longer lasting on Linux than on Windows, where the CPU and GPU either underclock dramatically or the fan spins up constantly.

PhDuck · 4 years ago
Honest question: Have you ever used a MacBook trackpad long term?

From my experience with Dell XPS/Precision, Lenovo Thinkpads, IBM Thinkpads, and finally MacBooks, the MacBooks are far ahead. The Thinkpads trackpad are way too small, and Dell's are now days large enough but too imprecise. Both the Dell ones will sometimes trigger a click when typing on the keyboard since the trackpad is too sensitive.

PhDuck commented on CompilerJobs – A listing of compiler, language and runtime teams   mgaudet.github.io/Compile... · Posted by u/jasim
PhDuck · 5 years ago
It is really uplifting to see so many places, always felt there was far fewer out there.
PhDuck commented on Why do recipe writers lie about how long it takes to caramelize onions? (2012)   slate.com/human-interest/... · Posted by u/tosh
seanwilson · 5 years ago
There just isn't a culture around cooking (non-professional setting anyway) of doing experiments to validate your claims so myths, inaccuracies and just-so stories are rampant, even when experiments are very cheap and practical to do.

I'm not sure how you change this. I find it really grating how much contradictory cooking advice there is and how complex some recipes are without justifying the extra steps make any difference.

If you're making bread for example, some recipes will say don't add the salt with the yeast because it will make it rise slower and some recipes say it won't make a difference - it should be simple to confirm this with an experiment in a day to settle it for good and move on but for whatever reason this doesn't happen.

Is there a good reason why you couldn't settle how to caramelise onions with a few experiments?

PhDuck · 5 years ago
Agree with you for most recipe books and websites, however a few rise above the crowds. Serious eats, Cook's Illustrated, and most likely more.
PhDuck commented on Offensive Tweet Quiz   inteoryx.com/htmls/Twitte... · Posted by u/inteoryx
PhDuck · 5 years ago
The main problem with both algorithms is that they seem overly sensitive, many times neither of the options seemed to be offensive.
PhDuck commented on Low latency tuning guide   rigtorp.se/low-latency-gu... · Posted by u/ingve
PhDuck · 6 years ago
This is a cool article in the sense that it gives an idea of tuning that can be done on one extreme. While most applications won't need this level of tuning and some of them might be hurting if one isn't CPU bound, it is great to know which options exists.

Does anyone have further articles exploring the topic of os tuning for various types of applications? Maybe also for other OS, BSD/Win?

PhDuck commented on Finland’s Basic Income Experiment Shows Recipients Are Happier and More Secure   bloomberg.com/news/articl... · Posted by u/pseudolus
PhDuck · 7 years ago
As a member of the Nordic societies I find it important to point out some important information. In these countries we already have rather sizable unemployment benefits. If you read the (better) article by NYT[0] on the same subject, you will be given an example showing her income under basic income only increased with 50$ out of 635$.

[0]: https://www.nytimes.com/2019/02/09/world/europe/finland-basi...

PhDuck commented on Oat Milk Could Change the Way You Drink Coffee (2018)   time.com/5190977/how-oat-... · Posted by u/indigodaddy
dhimes · 7 years ago
Here's a comparison of nutritional value, from Livestrong[1]

"Let's take Oatly Oat Drink Whole. One cup has:

    120 calories
    5 grams of fat
    3 grams of protein
    14 grams of carbohydrate
    2 grams of fiber
It also provides 25 percent of the RDA of calcium, 18 percent of the RDA of vitamin D and 11 percent of the RDA of potassium.

The same amount of cow's milk with 3.5 percent fat contains:

    146 calories
    11 grams of carbohydrate
    8 grams of protein
    8 grams of fat
It boasts 25 percent of the RDA of calcium, 5 percent of the RDA of vitamin A and 1 percent of the RDA of iron. Unlike oat milk, it has no fiber at all."

[1]https://www.livestrong.com/article/267017-what-are-the-benef...

PhDuck · 7 years ago
It might not have fiber, but on the other hand it has far more protein.
PhDuck commented on Facebook says new bug allowed apps access to private photos of up to 6.8M users   washingtonpost.com/techno... · Posted by u/chrisseldo
neurobashing · 7 years ago
my response to this is always in the vein of, "how exactly should customers show they care?"

"Well, leave!" isn't an option. They can't leave. Quitting Facebook when you're an active user means you lose a huge amount of social contact. I can think of a dozen people I know who are there because it's how they send baby pics and the like to family. They're non-technical and don't care about federated mastodons, they just want to see their niece and go to their high school reunion.

So yeah they get really mad at this stuff but the network effect is so strong, you can't simultaneously convince the entire graduating class of whatever to plan reunions via some new thing when 1)everyone's already on facebook and 2)they've been using it for so long it's part of their workflow.

PhDuck · 7 years ago
Leaving is of course an option.

The fact that they don't leave mearly show that they value the gained social contact higher than the cost of data breaches.

PhDuck commented on Google activated battery saving mode on multiple phones, then rolled it back   reddit.com/r/GooglePixel/... · Posted by u/remir
hellosputnik · 8 years ago
You can avoid all of this by using an iPhone. Apple's business model does not involve ad revenue or data collection. Your data is collected but is used purely to improve the iPhone. Your data is intentionally obfuscated for privacy. For an example of Apple's strict policy, check out this article on Apple Maps: https://techcrunch.com/2018/06/29/apple-is-rebuilding-maps-f...
PhDuck · 8 years ago
I'm not sure if it is still the case nowadays, but back when I had an iPhone I remember that Apple had a killswitch which allowed them to remove already installed apps on one's phone.

Nevertheless, I doubt that Apple is more inclined to give away their control of your device. I would guess that they could do the exact same as Google did.

u/PhDuck

KarmaCake day40September 29, 2014View Original