<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: NaNDude</title><link>https://news.ycombinator.com/user?id=NaNDude</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Thu, 02 Jul 2026 18:29:30 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=NaNDude" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by NaNDude in "Why should the copy constructor accept its parameter by reference in C++?"]]></title><description><![CDATA[
<p>i've seen you'v been recommended to learn C in another thread.
in C++, the use of "references" really require to understand the concept of pointers, they'r basically the same things but not exchangeable, because references hide some aspects of pointers that make the syntax a little more shitty. in fact the syntax of references (the use of '&' in parameters) come from the syntax of pointers, it means "address of".<p>int incr2(int& value) { value = value + 1; return value; }<p>is the same as<p>int incr3(int* value) { (*value) = (*value) + 1; return *value; }<p>and they will be used diferently for the same result :<p>void main() {<p><pre><code>  int a_value = 5;

  int result2 = incr2(a_value); // result2 = a_value = 6;
  int result3 = incr3(&a_value); // resulst3 = a_value = 7;
</code></pre>
}<p>in the call to incr3 "&a_value" can be read : address_of "a_value".<p>and in the body of incr3 "*value" can be read : content of address "value".<p>and finnaly in the prototype "int incr3(int* value)", "int*" can be read : pointer to an int, or address of an int.<p>pointer/address are a fundamental concept for programming at large, the concept of "indirection".<p>all this may seem unrelated at first, but in your Complex problem, you can try something like :<p>#include <iostream><p>...<p>Complex c2;<p>std::cout << &c2 /* address of c2 */ << std::endl;<p>and in your copy constructor :<p>Complex(Complex& c) {<p><pre><code>  std::cout << &c /\* address of c \*/ << std::endl;

  ...
</code></pre>
}<p>you will see that, with a reference, the addresses are the sames, but without references you will get different addresses meaning that your variables are'nt the same (in the case of function parameters/arguments they are copies of the parameters values, that's why we call this "pass by value" semantic, rather than "pass by reference" or "pass by address" or box, or indirection, or whatever having the same meaning).<p>hope this help.</p>
]]></description><pubDate>Sun, 05 Feb 2023 07:00:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=34662646</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=34662646</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34662646</guid></item><item><title><![CDATA[New comment by NaNDude in "Why should the copy constructor accept its parameter by reference in C++?"]]></title><description><![CDATA[
<p>implicitly yes.</p>
]]></description><pubDate>Sun, 05 Feb 2023 06:31:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=34662524</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=34662524</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34662524</guid></item><item><title><![CDATA[New comment by NaNDude in "Why should the copy constructor accept its parameter by reference in C++?"]]></title><description><![CDATA[
<p>> Correct me if I'm wrong: In int main, "complex c3(c2)" creates a copy of c2 and thus passes c2 to copy constructor.<p>it never pass c2 to the copy constructor.<p>a) it pass a reference to it, if the copy constructor is defined as "Complex(Complex& refr)"<p>b) it pass a copy of it, if the copy constructor is defined as "Complex(Complex copy).<p>just dont consider references in the context of objects or copy constructors, but in the context of a simple function :<p>int incr1(int value) { value = value + 1; return value; }<p>vs<p>int incr2(int& value) { value = value + 1; return value; }<p>in incr1 value is local to the function, it is a copy of the value you pass as parameter<p>in incr2 it is'nt local to the function, there is no copy done.<p>// not tested sample :<p>#include <assert.h><p>void main() {<p><pre><code>  int a_value = 2;

  int result1 = incr1(a_value); // no reference, a copy, local to the function, is made.
  assert(a_value == 2);         // ok
  assert(result1 == 3);         // ok

  int result2 = incr2(a_value); // with reference, there is no copy made.
  assert(a_value == 2);         // error, the original a_value parameter as been incremented.
  assert(a_value == 3);         // ok
  assert(result2 == 3);         // ok</code></pre>
}<p>the incr1 is more "secure" (it is said "pure", for this and others reasons), but it always make a temporary int that is a copy of the parameter you give to it.<p>the incr2 is less "secure", but there is no temporary int created.<p>that's exactly to prevent the temporary int/Complex that copy constructors always require a reference, because when you call the copy constructor explicitly (in : Complex c3(c2); ), the copy constructor for the temporary will be called implicitly too, and the copy constructor for the temporary of the temporary called implicitly will be called implicitly too, etc.<p>hope this help.</p>
]]></description><pubDate>Sun, 05 Feb 2023 06:16:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=34662459</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=34662459</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34662459</guid></item><item><title><![CDATA[New comment by NaNDude in "Why should the copy constructor accept its parameter by reference in C++?"]]></title><description><![CDATA[
<p>the most important point to keep in mind is the default pass by value context.<p>without defining a copy constructor, the compiler will do the copy
himself, the point is : there is no copy constructor to call,
so you have :<p>1) first the new Complex c3 is allocated,<p>2) there is no copy constructor to call<p>3) the compiler do the job, the memory used by c2 is copied on c3.<p>end of the story, no parameter value.<p>when adding a legal copy constructor (pass by reference), you may consider the reference like some sort of pointer. this is false, but help to understand the memory behavior of a copy constructor. then you have something like :<p>1) first the new Complex c3 is allocated<p>2) the "memory" for c, the reference/pointer to c2, is allocated.<p>3) the _address_ of c2 is copied in c.<p>4) the c3 constructor start with the reference/pointer/address of c2 as parameter.<p>end of the story, normal "pass by value" of an address.<p>finaly, if a copy constructor _without_ reference/pointer was legal,
you will have:<p>1) first the new Complex c3 is allocated,<p>2) another new Complex, the c3 copy constructor parameter value c, is allocated.<p>3) instead of directly copying c2 memory to c, there is the c copy constructor to call (with a copy of c2 as parameter value)<p>4) another new Complex c_bis, the c copy constructor parameter value (c), is allocated.<p>5) instead of directly copying c2 memory to c_bis there is the c_bis copy constructor to call (with a copy of c2 as parameter value)<p>6) another new Complex c_bis_bis is allocated ... etc.<p>the problem is that a copy constructor is _implicitly_ called to create a copy, which transform a pass by value semantic in an infinite loop of allocations on the stack.<p>hope this help.</p>
]]></description><pubDate>Fri, 03 Feb 2023 06:05:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=34637677</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=34637677</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34637677</guid></item><item><title><![CDATA[New comment by NaNDude in "Asset-Level Transition Risk in the Global Coal, Oil, and Gas Supply Chains"]]></title><description><![CDATA[
<p>not a response to the question but... actually replacing an usage usually change this usage, but the effect on demand when thoses are primary ressources is'nt linked to this change. coal for exemple is a good source of synthetic fuel (fischer-tropsch process) and 1/6 of actual chinese fuel source or the wood demand exploded with coal usage, for mining it, before surface mining. just to point out that there is mostly no such thing as "energy transitionning" in the humain history, it's a cumulative process.</p>
]]></description><pubDate>Sun, 03 Jul 2022 23:48:55 +0000</pubDate><link>https://news.ycombinator.com/item?id=31972014</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=31972014</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=31972014</guid></item><item><title><![CDATA[New comment by NaNDude in "Why are nuclear power construction costs so high?"]]></title><description><![CDATA[
<p>may be the increases of the last forty years have'nt been studied as thoses of the 60s to 70s, but regulatory costs are still a reality, the french EPR for exemple got a 20billion increase in cost during the construction for changes in security standards.</p>
]]></description><pubDate>Thu, 09 Jun 2022 16:26:33 +0000</pubDate><link>https://news.ycombinator.com/item?id=31683233</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=31683233</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=31683233</guid></item><item><title><![CDATA[New comment by NaNDude in "Is human behavior just elaborate running and tumbling?"]]></title><description><![CDATA[
<p>this is categorical thinking.
behavioral psychology, molecular genetics, behavioral genetics, ethology, endocrinology, etc. will all provide their own "demonstrated answer" to the same question, even when they will be contradictory to each other.</p>
]]></description><pubDate>Tue, 18 Jan 2022 23:13:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=29987503</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=29987503</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29987503</guid></item><item><title><![CDATA[New comment by NaNDude in "The Mind’s Body Problem"]]></title><description><![CDATA[
<p>daniel dennett "where am i" ending novell and especially the "synchronized double conscioussness" is always interesting on this topic <a href="https://www.lehigh.edu/~mhb0/Dennett-WhereAmI.pdf" rel="nofollow">https://www.lehigh.edu/~mhb0/Dennett-WhereAmI.pdf</a></p>
]]></description><pubDate>Mon, 15 Nov 2021 05:26:07 +0000</pubDate><link>https://news.ycombinator.com/item?id=29224043</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=29224043</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29224043</guid></item><item><title><![CDATA[New comment by NaNDude in "Nuclear power is the best climate-change solution"]]></title><description><![CDATA[
<p>yes, i must have say "have been less catastrophic than the fr one" maybe :)</p>
]]></description><pubDate>Sun, 07 Nov 2021 19:49:29 +0000</pubDate><link>https://news.ycombinator.com/item?id=29142820</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=29142820</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29142820</guid></item><item><title><![CDATA[New comment by NaNDude in "Nuclear power is the best climate-change solution"]]></title><description><![CDATA[
<p>> this specific argument I was supporting with sources<p>none of thoses sources is contradictory of what i explained on the history of our shortages.<p>> Why did you chose hydro?<p>because you talk about mix, today its fr secondary electricity production, and hydro plants are older than fr nuclear plants/projects.<p>>That is half of what EPR needs to invest to keep your ageing fleet from falling apart...<p>i'm not sure of what your talking about again, that's probably half or even less of what we must invest to keep our ageing (not EPR) nuclear fleet yes, which provide 75% of our production, in other words: 8% production for 50billions imported external products + exploitation cost on 20years vs 75% for 50billions local supply one shot to add 20 years to the current fleet, the choice is easy technicaly speaking (not politicaly). our ageing fleet is not  linked to EPR at all which may be considered as a prototype for an eventual next fleet, we will see, and as already explained, the cost of our first EPR is not the cost of an EPR in a future fleet. side note: most of our ageing fleet have been build in only 10 years after 20 years of research and "prototypes".<p>> you just accepted to ignore all the costs generations will have to come up with just to cover nuclear waste<p>we started a project in 2000 for longterm deep storage which will provide waste stockage for more than 100years of our current dangerous waste production ( <a href="https://fr.wikipedia.org/wiki/Laboratoire_de_Bure" rel="nofollow">https://fr.wikipedia.org/wiki/Laboratoire_de_Bure</a> ), for less dangerous product we are already treating not only our waste but most of the EU nuclear waste.<p>> You said that safety costs too much and we should look to China...<p>no i said our safety changes extended cost and delay, while china without changes respected cost and delay. which imply that our acquired expertise _with_ safety changes will probably respect and reduce cost like delay if we produce more EPR. this does'nt mean and i never said that we must do like china, that's your straw man.<p>> The fact that while nuclear only gets more expensive<p>source ? for the same type of product nuclear does'nt get more expensive, what get more expensive is more efficient, more secured, better and new/first try nuclear plants<p>> renewables not only got cheaper<p>renewable cost is a market cost not a local/production cost, like lithium for batteries, china got a mostly exclusive (quantitavely speaking) market on solar and parts of wind turbines (and for a time lithium) not by lowering cost but to acquire the market. we will talk about renewables production cost when they will be produced with renewables energy sources and not charcoal, gaz, gas and nuclear sources. yes nuclear actually rely on the same energy sources with one big diffence: it does'nt rely on it all it's lifetime.<p>> Why don't you link your study<p>because you have'nt link your "contradictory old study" and like i already said, to compare them they must apply to the same subject. but if you really want sources on this topic and a lot more about the same subject, there is the 20 hours 
 videos of courses of the "ecole des mines", one of the two or three most recognized schools in fr (largely better than any master or ph.d) :<p><a href="https://www.youtube.com/watch?v=xgy0rW0oaFI&list=PLMDQXkItOZ4LPwWJkVQf_PWnYHfC5xGFO" rel="nofollow">https://www.youtube.com/watch?v=xgy0rW0oaFI&list=PLMDQXkItOZ...</a><p>you may find the site of the professor in the link which will provide a lot more ressources on nuclear and climate data and expertise, and probably some sources in english.<p>> You must know about the energy shortages<p>yes and you seem to not realize that those energy shortages are only on our own production, most of them where usually compensated by introducing/buying energy from others EU country with some minor exceptions like lowering the max available power on smalls customer populations and in rare case short cuts; no critical supply was ever stoped, no home get total shot down for more than a few hours, if those happens that was for small sets, nothing comparable to (for example, even if not linked to production i think) what happened in texas last winter, even occasional energy cut for technical problems which happen to all electry energy supply in all countries are worse than those "production shortages".<p>> you still chose to lie about it ? why ?<p>i'm not lying, you just seem to simply not knowing what you'r talking about, building some sort of fantasy disaster looking everywhere on google to confirm your bias (which will always be a success whatever may be the topic of your fantasy).</p>
]]></description><pubDate>Sun, 07 Nov 2021 16:42:17 +0000</pubDate><link>https://news.ycombinator.com/item?id=29140960</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=29140960</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29140960</guid></item><item><title><![CDATA[New comment by NaNDude in "Nuclear power is the best climate-change solution"]]></title><description><![CDATA[
<p>> The report was from 2019 because it was the first search result<p>yes and all your sources are post 2019 (the fessenheim reactor has been slowed since 2017, the project/idea to close it started in 2012, and the effective (not reversible) closing has happened on feb 2020 while it was stopped since more than 2 years) dont really see what's your point here...<p>> This is why you diversify your energy.<p>no, our electric mix was simply not build on nuclear, hydroelectric and charcoal was our first power source, nuclear allowed us to close charcoal mines and plants while fullfilling the growing electric needs. nuclear is'nt without constrains that hydroelectric dont have, however there is not much more places to have new hydros. "renewables" will maybe goes up to 8% in the coming years and has already cost us more than 50billions€ (governement subvention) which is nearly two time our current non running EPR cost :) note that those 50billions was only for deployment they does'nt include exploitation cost, that's a big difference between wind turbines and nuclear, nuclear cost is mostly capitalistic (start investment for 60years in the case of an EPR) while wind turbine cost must be evaluated over their full lifetime including market fluctuations, try to evaluate that for the 60 years comming, good luck!<p>> Yeah they should just look away more like in China...<p>what's your point here again ? changing a project constrain while it is already started add cost and delay, however once done, acquired expertise usually reduce cost and delay. we have choosen our way to do it, probably for good reasons.<p>> but I can't take such statements seriously. It's madness.<p>actually this is your statement, your making a straw man here.<p>> there was a study years ago<p>what let you think that an old study with probably outdated constrains and knowledges would be more serious than actual studies from recognized sources (ecole polytechnique, les mines) ? and more important, those studies to be comparable must have the same subject, replacing nuclear with wind turbines is not the same as replacing nuclear + transportation(gas) for example. with the current urge (climatical and political) to reduce gas based transportations, there is also an urge/need to grow electric supply up to two time the actual production (unless your looking for economical collapse by replacing gas with nothing). from this point of view, current renewable are just a joke in france since we have no industries on renewables (they poorly failed/died) which means we will be fully dependent on external supply, and yes that's madness.<p>ho one last point, those studies are usually done with wind turbine because solar panels end up using a lot more surface than wind turbines, that let you think of the surface needs with a mix of the two...<p>> this is France we're talking about. Those informations are easy to google.<p>actually i'm french and in france (in case my poor english was'nt a sufficient hint), those subjects are a perpetual technical and political debate here, i dont really need google press report to explain me what i'm living (actually its a known fact that press is'nt an opposable source in techical subjects, try google schoolar maybe...) :)</p>
]]></description><pubDate>Sat, 06 Nov 2021 19:19:11 +0000</pubDate><link>https://news.ycombinator.com/item?id=29133024</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=29133024</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29133024</guid></item><item><title><![CDATA[New comment by NaNDude in "Nuclear power is the best climate-change solution"]]></title><description><![CDATA[
<p>looks like you missed the most important part of your own source : "Atomic power from France’s 58 reactors accounts for over 75 percent of its electricity needs. Available nuclear power supply was down 1.4 percentage points at 65.3% of total capacity compared with Wednesday."<p>this missing capacity is less the usual slowdown of reactors because of the hot rivers (which by the way is done for environmental and not technical concern) and maintenances process, than a consequence of a previous nuclear plant closing (for political/electoral reasons). another consequence of this missing plant was to reopen two charcoal power plant _this_winter_.<p>a large part of the EPR slowdown in fr is due to security concern that changed while the project was already started, china EPRs which was similar but a lot less constrained was done in time.<p>on the price: 25% of the energy produced by nuclear in fr is sold under the market price to private retailers because of anti-monopolistic EU laws and stupidity of our governement. the electricity price in EU is usualy indexed on the worst gaz plant available, with the actual price of gaz raising and all of the 25% already acquired, a lot of them are just closing.<p>given those constrains, yes this model works more than well...<p>the project to close "50%" (in fact 15 reactors) until 2030 is another political subject which will probably never become a reality given that most renewable alternatives projects end up being blocked/hated everywhere.<p>funny fact: replacing ALL the current transport and electric energy supply in fr by wind turbines has been evaluated to require one of the most efficient available turbine for each km² on ALL the french territory...</p>
]]></description><pubDate>Sat, 06 Nov 2021 04:26:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=29127517</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=29127517</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29127517</guid></item><item><title><![CDATA[New comment by NaNDude in "Turning stem cells into human eggs"]]></title><description><![CDATA[
<p>as long as "nature", being highly polysemic, is'nt defined, yes.</p>
]]></description><pubDate>Sun, 31 Oct 2021 16:40:58 +0000</pubDate><link>https://news.ycombinator.com/item?id=29058236</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=29058236</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29058236</guid></item><item><title><![CDATA[New comment by NaNDude in "Turning stem cells into human eggs"]]></title><description><![CDATA[
<p>> It is possible that we can "naturally" evolve<p>there is no doubt on that, we're evolving, we're even able to trace some minor genetic evolutions over the 7k last years. but the cultural myth of "natural selection" or "naturally" evolving is in the question : what is "natural" and by extension, what is'nt ? kin evolution or social behaviors always end up as reproduction success, and the failure to do so, "naturally" or "artificially" end up in extinction, that's all. there is nothing specifically "natural" or "artificial" here. when talking about genetics the involved time scales badly fit cultural consideration like thoses. it is not less "natural" to gain reproductive success by genetic intervention than without, unless you are able to explain what is this "nature". or in other words : there is nothing to bypass unless you'r able to say/describe/explain what :)</p>
]]></description><pubDate>Sun, 31 Oct 2021 01:23:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=29053694</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=29053694</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29053694</guid></item><item><title><![CDATA[New comment by NaNDude in "Turning stem cells into human eggs"]]></title><description><![CDATA[
<p>natural selection is a cultural myth (like everything talking about an undefined "nature"), may be you'r thinking about evolution theory which is driven by reproduction success, but we already bypass it, living far beyond our fertility time :)</p>
]]></description><pubDate>Sat, 30 Oct 2021 10:19:07 +0000</pubDate><link>https://news.ycombinator.com/item?id=29047580</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=29047580</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29047580</guid></item><item><title><![CDATA[New comment by NaNDude in "Turning stem cells into human eggs"]]></title><description><![CDATA[
<p>science fiction reference for cells eugenics:
gattaca  <a href="https://en.wikipedia.org/wiki/Gattaca" rel="nofollow">https://en.wikipedia.org/wiki/Gattaca</a></p>
]]></description><pubDate>Fri, 29 Oct 2021 19:12:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=29042429</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=29042429</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29042429</guid></item><item><title><![CDATA[New comment by NaNDude in "Nuclear Power in France"]]></title><description><![CDATA[
<p>nuclear dispatching is mostly done over international distribution in UE. the requirements in more dispatchables power like gaz or hydro is'nt comparable with weather randomized energy sources with poor efficiency which usually require a 1:1 alternative dispatchables sources (gaz or hydro again). France electric energy mix is/was around 70-80% nuclear.</p>
]]></description><pubDate>Tue, 12 Oct 2021 19:30:16 +0000</pubDate><link>https://news.ycombinator.com/item?id=28843991</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=28843991</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=28843991</guid></item><item><title><![CDATA[New comment by NaNDude in "Happy Tau Day"]]></title><description><![CDATA[
<p>i totally suck at math, however i think i know what is a circle, i can draw one with a compas. then i think i know what is the diameter of this circle, i can draw it by drawing two more circles and a line with a ruler. because a mathematician told me that the product of this diameter by a number is the circumference of the first circle i believe him, but if another mathematician ask me to draw two more circles and another line to define the same circumference...  i will probably believe that the first one suck less than the second one at maths! (sorry for my english!).</p>
]]></description><pubDate>Tue, 28 Jun 2016 14:03:53 +0000</pubDate><link>https://news.ycombinator.com/item?id=11993846</link><dc:creator>NaNDude</dc:creator><comments>https://news.ycombinator.com/item?id=11993846</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11993846</guid></item></channel></rss>