computerscience

gutenberg_org, (edited )
@gutenberg_org@mastodon.social avatar

English mathematician and computer scientist Alan Turing died in 1954.

During World War II, he played a crucial role in deciphering the Enigma code used by the German military, significantly contributing to the Allied war effort. In his paper "Computing Machinery and Intelligence," he proposed the famous Turing Test as a criterion for determining whether a machine can exhibit intelligent behavior indistinguishable from that of a human.

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

18+ jlroberson,
@jlroberson@mastodon.social avatar

@gutenberg_org I'm not sure the Turing test proves anything more than the gullibility of humans, not the consciousness of machines.
(Alan Moore & Kevin Nowlan)

image/png
image/png
image/png

gutenberg_org,
@gutenberg_org@mastodon.social avatar

Turing was prosecuted in 1952 for homosexual acts. He accepted hormone treatment, a procedure commonly referred to as chemical castration, as an alternative to prison. Turing died on 7 June 1954, aged 41, from cyanide poisoning. An inquest determined his death as suicide, but the evidence is also consistent with accidental poisoning.
3/

Moosader,
@Moosader@mastodon.gamedev.place avatar

Since I'm working on my summer course notes/"book": what is something you wish programmers knew/did?

raptor85,
@raptor85@mastodon.gamedev.place avatar

@Moosader stack/heap differentiation and memory allocation in general. I'm tired of things that complexity-wise would run on a C64 bringing my modern r9 with 128 gigs of ram to it's knees O_x

davidr,
@davidr@hachyderm.io avatar

and ball trees seem cool, but require full knowledge of the thing I'm searching for. What if it's 7 dimensional and I only know 4 of the values?

I feel like a "parallel kd tree" with a separate binary index on each dimension would work better here.

Reduce depth. Allow unspecified values. It'd also be a snap to create and search each dim in parallel.

This must already exist...

LouisIngenthron, (edited )
@LouisIngenthron@qoto.org avatar

question:

You need to replace references to the variable "terrainHeightValue" in your code with "terrainHeatValue". You know it's limited to one function, and there are 5-8 instances to be replaced.

What do you do?

PHolder,

@LouisIngenthron Ummm.. I guess you've never used Eclipse IDE. I highlight the "bad" variable name then I hit the refactor ➡ rename (there is a keypress for it, I just don't use it) and then overtype the new name and press enter. It finds ALL the correct places (cause it understands the code) and just does the necessary replacement. Quick/easy/painless.. it knows how to do it better than I would in the sense it won't accidentally miss any occurrences I might.

LouisIngenthron,
@LouisIngenthron@qoto.org avatar

@PHolder Same works with Visual Studio, and it works fine in smaller codebases, but in larger ones, it can take a few seconds to check every file for references.

With find & replace, otoh, I can highlight the variable name, press Ctrl+H and it prefills the "to replace" field and puts my cursor on the "replace with" field. Type it in and press enter and it's done, with no delay and only one mouse click.

ramikrispin,
@ramikrispin@mstdn.social avatar

(1/2) Data Compression: Theory and Applications - Stanford Course 👇🏼

Stanford University released a new course on data compression methods taught by Prof.Tsachy Weissman, Shubham Chandak, and Pulkit Tandon. As the demand for data increases at an exponential rate, data compression plays a pivotal role in providing efficient storage solutions. The course focuses on the foundations and theory of data compression.

ramikrispin,
@ramikrispin@mstdn.social avatar

(2/2) This full semester course has 18 lectures and covers the following topics:
✅ Lossless compression fundamentals
✅ Lossy compression
✅ Special topics

Course lectures 📽️: https://www.youtube.com/playlist?list=PLoROMvodv4rPj4uhbgUAaEKwNNak8xgkz
Course website 🔗: https://stanforddatacompressionclass.github.io/Fall23/

bikenut,
@bikenut@mastodon.social avatar

If you teach or and use as your please join the conversation requesting restoration of file preview for common programming languages. Instructors can no longer annotate student submissions. It has been working for 5 years and now Instructure claims it’s not supported.

https://community.canvaslms.com/t5/Canvas-Question-Forum/Java-source-files-in-SpeedGrader-no-longer-showing/

mightyspaceman,
@mightyspaceman@aus.social avatar

@bikenut I have to use canvas for school, no code previews required but...as a system, it does kinda suck. Like having teachers have to use markdown should be an option, not a must...it just ends up with really messy page structures between modules that are hard to navigate and unique to each teacher...

gutenberg_org,
@gutenberg_org@mastodon.social avatar

in 1959.

A team of computer manufacturers, users, & university people led by Grace Hopper meets to discuss the creation of a new programming language that would be called COBOL.

Throughout her career, Hopper made significant contributions to computer science, including the development of the concept of machine-independent programming languages, which greatly facilitated software development. Her compiler converted English terms into machine code understood by computers.

dorart33,
gutenberg_org,
@gutenberg_org@mastodon.social avatar

@fbvf thanks for sharing!!

tedivm,

I've got a history of // question: what was the first public software registry?

CPAN was launched in 1995. Is there anything older?

davidbisset,
@davidbisset@phpc.social avatar

My daughter is a college junior getting her degree. She's currently frustrated and hitting some issues w/ her code in a class.

"Hey i code for a living... happy to be your rubber duck... what language are you coding in?"

Her: ""

Me:

video/mp4

techphotoguy,
@techphotoguy@mastodon.social avatar

@davidbisset Is this your daughter who I know of from the context of being one of the first kids to do things at a WordCamp? And now she's a college junior?

Oof. I'm.... old or something.

davidbisset,
@davidbisset@phpc.social avatar

@techphotoguy yes. Old. Both of us.

abuseofnotation,

question (not sure how to phrase it):

Is there a program execution model in which the code is directly evaluated as an expression and the result is recorded in place as opposed to just executing it and recording the result in a new memory location?

I think machines did it like this.

tokensane,
@tokensane@mastodon.me.uk avatar

@abuseofnotation In lazy evaluation a value can be represented as a function pointer plus arguments. So if the code says "z = x+y" then z is stored as a thunk (+, x, y), where x and y are themselves refs to other values. If something subsequent needs the actual value of z then the values of x and y are fetched and passed to the + function, and then the entire thunk is replaced with the result. So if z is then used again its already computed. Of course x and y could also be thunks, so likewise.

tokensane,
@tokensane@mastodon.me.uk avatar
joshuagrochow,
@joshuagrochow@mathstodon.xyz avatar

The notion of reduction in , and particularly the notion of NP-completeness lead to surprising connections between a variety of fields.

Two of my favorite NP-complete problems are:

  • Kidney Donor Matching Markets (better algorithms literally save lives)
  • Knot Genus (a seemingly very abstract problem in topology)

Like, oh, you thought you were working on kidney donor matching markets? Surprise your can be used to find the genus of a knot! And vice versa!

Big caveat here is: NP-completeness of the decision problems doesn't, by itself, tell you the same relationship between the approximation problems, nor between heuristic algos that might not always get the exact optimum, nor FPT. But TheoryCS has different kinds of reductions that can tell you relationships between those things too!

Which makes me wonder if knot genus is hard to approximate...

h/t @CihanPostsThms for their post on the birdsite about knot genus

trans_versality,

@joshuagrochow @CihanPostsThms I'll have to look into that further (today is busy for me even if it is short), but I had guessed it would be something of the sort, abd don't know of anything that would provide that sort I'd result. If you arent going to compute knot floer to detect the genus on the nose, there are ways to get lower bounds that are more reasonably computable, ways to get upper bounds that are algorithmic (by algorithmically constructing a Seifert surface).

However, I don't know of things that fail to compute on the nose but provide any guarantee that the upper and lower bounds were reasonably close together like you mention, and it would not surprise me if for a lot of common approaches you could construct knots where the difference/ratio was arbitrarily bad (but that is based on vibes so take with a large grain of salt)

joshuagrochow,
@joshuagrochow@mathstodon.xyz avatar

@j2kun @CihanPostsThms I think the algorithm you are referring to only handles pairwise exchanges, not chains and not 3-cycles (or larger). The general problem is a variant of cycle cover.

This 2015 proposal from OPTN/UNOS https://optn.transplant.hrsa.gov/media/1184/0815-04_kpd_priority_points.pdf cites an algorithm developed by Sandholm, and references https://doi.org/10.1609/aaai.v29i1.9239.

I believe the algorithms are discussed in these papers:
https://doi.org/10.1145/2940716.2940759
https://doi.org/10.1145/1250910.1250954
though I don't know if those are still the ones currently in use.

Also discussed in a book referenced in this interview: https://www.marketplace.org/shows/marketplace-tech/kidney-transplant-algorithm-ethics/

It seems that UNOS is pretty good about evaluating algorithm & policy changes when they make them, but after a bit of searching I couldn't find the particular data you asked about.

leanpub,
@leanpub@mastodon.social avatar

Build Your Own X: Redis, Database, Compiler https://leanpub.com/b/byo_redis_db_compiler by build-your-own.org is the featured bundle on the Leanpub homepage! https://leanpub.com

Moosader,
@Moosader@mastodon.gamedev.place avatar

I should write a chatbot for my courses but basically like the Eliza bot... No actual intelligence, it just repeats something like "have you tried reading the documentation?" or "what have you tried so far?" in response to whatever they say.

I'll just call it the Duck Bot.

elb,
@elb@social.sdf.org avatar

@Moosader We use Piazza for online student assistance, it's essentially a forum tailored toward classrooms. Posts are numbered on Piazza and can be linked with @ and the post number. For my classes, post 7 is ALWAYS a post that says things like "don't send us screen shots of your terminal", has some guidelines for asking questions that can be answered, tells them how to give us code information, etc. 50% of initial faculty and assistant replies are simply "@7".

amoroso,
@amoroso@fosstodon.org avatar

I'm late to the party but I finally read Niklaus Wirth's classic "A Plea for Lean Software":

https://people.inf.ethz.ch/wirth/Articles/LeanSoftware.pdf

To make up for it I also read another software design classic, "The Emperor's Old Clothes" by Tony Hoare:

https://dl.acm.org/doi/pdf/10.1145/1283920.1283936

The main takeaway from these works is that omitting unnecessary features and simplifying is an overlooked, low hanging fruit of software design.

octothorpe,
@octothorpe@mastodon.online avatar

@amoroso @troublewithwords Coco Chanel could have told you that. (The story may be apocryphal but the legend has it that before going out, she’d look at herself in the mirror and take one thing off).

amoroso,
@amoroso@fosstodon.org avatar

@octothorpe CACM = Coco of the ACM

claras_universe,
@claras_universe@ieji.de avatar

Somehow our uni printing backend turned my 6MB PDF into 10 GIGABYTES... How? I have no idea. I had my worst printing experience today and got home with only 80% of what I wanted to print out 💀 It works normally but today (after giving up on uploading and using a USB stick) I had my funds run out mid-printing, then after that had the color run out mid-printing and after that it said I have no funds even though I charged my account again! #print #printing #uni #studying #computerscience #tech

martijn,
@martijn@ieji.de avatar

@claras_universe saved every page as a high dpi tiff image inside the pdf? That can amount to such sizes 😬

claras_universe,
@claras_universe@ieji.de avatar

@martijn I have no idea xd But it was just 6MB! How do they turn it into 10GB in the online system and send it to the printer! xD

  • All
  • Subscribed
  • Moderated
  • Favorites
  • ComputerScience
  • DreamBathrooms
  • everett
  • tacticalgear
  • magazineikmin
  • thenastyranch
  • rosin
  • tester
  • Youngstown
  • khanakhh
  • slotface
  • ngwrru68w68
  • kavyap
  • mdbf
  • InstantRegret
  • megavids
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • normalnudes
  • Durango
  • cisconetworking
  • anitta
  • modclub
  • cubers
  • Leos
  • provamag3
  • JUstTest
  • lostlight
  • All magazines