HackerLangs
TopNewTrendsCommentsPastAskShowJobs

AdieuToLogic

3,549 karmajoined 11년 전

comments

AdieuToLogic
·그저께·discuss
And what of the likelihood that the original collection is modified when using the quickselect algorithm, thus introducing observable side effects in what could reasonably be considered a "read-only" computation?
AdieuToLogic
·그저께·discuss
> You can definitely do this without sorting.

> QuickSelect is ...

Quickselect implementations can, and often do, partially sort the underlying collection:

  As with quicksort, quickselect is generally implemented as 
  an in-place algorithm, and beyond selecting the kth 
  element, it also partially sorts the data.[0]
If you are aware of a quickselect implementation having O(n) average performance which does not modify the underlying collection, I would very much appreciate a reference to same.

0 - https://en.wikipedia.org/wiki/Quickselect
AdieuToLogic
·그저께·discuss
> Your answer is that of someone that googled some answer and went with it.

My answer was one from experience and supported by a resource which provides details as to why medians are needed in real-world scenarios.

> This problem belongs to selection algorithms and quickselect is the common approach.

I responded to a specific comment in this discussion, not to what "this problem belongs."
AdieuToLogic
·그저께·discuss
From the Wikipedia page cited:

  As with quicksort, quickselect is generally implemented as 
  an in-place algorithm, and beyond selecting the kth 
  element, it also partially sorts the data.
When the above is applicable, those quickselect implementations would violate the original assertion of:

  Only the median (or pair around the median) needs to be 
  sorted, the other numbers can be unsorted
When the collection involved is immutable.
AdieuToLogic
·그저께·discuss
> ... I've never had to write code to compute the median so it doesn't seem that useful unless it's somehow relevant to the job

A binary search[0] of a sorted collection requires the median of each region being considered for each iteration.

0 - https://en.wikipedia.org/wiki/Binary_search
AdieuToLogic
·그저께·discuss
A mental exercise I perform when "reference" is used in this context is to substitute it with "pointer." I find it clarifying and rarely, if ever, incorrect.
AdieuToLogic
·그저께·discuss
How does one determine the median wherein "the other numbers can be unsorted"?

To wit, given the unordered set:

  [ 5, 1, 3 ]
How would "Only the median (or pair around the median) needs to be sorted" be satisfied?
AdieuToLogic
·3일 전·discuss
The fact that PgDog supports prepared statements[0] is a compelling feature in and of itself. This was a limitation of older versions of pgpool-II[1] thus disqualifying it in efforts where it otherwise could have been beneficial.

0 - https://docs.pgdog.dev/features/connection-pooler/prepared-s...

1 - https://www.pgpool.net/docs/4.7/en/html/
AdieuToLogic
·5일 전·discuss
> It's definitely rude to suggest someone is lying.

Please consider the context of my quotation which I documented elsewhere in this thread.

A person wrote:

>> This is a site full of developers who are convinced that "proper software engineering" is 100% of what makes a business successful, and everything and everyone else is useless.

To which the person claiming said managerial title responded with:

> As a technical product manager, this 1000%.
AdieuToLogic
·5일 전·discuss
> So you've got this low code quality that somehow doesn't impact product quality ...

Low quality code always impacts product quality in a negative manner. That is why it is "low quality code."

"High quality code" also impacts product quality, but in the predictably positive manner; fewer defects, ability to be enhanced, understandable behavior, etc.
AdieuToLogic
·7일 전·discuss
> Stop trying to run them locally, folks.

"Locally" is a relative qualifier if one defines locality as not being reliant on a SaaS vendor. IOW, locality does not necessarily imply execution on machines specifically owned/operated by an organization.

> Rent cloud GPUs!

This would qualify as "locally" in the above definition. There is also a case to be made that h/w ownership (GPUs included) and operation can result in a net cost reduction for some use-cases.

However, where exposing intellectual property results in regulatory violations and/or undue legal exposure, running models "locally" is not only a good option, it is the only option.
AdieuToLogic
·10일 전·discuss
This is a great case for the benefits of using GenAI, in that you already possess an understanding of what you want to achieve. You know what it is you want to prototype, what is on your "giant list of 'maybe somedays if I ever get to breathe' list", what you want to end up delivering.

My point is and remains:

  A) GenAI did not give you this understanding.
  B) GenAI can only assist in your expressing this
     preexisting understanding.
  C) GenAI is a statistical token (text) generator and
     cannot, by definition, "make" a person understand
     what they want/need to do.
AdieuToLogic
·10일 전·discuss
> Please stop being rude to me.

I do not see how I was being rude, unless it was my use of quotations around the title you claim.

> I'm a human being ...

I did not doubt this.

> ... I'm a very experienced product manager and engineer ...

Again, if it was my use of quotations which you found to be rude, then I do not know what to say about that.

> ... and the way you are behaving sucks.

I respect your perspective and support your right to express yourself. And no, I do not think you are being rude by doing so.

> Assume I'm still right ...

Why would I? You responded to:

>> This is a site full of developers who are convinced that "proper software engineering" is 100% of what makes a business successful, and everything and everyone else is useless.

With:

> As a technical product manager, this 1000%.

Finally, you write:

> ... you might be able to learn something from someone else.

Maybe you can learn something from someone else as well.
AdieuToLogic
·10일 전·discuss
Nice strawman[0], but you avoided answering my core question:

  Speed of what?
With ad hominems and a non sequitur. How about I narrow the question with the hope it engenders a relevant response:

  How do LLMs increase the speed of a person understanding
  what needs to be done?
0 - https://en.wikipedia.org/wiki/Straw_man
AdieuToLogic
·10일 전·discuss
> That is not how most engineers define bad code.

The engineers I have worked with most definitely define "bad code" as having intrinsic limitations and/or latent defects which impact successful system functionality/operation. Indicators provided to stakeholders such as yourself which support this assessment are, but not limited to:

  - the system doesn't work that way
  - the system lacks test coverage, so changes take longer
  - adding feature "X" is not feasible
  - there is no repeatable way to onboard team members
  - the backlog grows exponentially
  - that "one point task" is going to take a couple weeks
All of the above impacts a business.

It is up to you, the "technical product manager", to understand what your team is trying to tell you.
AdieuToLogic
·10일 전·discuss
> It relies on your software to be properly sandboxed and permissioned.

And organizations rely on their employees not falling for phishing email. How well has that worked?

> What we have seen is state funded hacking groups can often exploit bugs which break out of sandboxes and embed themselves in the system. But the malicious code only exists in memory, it can’t persist between reboots because the next boot would fail the checksum and signature checks.

"Malicious code existing only in memory" is patently false by not addressing supply chain attacks previously mentioned. To wit, the npm left-pad attack[0]. See also the thousands of PHP CVEs.

0 - https://en.wikipedia.org/wiki/Npm_left-pad_incident
AdieuToLogic
·10일 전·discuss
> As a technical product manager, this 1000%. It's just irrelevant how bad code is unless it impacts the business.

If you are, in fact, "a technical product manager", I would hope you understand that "bad code" is identified as such specifically because it "impacts the business."
AdieuToLogic
·10일 전·discuss
>> What concrete business advantage are you getting from LLMs?

> Speed.

Speed of what?

Speed of understanding what needs to be done? I highly doubt it.

Speed of LoC checked into git? Sure, I'll give you that.

But one can use any number of tools to generate hundreds of thousands of lines of code. See any build tools which support specifications such as RAML, OpenAPI, CORBA, etc.

So I ask again; speed of what?
AdieuToLogic
·10일 전·discuss
> Software bugs can put the system in to a bad state which can be abused by malware, but none of it can persist through a reboot since everything is checked and measured from scratch during the boot.

This does not account for supply chain attacks nor trojan attacks which seek consensual installation. A reboot will not eradicate these threat vectors.
AdieuToLogic
·10일 전·discuss
When the article mentioned the "Python 'walrus' assignment operator", which as defined is an homage to Pascal's version of same, a part of me hoped the operator was:

  >oOO3=
:-)