Better HN
topnewbestaskshowjobs
Log inSign up

squid_demon

40 karma · joined May 13, 2020 (6y ago) · 53 submissions

Submissions

comment 4y ago · link · parent

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!

comment 4y ago · link · parent

Just make sure you get the latest Ghidra update with the log4j issue addressed :)

comment 4y ago · link · parent

(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/

comment 5y ago · link · parent

Which has a freaking DEPENDENCY on is-odd! Seriously?

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Ok, cool.

comment 5y ago · link · parent

Ok.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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!

comment 5y ago · link · parent

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).

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

You are right. That is not the same study. Thanks for pointing that out.

comment 5y ago · link · parent

I'm pretty sure you can find the link using Google, also.

comment 5y ago · link · parent

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."

comment 5y ago · link · parent

Wait. This isn't an April Fool's joke?

comment 5y ago · link · parent

"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.

20.

NFTs – Blockchain powered art, trading cards, music and more [audio](mofi.net ↗)

2 points · by squid_demon · 5y ago · discuss

comment 5y ago · link · parent

Probably took 12 of those 14 days to just get Emacs loaded. Just saying.

comment 5y ago · link · parent

Really looking forward to the C256 Foenix U

https://c256foenix.com/

comment 5y ago · link · parent

Reminds me of the dice used in Greg Egan's Quarantine.

comment 5y ago · link · parent

If they could only import cryptocurrency information from Coinbase...

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

25.

Graphene ‘Nano-Origami’ Could Take Us Past the End of Moore’s Law(singularityhub.com ↗)

50 points · by squid_demon · 5y ago · 21 comments

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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).

comment 5y ago · link · parent

Please leave C alone. Thanks much.
12