- 7
- 35
I've put together a 3:30min video summarizing the current @SweetBabyInc debacle. I've connected government funding, the ADL, election monitors, and even social media companies to this network that aims to "monitor" "extremism" and create just, equitable spaces online.
— Savvy | Artist (@MadamSavvy) March 17, 2024
Threads⦠pic.twitter.com/vWMiZMcT8o
- 23
- 35
The Official RDrama Computer Science Reading Group
My dear !codecels, hello and welcome to the first meeting of RDrama's Computer Science Reading Group! Here's the idea - we (read: I) pick a computer science textbook, then post a list of sections and exercises from that textbook each week. In the thread, feel free ask questions, post solutions, and bully people for asking stupid questions or posting stupid solutions. If you don't want to read along, I'll post the complete exercises in the OP, so you can solve them without needing to read the book.
SICP
The book I'm starting with is 'the Structure and Interpretation of Computer Programs' (abbreviated SICP). It's a software engineering textbook written by Gerald Jay Sussman and Hal Abelson from MIT. The book builds programming from the ground up: starting with a very simple dialect of Scheme and growing it into a language with lazy evaluation, object-orientation and a self-hosting compiler. It's a fun book: the exercises are hands-on and interesting, the writing is informative without being droll, and both the book itself and a corresponding lecture series (complete with a 80s synth rendition of 'Also Sprach Zarathustra') are available for free online.
Languages
The book uses (a small subset of) Scheme as its primary language, but feel free to try using a different language. The book's dialect of scheme is available through Racket, but most lisps will work with only minor changes. Other dynamically-typed, garbage-collected languages with higher-order functions will also not require much hacking: there is an edition written in JavaScript , as well as a partial adaptation to python . High-level, statically typed languages might also work: Java/Kotlin/C# seem doable, but I don't know those languages well. Strongly typed languages like Haskell will require some real hacks, and I'd avoid doing it in C, C++ or Rust.
Exercises
The book is split into five chapters:
- Building Abstractions with Procedures
- Building Abstractions with Data
- Modularity, Objects and State
- Metalinguistic Abstraction
- Computing with Register Machines
This week, I'll be posting exercises from the first chapter. The chapter is pretty easy for those familiar with programming already, so I just want to get it out of the way. Here are the selected exercises:
Exercise 1.8
Newton's method for cube roots is based on the fact that if
y
is an approximation to the cube root ofx
, then a better approximation is given by the value(x/yΒ² + 2y) / 3
. Use this formula to implement a cube-root procedure which is wrong by at most0.01
.
Exercise 1.12
The following pattern of numbers is called Pascal's Triangle.
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
...
The numbers at the edge of the triangle are all 1, and each number inside the triangle is the sum of the two numbers above it. Write a procedure that computes elements of Pascal's triangle.
Exercise 1.18
Devise a procedure generates an iterative process for multiplying two integers in terms of adding, doubling, and halving and uses a logarithmic number of steps.
Exercise 1.31
Write a procedure called
product
that returns the product of the values of a function at points over a given range (product(l, r,step,f) = f(l) * f(l+step) * f(l + 2 * step) * ... * f(r)
). Show how to definefactorial
in terms ofproduct
. Also use product to compute approximations to using the formulaΟ/4 = (2 * 4 * 4 * 6 * 6 * 8 ...) / (3 * 3 * 5 * 5 * 7 * 7 ...)
Exercise 1.43
If
f
is a numerical function andn
is a positive integer, then we can form then
th repeated application off
, which is defined to be the function whose value atx
isf(f(...(f(x))...))
. For example, iff
is the functionx β x + 1
, then then
th repeated application off
is the functionx β x + n
. Iff
is the operation of squaring a number, then then
th repeated application off
is the function that raises its argument to the2 * n
th power. Write a procedure that takes as inputs a procedure that computesf
and a positive integern
and returns the procedure that computes then
th repeated application of f. Your procedure should be able to be used as follows:repeated(square,2)(5) = 625
Have fun!
- 16
- 9
I really only give a shit about leafland most of the time (and even then not really all that deep into politics lol) but I've come to the conclusion that to get people angry online I need to say undeniable truths instead of my usual make shit up approach
Post undeniable truths that'd get wingcucks of either side angry
- 78
- 75
I have been into stoicism for a while and have been using it to cope with life but learning this info has made me second guess the entire philosophy. Now whenever I try to be stoic I think about Marcus sitting in the corner writing meditations while his wife gets brutalized by a gigachad gladiator. Now whenever I think about stoicism it seems like a cuck philosophy. Was Marcus really the adam22 of his time? How can I get over this?
Beautiful bait
Wait a christcuck destroyer was a cuck?
I feel like OP rn bros.
Only if they happen to my people
OK that is one way to purge the stain of being cucked.
Because women are wonderful chud
- ULTRA-NIGMATIC-MEGA-HOMO : This is my gf she called me dear
- 23
- 40
Hello Dear.
I trust this message finds you well. Please take a moment to explore our diverse collection of websites, tailored to cater to your interests:
https://www.completesports.com
https://xboxplay.games
https://theopinionatedindian.com
If you don't like any of these websites, please let us know your preferences, and share your target URL so that we can easily deliver the website to you accordingly. Looking forward to your feedback - thank you!
Best regards,
- 81
- 76
I'm a pig, and I smell bad. Mr. Smuther is my God, and that's what he says. He's always right. I kiss his butt. I suck everything down into my guts. I never shit. My body's greedy, there's nothing I can do about it. I'm bloated. I'm soft. I weigh 349 pounds. I'm fat scum. I despise myself. I'm sitting here in the pink pajama bottoms my mom gave me when I was fifteen. They still fit. I hate them, but I wear them. They're caked up around the crotch with various foods that I dripped and old sperm that I never wiped up. My sperm's sweet.
A lot of that sperm's there now because of Mr. Smuther, so I like it. I like to break it off in chunks and grind it between my fingers thinking about him. Then I feel disgusted with myself, but I like feeling that way for him. I'd like him to take a shit on my face while I lay on the sidewalk and people crowded around and laughed. He'd point down at my face and tell them how I deserved it, and they'd laugh again in agreement with him. I'd feel good, I like to feel good. I like to touch myself, especially when I pretend I'm someone else.
Sometimes in a restaurant I lose myself, I forget I exist. I sneak my hand up under my shirt and rub it, along the hair that collects around my bellybutton. The hair is soft, like the hair on a baby's head. I get hot and I can smell myself. I'm being smothered in my own armpit, then I c*m, but I don't feel anything. I discover a puddle of sperm in my crotch. I hurry and pay, then I leave, afraid they'll notice.
- 124
- 149
they got zvbear on CNN itβs over for himπ pic.twitter.com/ZYvPdUBl8J
— juju π° (@ayeejuju) January 26, 2024
This was his last post before going dark:
Public enemy number 1
https://twitter.com/PopBase/status/1750988236682658218
https://twitter.com/20Kylies/status/1750609904048472361
RIP my friend. I never even knew you, but you were a heck of a shit poster.
- 41
- 64
@HoHoHotep 's Christmas wish came true today, he finally got this weird anime thing on the calendar!
MERRY CHRISTMAS EVERYONE!!
Good luck today! Final calendar out tomorrow!
- Corp : Impassionata Impersonata pls Banata
- 54
- 38
WELCOME
ONE AND ALL
TO THE FIRST SESSION
OF
IMPASSIONATA CONGRESS
Esteemed colleagues,
Fellow citizens of the Vulgate,
Happy chewers of dewy sewers
And other neat stuff like that;
I COME TO YOU BECAUSE THE REPUBLIC IS IN PERIL
FAITH IN OUR CIVIC RELIGION IS FALLING SHORT
and some, in their desperation, turn to failed methods of the past in order to seek the
CHANGE
WHICH
MUST
ARRIVE
Thus do I bind a circle on those collected here,
The Registry of Impassionatas!
~ keep it light
because it's heavy ~
THESE VOLUNTEERS SHALL NOW DELIBERATE ON SUBJECTS OF GREAT IMPORTANCE.
As presiding Impassionata, I hereby open the floor. Any citizen may submit their public comment to the body politic.
@Impassionata3 will please ring the gong. It is also appropriate at this time to thank @Impassionata4 for the image above.
- 86
- 47
Just looking for something for the weekend. Preferably something short. These games have been good to me:
Bioshock Infinite
GTA 4
He Fricked The Girl Out Of Me
Jusant
Max Payne 2
Neverending Nightmares
Quantum Break
Shadow of the Tomb Raider
Tell Me Why
Goodbye Volcnao High
Mirror's Edge
Is Pentiment any good? It looks cool.
- 61
- 22
Describe a site emoji you want to commission and how much you are willing to pay for it as a parent comment on this thread. It would help to include at least one reference image with your description.
Commissioners stand to gain the Patron of the Arts badge!
!marseyartists should subscribe to this thread to print DC
- JohnnyAppleSneed : Cute twinkpost inside
- whyareyou : communist child talk, disregard
- American_Hero_Buff_Bezos : Peepee sucker doesn't have prime.
- 120
- 40
take the money away from the people who have too much.
don't listen to their whining, their excuses.
they look at this sort of talk as biting the hand that feeds them because by their ideology, they're the hand that feeds (even though if you notice, they're the hand that takes).
but by their own ideology, they're failing to feed people.
so since they've failed, it's straightforward. if you have assets valued at above a cool million, you lose those assets and they become distributed and a new round begins.
there really isn't any other way this ends that's legal to speak about.
- PermaChudRanch : Is this gonna be an ambatukam tribute video? That would be cool
- 12
- 44
Potential sites to farm drama
- 124
- 41
Hello. this is a thread dedicated to showcasing the wacky and quirky effects that can be achieved with CSS/HTML shittery.
HOW DO I GET THE MONEY?
If you explain what the arguments for any given thing does, (and there's no suitable explanation in the thread already) you'll get a 50DC bonus! Documentation is important
What DOESN'T count:anything sufficently covered in https://rdrama.net/formatting . I'm not paying you to show me how to bold things or some gay shit
Anything that repeats an existing thing. if someone shows off a marquee (though I already showed them off in the thread so no money for that ), putting a dozen of them together to make an r-slured pattern is NOT new.
you are however encouraged to post any wacky patterns/things you make even if they're duplicated . if I like them I may give you money anyway
Anything I deem not worth my money even if it follows the above rules
anything posted by carp
anything sufficently covered in https://rdrama.net/formatting . I'm not paying you to show me how to bold things or some gay shit
Anything that repeats an existing thing. if someone shows off a marquee (though I already showed them off in the thread so no money for that ), putting a dozen of them together to make an r-slured pattern is NOT new.
you are however encouraged to post any wacky patterns/things you make even if they're duplicated . if I like them I may give you money anyway
Anything I deem not worth my money even if it follows the above rules
anything posted by carp
!codecels get your MONEY