News for hackers. Stuff that matters.

hasty_pudding

News needs sensationalism.

Thanks for posting another side of this.

What you're saying makes a lot of sense.

Re:Tonal.js: Functional music theory lib on Thursday April 04, 2024 @12:26PM (#39932557)
what languages don't use objects to implement non-primitive data structures?

like a binary tree for example

Re:Tonal.js: Functional music theory lib on Thursday April 04, 2024 @10:49AM (#39931126)
What languages on Earth implement non-primitive data structures without objects?

I guess maybe low level c and assembly where you implement everything as bits in physical memory?

Re:Tonal.js: Functional music theory lib on Thursday April 04, 2024 @10:07AM (#39930594)
you know how unsufferable it is when people bog a conversation down with semantics instead of ideas.

the point is obvious.

Being that every single language on Earth uses objects for non-primitive data structures that should be inferrable to a reasonable person.

a data structure in that context is clearly an ordered grouping of objects versus an unordered/loose grouping of objects.

Re:Tonal.js: Functional music theory lib on Thursday April 04, 2024 @09:59AM (#39930483)
Very far
Re:Tonal.js: Functional music theory lib on Wednesday April 03, 2024 @06:45PM (#39924281)
You definitely need generic node objects to define the nodes.

You could have a completely stateless class/object that would manipulate those nodes and add them and remove them from the data structure.

Re:Tonal.js: Functional music theory lib on Wednesday April 03, 2024 @06:34PM (#39924161)
What they mean is functions and data are separate, emulating a more functional paradigm and less mutable state.

The functions are kept pure and the data is kept pure.

As opposed to an object oriented programming style in which data and functions share the same object and create bug ridden state machines thats not as easy to reason about.

Some further explanation about this:

https://www.goodreads.com/quotes/702062-immutable-objects-ar...

a semi-nuanced discussion:

https://www.reddit.com/r/scala/comments/ejwsp1/is_mutability...

you can just Google mutable state to find more info.

separating your data structures and functions in many cases will make your code cleaner and more bug free.

Re:Tonal.js: Functional music theory lib on Wednesday April 03, 2024 @05:16PM (#39923260)
"all functions are pure, there is no data mutation, and entities are represented by data structures instead of objects."

God i love to see this

Re:Avoid blundering: 80% of a winning strategy on Tuesday April 02, 2024 @07:48AM (#39904663)
The problem is you don't know if it's a blunder until after.
Re:UV-K5 Is the Most Hackable Handheld Ham Radio Yet on Friday March 29, 2024 @08:51AM (#39863453)
don't know what you're getting downvoted it is true
Re:Can American policing be fixed? on Thursday March 28, 2024 @08:12AM (#39850245)
ok
Wait but the dollar has a higher exchange rate than Chinese currency as well.
Re:Can American policing be fixed? on Thursday March 28, 2024 @07:56AM (#39850098)
No its just data from crime statistics.
Re:Can American policing be fixed? on Thursday March 28, 2024 @07:45AM (#39849973)
The focus should be more on fixing certain segments of society that commit more crime than other segments of society.
I wonder if kids on social media is going to be looked at in a hundred years like we look at kids smoking cigarettes from 100 years ago.
Re:Australian Digital ID Bill to be passed without debate on Wednesday March 27, 2024 @08:41AM (#39838284)
Here's sort of a non-legalese take on it.

Its a bit sensational but I couldn't find anything with a nonsensational balanced take on it.

https://www.skynews.com.au/insights-and-analysis/labors-intr...

Re:Austria is sleepwalking toward a far-right victory on Wednesday March 27, 2024 @08:33AM (#39838196)
People who are awake will understand.
Re:Austria is sleepwalking toward a far-right victory on Wednesday March 27, 2024 @08:23AM (#39838098)
What if the left has been destroying their country through unchecked spending and immigration and the right are the only people awake enough to see it?
Re:Austria is sleepwalking toward a far-right victory on Wednesday March 27, 2024 @08:22AM (#39838091)
My thoughts exactly.

What if the left has been destroying their country through unchecked spending and immigration and the right are the only people awake enough to see it?

Re:When Did Dogs Become Our Best Friends? on Monday March 25, 2024 @10:38PM (#39823780)
lawnlove.com

"Dont believe everything you read on the internet"

- Abraham Lincoln

Re:When Did Dogs Become Our Best Friends? on Monday March 25, 2024 @03:20PM (#39820290)
dogs are omnivores.

most kibble is vegetable based

Re:When Did Dogs Become Our Best Friends? on Monday March 25, 2024 @03:15PM (#39820229)
My dog has pooped in my backyard for years and nothing but thick quality grass everywhere.

probably because most kibble is vegetable based and vegetable based poop is good for the grass.

maybe you fed your dog more meat?

if your dog's poop is killing the grass you're doing something seriously wrong with its diet.

Re:When Did Dogs Become Our Best Friends? on Monday March 25, 2024 @03:13PM (#39820206)
Most dogs are extremely particular about where they poop and don't poop on concrete and asphalt if they have any other choice.
Re:When Did Dogs Become Our Best Friends? on Monday March 25, 2024 @03:12PM (#39820194)
DONT EAT THE POOP.

and you won't get that disease.

Problem solved.

And dont let your kids eat any animal poop

Re:When Did Dogs Become Our Best Friends? on Monday March 25, 2024 @02:51PM (#39819956)
Using an A.I. article from lawnlove.com as a source....okayyyy

This country has really gone downhill with education

My teachers would have yelled at me for having a source like that.

Re:When Did Dogs Become Our Best Friends? on Monday March 25, 2024 @09:34AM (#39816098)
The founding fathers would think that allowing the government to have a database on ANYTHING is a bad idea.

Plus dog poop is ecologically good for the environment and fertilizes nature.

how do you share CSS between pages?
Essentially if this theory is accurate it kind of shares similar patterns to diabetes insipidus which is essentially vasopressin dysfunction.

So you can Google that and see how that is treated and tested for.

You can get tested for this if you have ASD by getting a copeptin test.
The semantic web was a beautiful idea at one point

Older »