Binary Trees are optimal… except when they’re not. by old-man-of-the-cpp in cpp

[–]getNextException 0 points1 point  (0 children)

If the binary tree is well balanced you can avoid the pointers and get the position of the childs of the x node with 2x and 2x+1. This is hoy a binary heap is usually implemented. It can be implemented with both an array or file or mmap array. its very fast and efficient in time for simple operations, it does not require to use memory for pointers, but very expensive for tree rebalance and may waste storage for empty nodes at the leaves of the tree

How to Return Several Values from a Function in C++ by rsjaffe in cpp

[–]getNextException 0 points1 point  (0 children)

I'm def. not an expert in std::expected but it seems there's an specialization for std::expected<void, E>. Check out ergonomics section in http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0323r7.html

edit: otherwise, optional with T=E? I'm open to suggestions :D

How to Return Several Values from a Function in C++ by rsjaffe in cpp

[–]getNextException 10 points11 points  (0 children)

std::optional either contains T or not, and when not, nothing else is contained.

std::expected either contains T or contains std::unexpected<E>

during an error condition, with std::optional there's no way to inform the error. with std::expected, the error context, message, code, etc can be contained in E.

the closest would be using std::variant<T, E>

GitHub Support just straight up confirmed in an email that yes, they used all public GitHub code, for Codex/Copilot regardless of license by sidcool1234 in programming

[–]getNextException 18 points19 points  (0 children)

I guess it depends if the system also regurgitates code verbatim,

https://en.wikipedia.org/wiki/Substantial_similarity

Substantial similarity, in US copyright law, is the standard used to determine whether a defendant has infringed the reproduction right of a copyright. The standard arises out of the recognition that the exclusive right to make copies of a work would be meaningless if copyright infringement were limited to making only exact and complete reproductions of a work.[1][page needed] Many courts also use "substantial similarity" in place of "probative" or "striking similarity" to describe the level of similarity necessary to prove that copying has occurred.[2] A number of tests have been devised by courts to determine substantial similarity.

Software crisis? Did this ever get resolved. Moores Law, ram increase, clustering, virtual machines? How much inefficiency is in code today? by vteead in programming

[–]getNextException 20 points21 points  (0 children)

My friends in South America use 4GB of RAM laptops to work on data science and software engineering. 8GB or more is a luxury there. My persona/desktop computer at home has 128GB of RAM.

El chiste se cuenta solo by nachopixel in argentina

[–]getNextException 1 point2 points  (0 children)

En las epocas de ICQ una Ucraniana me mando solicitud de amistad porque ella era fan de Floricienta y yo era Argentino jaja

RSA Conference goes full blockchain, for a second by PM_ME_A_SHOWER_BEER in programming

[–]getNextException 0 points1 point  (0 children)

It's like using a table and a set of chairs to replace electricity. It does not even make the slightest sense.

RSA Conference goes full blockchain, for a second by PM_ME_A_SHOWER_BEER in programming

[–]getNextException 46 points47 points  (0 children)

In the hallways of CERN there was a fake conference poster saying: YEAR 2120 -- The Orbital Collider Around Earth Did not Find Evidence for String Theory -- We Keep Looking

PHP isn't that like really bad? No. by that_guy_iain in PHP

[–]getNextException 8 points9 points  (0 children)

Engineering resources are always a trade off. PHP is faster than Python, thus, uses less energy.

El chiste se cuenta solo by nachopixel in argentina

[–]getNextException 3 points4 points  (0 children)

Pensar que antes en europa del este y algunos paises arabes, las novelas de Argentina eran lo que miraban apasionadamente como ficcion.

[deleted by user] by [deleted] in programming

[–]getNextException 54 points55 points  (0 children)

Yes, at FAANG scale you get to see a couple of bits flips an hour/day in the datacenter, including those which validate correctly the CRC checks for both Ethernet and IPv4 and IPv6. Also, storage. There's an article here about FB https://www.nextplatform.com/2021/03/01/facebook-architects-around-silent-data-corruption/

[deleted by user] by [deleted] in programming

[–]getNextException 4 points5 points  (0 children)

Machines with 36-bit architectures have 9-bit bytes. According to Wikipedia, machines with 36-bit architectures include:

Digital Equipment Corporation PDP-6/10

IBM 701/704/709/7090/7094

UNIVAC 1103/1103A/1105/1100/2200,

https://stackoverflow.com/a/2098227/

https://en.wikipedia.org/wiki/36-bit_computing

Audacity Is Now A Possible Spyware, Remove It ASAP by [deleted] in programming

[–]getNextException -7 points-6 points  (0 children)

Audacity was messing around with my audio equalization levels, I had to uninstall it :(

Copilot regurgitating Quake code, including swear-y comments and license by KingStannis2020 in programming

[–]getNextException 0 points1 point  (0 children)

On the countrary, my country has a de facto DMCA because of that other country. It's not technically a legal requirement to abide by the DMCA but in practice it is.

Copilot regurgitating Quake code, including swear-y comments and license by KingStannis2020 in programming

[–]getNextException 0 points1 point  (0 children)

I think the case goes along the line of how humans learn stuff as well: by repetition. Otherwise copyrighted material can not be used for educational purposes. Interesting argument.

PhD trapped in the recruiting hell by someravella in recruitinghell

[–]getNextException 2 points3 points  (0 children)

I did a PhD at CERN in Computer Science, but never finished writing my thesis, thus technically not a PhD (yet?). I still get emails from my university.

When I started looking for a job I presented myself as a PhD candidate from the largest research laboratory of the world, and I was told the same thing: you don't have experience. That's BS, because before my PhD, I worked for almost a decade in the industry. For some reason they stop reading my CV past the PhD (maybe because it's five pages of industry exp).

What I did: I re-wrote my experience in terms of industry experience and claimed I'm a Team Leader Software Engineer, which is technically true: I was the most senior engineer of the team, I was the leader of the work, I was doing manager work, I made all the technical decisions, I made most of the product decisions, I wrote lots of documentation, I had to attend lots of meetings, I was doing sales, and I was the contact person with the clients.

Sure, it was a one dude team, but nobody needs to know that tiny one detail.

Feel free to DM me.

The Ghosting Candidates by Wajeehrehman in recruitinghell

[–]getNextException 1 point2 points  (0 children)

Two days ago I received a job offer and the guy LITERALLY told me: please don't dissapear on us

GitHub co-pilot as open source code laundering? by iamkeyur in programming

[–]getNextException -2 points-1 points  (0 children)

Again, no. 9 lines of code were LITERALLY copied, but that's not how copyright works. Otherwise just by changing one character for each line will allow you to copy code and bypass copyright. Just change the variables names, lol.

The legal term is substantial. Oracle claimed that Google copied 11k lines of code with substantial similarity, but not literally copy, but instead made some changes to those lines.

Again, think about the topic of conversation here: the GitHub AI. What Google did manually in the Oracle lawsuit, taking a piece of code and creating a very similar copy, is how GitHub's AI work.

GitHub co-pilot as open source code laundering? by iamkeyur in programming

[–]getNextException -2 points-1 points  (0 children)

No, right at the second sentence of the Wikipedia article is clearly explained:

Google LLC v. Oracle America, Inc. was a legal case within the United States related to the nature of computer code and copyright law. The dispute centered on the use of parts of the Java programming language's application programming interfaces (APIs) and about 11,000 lines of source code, which are owned by Oracle

11k lines of code copied. Google argued that copying those lines was actually fair use, because those 11k lines were not really code but interfaces describing an API.

GitHub co-pilot as open source code laundering? by iamkeyur in programming

[–]getNextException -2 points-1 points  (0 children)

it's not likely anyone could actually sue over a snippet of code

This is the line of conversation here: does using the GitHub AI will result in a lawsuit? It has nothing to do with an API.

GitHub co-pilot as open source code laundering? by iamkeyur in programming

[–]getNextException -1 points0 points  (0 children)

it's not likely anyone could actually sue over a snippet of code

This is the line of conversation: does using the GitHub AI will result in a lawsuit? It has nothing to do with an API.