News for hackers. Stuff that matters.

squid_demon

Re:‘Woof’, a pure Scala 3 logging library on Saturday December 18, 2021 @03:12PM (#29608084)
Can someone please explain the purpose of a logging library (woof, log4j, etc)? There must be something beyond writing text to an external file, possibly with different error levels, that I'm missing. This is a serious question. I truly do not understand what you gain by depending on an external library for this (seemingly) simple operation and would appreciate some insight. Thanks!
Re:Hex-rays is moving to a subscription model on Tuesday December 14, 2021 @05:15PM (#29558808)
Just make sure you get the latest Ghidra update with the log4j issue addressed :)
(Slightly off-topic, as the link is a collection of research papers rather than a book.) A Visual Survey of Text Visualization Techniques: https://textvis.lnu.se/
Re:NPM – "is-even", 160k weekly downloads on Tuesday November 16, 2021 @11:59AM (#29242958)
Which has a freaking DEPENDENCY on is-odd! Seriously?
Re:Climate change risk assessment 2021 [pdf] on Tuesday September 14, 2021 @08:14PM (#28533363)
Immediate action! Some person actually told me that Florida would be underwater in less than ten years now (I guess it kind of already is with all the hurricanes). Eagerly awaiting the excuses when that time passes us all by.

Does this document apply to US (which is a mere tiny fraction of a percent of overall pollution)? Not sure how acting now would have any impact.

Re:Transmission torrent client ported to C++ on Tuesday September 14, 2021 @08:09PM (#28533326)
YO. I measured it myself just to be sure and since you were such a dickhead. (Copying and pasting the output from console) With exceptions: Parsing took on average 135 us With error codes: Parsing took on average 0 us

Maybe the dude forgot to enable optimizations altogether (not present in the command line options in the comment at the top of that file). I added /O2 since it is a PERFORMANCE test, remember? Hilarious.

Re:Transmission torrent client ported to C++ on Tuesday September 14, 2021 @08:36AM (#28523782)
I'm not asking to test on any system EXCEPT THEIR OWN. Did they test the performance of not? If not, fine. That's all I was asking. It's not a huge ask either unless they don't give a rat's ass about performance. Which, if they want to use C++, they most likely do not.
Re:Transmission torrent client ported to C++ on Tuesday September 14, 2021 @08:33AM (#28523746)
Ok, cool.
Re:Transmission torrent client ported to C++ on Tuesday September 14, 2021 @02:21AM (#28520974)
Ok.
Re:Transmission torrent client ported to C++ on Tuesday September 14, 2021 @02:21AM (#28520971)
I'm guessing the author measured the overall performance and assumed that using error codes, rather than exceptions, is what made the sample code he provided slower. Turns out, the reason it is slower is because, in the case using error codes, a copy of a std::string is made. In the exceptions case, where the string is returned rather than passed as a parameter by reference, the copy can be elided because the compiler invokes NVRO. Has nothing to do with exceptions.

Maybe that author should use a profiler before making these types of claims? check the generated assembly? etc?

Far slower to return a value in RAX vs. generate a ton of code (blowing icache, etc.) is quite an interesting statement. I think it deserves a closer look, though.

Re:Transmission torrent client ported to C++ on Tuesday September 14, 2021 @01:55AM (#28520778)
I was attempting, perhaps poorly, to ask the authors if they measured the performance degradation or not with this change. That way we would have the data you are asking _me_, for some reason, to provide. The onus is not on me to do their work for them and prove to everyone on HN that, yes, I have seen massive performance issues when people "port" C code to C++ (in many many projects over many many years throughout my professional career). If the authors choose not to answer or to care at all (if they even see my post) that is perfectly acceptable as well. I'm just interested in the facts so all of us can better choose whether this decision was a good one or not!
Re:Transmission torrent client ported to C++ on Sunday September 12, 2021 @09:40PM (#28506966)
Not trying to be rude but I don't believe this is a sensible choice if you care about performance (sounds like you were more concerned about missing familiar features and such so this comment may be irrelevant). Just curious if you were you able to measure the performance degradation after this change was made? In other words what is the price paid for obtaining familiar constructs (it certainly wont be zero).
Homotopy type theory is a mathematical foundation, like set theory, or Martin Lof's type theory. This is different from a proof assistant like Coq or Lean. In fact, Lean has a library which implements part of HoTT (see https://github.com/leanprover/lean2/blob/master/hott/hott.md). In short, there is no comparison between Lean and HoTT.
Re:Modern C++ for C Programmers (2018) on Friday July 23, 2021 @11:42PM (#27938227)
I think it is pretty obvious that Mr. Meyers never actually programmed / used C++ himself for any real projects. That he would abandon the language after only 2.5 years of nonuse makes sense to me.
You are right. That is not the same study. Thanks for pointing that out.
I'm pretty sure you can find the link using Google, also.
I would love to know, too! Oh. A search engine. What's this?

"Eighty participants, ages 21 to 65, who meet Diagnostic and Statistical Manual of Mental Disorders (DSM-5) criteria for major depressive disorder (MDD) will be stratified by study site and randomized with a 1-to-1 allocation under double-blind conditions to receive a single 25 mg oral dose of psilocybin or a single 100 mg oral dose of niacin. Niacin will serve as an active placebo."

Re:Mighty Makes Google Chrome Faster on Wednesday April 28, 2021 @02:05AM (#26966183)
Wait. This isn't an April Fool's joke?
Re:Zorin OS 16 on Saturday April 17, 2021 @04:53AM (#26842688)
"Undoubtedly the most groundbreaking and revolutionary feature we’ve ever included, Jelly Mode".

I seriously thought this was a joke. But after seeing the animation I was completely blown away! This is going to change how we interact with computers without a doubt. Wow.

Re:From Vim to Emacs in fourteen days (2015) on Thursday March 11, 2021 @10:24PM (#26431904)
Probably took 12 of those 14 days to just get Emacs loaded. Just saying.
Re:I want a computer that I own on Tuesday March 09, 2021 @08:56AM (#26398752)
Really looking forward to the C256 Foenix U

https://c256foenix.com/

Re:The fastest random-number generator ever built on Sunday March 07, 2021 @01:53AM (#26373806)
Reminds me of the dice used in Greg Egan's Quarantine.
Re:Killing TurboTax on Wednesday March 03, 2021 @08:06PM (#26337255)
If they could only import cryptocurrency information from Coinbase...

https://ttlc.intuit.com/community/taxes/discussion/re-how-ca...

Re:Checked C on Friday February 19, 2021 @08:57AM (#26193166)
I think using SAL annotations along with the /analyze flag in MSVC is much less obtrusive then this solution and allows programmers to annotate portions of their code without having to learn / rewrite in an entirely new dialect of C.
Performance should be listed on there too. Without it, none of the other features matter to me. If I type a character I would like, ideally, 0 ms lag. That has to be a starting point. THEN, you can add the additional layers of niceness (while keeping the performance, of course). VSCode certainly does not achieve this (gorilla is being polite).
Re:Proposal for C23: Improve type generic programming [pdf] on Wednesday January 13, 2021 @09:52AM (#25762661)
Please leave C alone. Thanks much.
Re:Happy New Year HN on Friday January 01, 2021 @04:33AM (#25601995)
Best year ever. Solitude Aeternus.
Re:Str: Yet another string library for C language on Thursday November 26, 2020 @12:42AM (#25217203)
Maybe I'm missing something but it doesn't look like memory allocation was carefully considered in this library. For example, there are no custom allocators?

Older »