|
But you guuuuys, Lennart Poettering is so mean!! (because he asks "why" when people say "I DON'T LIKE THIS THING TAKE IT OUT") look how badly he hosed up with PulseAudio (this was all Ubuntu's fault and on RH it worked just fine)
|
# ? May 12, 2013 15:32 |
|
|
# ? Jun 6, 2024 13:51 |
|
Bloody posted:why would a person consider c but never c++ nobody is forcing me to use C++ period
|
# ? May 12, 2013 15:36 |
|
Mr Dog posted:look how badly he hosed up with PulseAudio (this was all Ubuntu's fault and on RH it worked just fine) indeed, pulseaudio was a bad solution to a problem that didn't exist. i am forever grateful to its spergy developers however for giving me the final push off of desktop linux all those years ago. every time i see a thread about gnome or kde i am reminded of how lucky i am to be out of that particular loony bin
|
# ? May 12, 2013 17:28 |
|
the problem was "working audio". audio actually did not work for a number of years until pulseaudio started existing. alsa did not support multiple applications playing at the same time and they rejected it as a feature after we asked them like ten times until we were forced to make pulseaudio and they just accepted patches from a random person and got it wrong. i think alsa upstream is fixed now but it doesnt actually support per-stream volume so it doesnt really matter.
|
# ? May 12, 2013 17:36 |
|
alsa (which pa uses as something like a backend) worked fine iirc, it was oss that was all hosed up. somehow on debian multiple applications played sound at the same time before the advent of pa. mixing is in the kernel now though, and kernel devs are often competent, so maybe [img-linux_audio] gets a happy endint.
|
# ? May 12, 2013 17:43 |
|
Otto Skorzeny posted:alsa (which pa uses as something like a backend) worked fine iirc at first, pa used it so it doesnt have to write its own kernel drivers. it became "the one application". we also wrote wrapper libraries so things using the alsa/oss apis wouldnt have to port. (they should to get more advanced features, tho) Otto Skorzeny posted:somehow on debian multiple applications played sound at the same time before the advent of pa. there was the enlightenment sound daemon, but its api was "pump a really low-quality 16khz sound stream into this file over here and we'll do the mixing for you". it didnt have stream negotiation, so it couldnt evolve as time went on. pulseaudio was the successor to esd more than anything. Otto Skorzeny posted:mixing is in the kernel now though, and kernel devs are often competent, so maybe [img-linux_audio] gets a happy endint. yep the alsa team smartened up now and theyre working together with the pulseaudio people in harmony. pulseaudio is getting "user-space" features like network transport (take my stream and throw it over the network to the thing downstairs, compatible with apple products), stream metadata (autoduck or pause my music when a skype call comes in), noise cancellation (dont let my music seep through my skype speakers), per-jack volumes (when i accidentally step on my headphone cord, dont broadcast my pornin to the entire office), a good api, and lots more, and alsa is doing all the mixing now if they can handle it, plus a fallback for debian since they dont actually ship new software. there was always an intent to collaborate, but the teams didnt really see eye to eye until a meatspace linux plumbers conf when both teams relayed their goals and managed to get excited about the future.
|
# ? May 12, 2013 17:52 |
|
http://0pointer.de/blog/projects/jeffrey-stedfast.html (post title: PulseAudio FUD) Mixing application audio streams is hard because there's more to it than just summing streams of numbers together. Resampling is usually involved, for instance. This isn't the sort of thing that belongs in a kernel. ALSA's dmix module is a quick hack and isn't really suitable for more sophisticated use cases. http://0pointer.de/blog/projects/pulse-glitch-free.html PulseAudio also does mixing in a clever way that minimises wakeups and also decreases latency, which is pretty neat.
|
# ? May 12, 2013 18:00 |
|
where does that weird jackd thing fit in to this
|
# ? May 12, 2013 18:01 |
|
jack requires apps to be run as root
|
# ? May 12, 2013 18:03 |
|
heh
|
# ? May 12, 2013 18:04 |
|
Otto Skorzeny posted:where does that weird jackd thing fit in to this right next to those magic rocks you put on top of your receiver to improve audio quality because the $1000 monster cables just weren't enough for your discerning ear
|
# ? May 12, 2013 18:05 |
|
also next to the magic incantation you needed to get sound to work in enemy territory because of oss
|
# ? May 12, 2013 18:06 |
|
pseudorandom name posted:right next to those magic rocks you put on top of your receiver to improve audio quality because the $1000 monster cables just weren't enough for your discerning ear web counter free web hit counter The Disintegration of Time The Real Story of How the Clever Little Clock Works Copyright © 2009..... Geoff Kait, MACHINA DYNAMICA Introduction The Clever Little Clock is a battery-powered travel clock the size of an iPhone that has been extensively modified using many highly specialized techniques. At least 19 steps are required to produce the Clever Little Clock, somewhat more for the new Signature version. The clock can be placed anywhere in the room with excellent results for both the sound quality of audio systems AND the picture quality of video systems. The Clever Little Clock is based on concepts and techniques that were developed by PWB Electronics, Leeds, England and is designed and manufactured exclusively by Machina Dynamica. May Belt of PWB Electronics provided assistance with this theory of operation. Machina Dynamica introduced the original Clever Little Clock in 2005. However, we did not provide any details of its operation in all this time - until now. Since its introduction, there has been some speculation that the Clever Little Clock is an acoustic resonator, an emitter of some sort or an EMI/RFI channeler. But, it's none of those! The Clever Little Clock's operation actually has to do with time itself - how the past catches up with us -- like a predator. The real story of how the Clever Little Clock works involves man's inherited fight-or-flight response to danger and the evolution of his memory system -- how memories are created, stored and retrieved. The clock's operation also involves the significance of two different time references -- one that was operating when the recording was made and one that's operating in the future when the recording is played. Predators, Evolution and our Internal Clock Man's internal clock evolved during the Dawn of Man as a survival mechanism. This internal clock is a function of the brain that time-sequences sensory information - most notably, perhaps, moving images and sound - so the information can be stored in and retrieved from memory chronologically. Early man's chronological memory allowed him to calculate a predator's location, speed and direction of movement and figure out, on the spot, if it was barreling down on him or not. Timing in memory operation was critical since sensory information had to be retrieved from memory in precisely the same sequence and speed it was stored - otherwise, it would be all jumbled together and wouldn't make sense. Early man continually scoped out his environment for danger. When he saw or heard - or otherwise sensed - a predator nearby, fear, confusion and anxiety automatically kicked in -- the fight-or-flight response, also called the acute stress response. Predators of early man were very impressive, capable of producing acute stress -- hyenas as big as bears, ferocious saber-toothed cats like Smilodon (see photo) and raptors like the African Crowned Eagle. Photo courtesy University of California at Berkeley Saber-toothed Tiger (Smilodon) To assess a predator's threat, early man analyzed images and sounds of the predator to determine its location (x, y, z), velocity (dx/dt, dy/dt, dz/dt) and direction of movement. Early man's internal clock time-stamped each millisecond of the predator's motion and sound with a unique time coordinate (Present Time, tn). Thus, early man calculated the predator's position, velocity and direction by comparing/analyzing frames of data in very recent memory - e.g., the frames time-stamped tn through tn-10. The fight-or-flight response temporarily degraded or distorted early man's senses of vision (tunnel vision) and hearing (auditory exclusion) as other biological processes, such as adrenaline release, took precedence, somewhat hampering his threat assessment efforts. Man's chronological memory did not disappear when early predators like Smilodon became extinct, but continued to evolve since some other early predators survived and new ones arrived on the scene as time went by. Man is still prey to grizzlies, saltwater crocs and tigers in some parts of the world. A man standing on the corner waiting to cross the street relies on his sensory perception, internal clock and chronological memory to rapidly assess the speed of a car barreling down on him. Chronological Memory Our internal clock controls how memories are stored and retrieved. If we wish to reminisce about a favorite book or movie we can recall the highlights fairly easily, and if we put our minds to it we can remember scenes from movies in remarkable detail - scenes many hundreds of frames or more in length. A movie's images and sounds are "videotaped" by our eye and brain, then stored in memory chronologically. Furthermore, the movie's images are integrated, synchronized with the movie's soundtrack in memory. If our memory was not chronological we wouldn't be able to recall high-density, multiple-frame scenes from movies and replay them in our mind's eye. The brain even has a Scene Selection feature similar to a DVD player's so we can consciously select specific scenes from a movie and replay them in our mind's eye like, say, Remember Sammy Jankis or Memories can be Distorted from Memento. Our internal clock is always running, whether we're conscious of it or not. Sometimes we awake just before the alarm clock goes off because we know it's time to get up. All the things we see and hear and do are time-stamped with Present Time coordinates. Thus, the next day, the following week or ten years later we're able to associate specific times in the past with our experiences. "What were you doing last Tuesday evening?" "Let's see, at 8 O'clock I was watching Total Recall. At 9 O'clock I watched Altered States." So, whether we're aware of it or not, we maintain a continuous record of events, sounds, words and images, including time of occurrence. We can sing a song from memory or play a musical instrument. With a little effort we can remember passages from books and movies like Roy Batty's death speech in Blade Runner, "I've seen things you people wouldn't believe. Attack ships on fire off the shoulder of Orion. I watched C-beams glitter in the dark near the Tannhauser gate. All these moments ...will be lost... in time... like tears... in rain. ...Time to die." Time is Relative The Clever Little Clock addresses an esoteric but fundamental problem that occurs when playing an LP, CD, DVD or any other audio or video media. This problem also occurs when watching taped programs on television or listening to recorded programming on the radio in your old car or at home. In all of those cases, the observer is confronted - subconsciously - by time coordinates that are different from the Present Time coordinates he's been using his entire life to time-stamp sensory information. What are these interfering time coordinates, where do they come from and why are they a problem? The alien time coordinates are contained in the recording (or videotape). The time coordinates (of what was then Present Time) of the recorded performance, millisecond by millisecond, are captured inadvertently along with the acoustic information. When a recording is played, the time coordinates from the recording session (which are now Past Time coordinates) are reproduced by the speakers along with the acoustic signals of the recorded event. Those Past Time signals become entangled, integrated in the listener's mind with Present Time signals. Because the listener is accustomed to using Present Time signals to synchronize his chronological memory, he subconsciously perceives the confusing, interloping Past Time signals as a threat. This perceived threat produces the fight-or-flight response, which in turn degrades his sensory capabilities. The reason that live television broadcasts, like the Superbowl and the 2010 Olympics, are generally observed to have superior audio and video compared to taped broadcasts is that they don't contain Past Time signals, only Present Time ones. The time coordinates on the recording are associated with the 4-dimensional spacetime coordinate system (x, y, z, t), where t ranges between the start time and end time of the recording session. While you could say that t0 of the spacetime coordinate system marks the first instant of the Big Bang, it's the relative difference between Past Time and Present Time that's important, not the difference between t0 and Past Time or Present Time. In H. G. Wells' The Time Machine, George demonstrates a working scale model to a group of skeptical friends. He sets the time machine's clock to 10 minutes in the future and pushes the start lever. The time machine then disappears in front of their eyes. The time machine disappears because, although it's still in the same place on the table, it's occupying a different spacetime (x, y, z, t) in the future. The x, y, z space coordinates are the same, but the time coordinate t is Present Time + 10 minutes. The time machine reappeared 10 minutes later. Götterdämmerung Let's say a recording was made of a live performance of Götterdämmerung with the Berliner Philharmoniker on July 21, 1930 between 12 Noon and 5 PM. During the performance the actual time coordinates of what was then Present Time - a unique time coordinate for each instant of the performance - are somehow captured on the recording along with the acoustic information of the musical instruments and singers. When the recording of Götterdämmerung is played at some point in the future - say, one day in 2010 - the stream of time coordinates from July 21, 1930 is projected into the listening room by the speakers along along with the acoustic information. The two out-of-synch streams of time coordinates - the Past Time coordinates from July 21, 1930 and the Present Time coordinates - confuse the listener and reduce his sensory acuity. So, even though the glorious sound of the Berliner Philharmoniker is reproduced in the room the listener cannot hear it in all its glory. Summary The time signals that are captured on the recording back when it was made are out of synch with the time signals when the recording is played. Those Past Time signals are reproduced through the speakers along with the acoustic information and become entangled, integrated with Present Time signals the listener uses to time-sequence sounds and images in memory. The alien time signals from the past are perceived subconsciously by the listener as a threat, producing fear, anxiety and confusion: the fight-or-flight response inherited from his Prehistoric ancestors. That fear, anxiety and confusion reduce or distort the listener's hearing and visual acuity. The Clever Little Clock counteracts the perceived threat produced by the Past Time signals, improving the listener's hearing and vision acuity by disentangling, dis-integrating the Past Time signals from the Present Time signals in his subconscious mind. About the Author: Geoff Kait, education: Aerospace Engineering (theoretical fluid dynamics, propulsion, statistical thermodynamics, nuclear physics, indeterminate structures). Work experience: NASA satellite operations and radar data analysis; aerodynamics of high-performance aircraft and reentry vehicles; radio and satellite communications; spread spectrum communications. He incorporated Machina Dynamica in 1998 and designed the Nimbus Sub-Hertz Platform, Promethean Base, Special Helical Springs, Brilliant Pebbles, The Super Intelligent Chip, the Clever Little Clock, Codename Turquoise, Codename Top Banana, Tru Tone Duplex Covers, Frog Jump in Water Sound Tweak, Codename White Poppy, Codename Blue Meanies, the Quantum Temple Bell, the Diamond Light Crystal and the Teleportation Tweak. ________________________
|
# ? May 12, 2013 18:33 |
|
machina dynamica is the epitome of poe's law
|
# ? May 12, 2013 22:34 |
|
init scripts are the worst thing except for every other form of service management
|
# ? May 12, 2013 23:28 |
|
Otto Skorzeny posted:where does that weird jackd thing fit in to this it doesn't fit well in a grindr dominated ecosystem, but it occasionally gets the job done
|
# ? May 13, 2013 01:33 |
|
started playing with haskell today. i've never used a pure functional language or anything with static types (besides minimal java dabbling), so i figured i'd try 'em both at once. it seems fun. haven't gotten to any of the monads and such yet, but have been reading LYAH and doing these random exercises i found on github: https://github.com/noelmarkham/learn-you-a-haskell-exercises they're not quite clojure koans, but they're at least getting me writing code. are there any other good resources for haskell exercises/projects/etc? i feel like there's probably haskell people itt
|
# ? May 13, 2013 02:08 |
|
real world haskell is pretty good
|
# ? May 13, 2013 02:13 |
|
Typeclassopedia is really good for an in-depth look at the type classes like Functor, Applicative, Monad and so on along with lots of examples but you should wait until you've finished LYAH for it imo.
|
# ? May 13, 2013 09:54 |
|
i really wish there were any kind of thing that made programming in haskell useful. xmonad is cool but it only works with linux so heh
|
# ? May 13, 2013 10:23 |
|
Nomnom Cookie posted:init scripts are the worst thing except for every other form of service management as always, windows does it the best.
|
# ? May 13, 2013 14:28 |
|
chumpchous posted:i really wish there were any kind of thing that made programming in haskell useful. xmonad is cool but it only works with linux so heh what are you looking for exactly? it's got a lot more good libraries than you might expect, 3 good web frameworks (if you're into that sort of thing), loving parser combinators, a couple of libraries for doing shell scripting type tasks, etc
|
# ? May 13, 2013 15:38 |
|
SavageMessiah posted:loving parser combinators
|
# ? May 13, 2013 15:42 |
|
this would be perfect if there were an oreilly book on parsers w/ a dolphin as the animal
|
# ? May 13, 2013 15:59 |
|
Otto Skorzeny posted:this would be perfect if there were an oreilly book on loving w/ a dolphin as the animal
|
# ? May 13, 2013 16:23 |
|
this reminds me that it's been six months or so since i looked at the zero punctuation videos. i need to see if he's done a video about anything i know about since then
|
# ? May 13, 2013 16:28 |
|
no, don't
|
# ? May 13, 2013 16:34 |
|
prefect posted:this reminds me that it's been two years or so since i looked at the zero punctuation videos. I really liked him at one point, then I got over it it helped reading about his hilariously lovely horror adventure game series so spooky
|
# ? May 13, 2013 17:02 |
|
zp guy would be pretty good if he could present his somewhat good ideas without having to resort to a bunch of dick jokes but then again he's trying to enlighten gamers so he's damned if he does, damned if he doesn't
|
# ? May 13, 2013 17:05 |
|
like most things that come out of sa, zero punctuation was funny for a very short period of time (the only exception to this is the zybourne clock)
|
# ? May 13, 2013 17:11 |
|
SavageMessiah posted:what are you looking for exactly? it's got a lot more good libraries than you might expect, 3 good web frameworks (if you're into that sort of thing), loving parser combinators, a couple of libraries for doing shell scripting type tasks, etc Does it have anything that will help me get and keep a job
|
# ? May 13, 2013 17:31 |
|
Watch a recent ZP and then watch one from like two years ago count the octaves
|
# ? May 13, 2013 17:34 |
|
Bloody posted:why would a person consider c but never c++ Back in the day C++ compilers sucked dick. Also why can't I just use a struct and not be loving retarded when accessing my structs? Seems easier to me so idk why you would use C++ when the entire thing can be replaced with structs and pointers to pointers. Unless you are retarded, then feel free to use C++.
|
# ? May 13, 2013 17:41 |
|
ratbert90 posted:Back in the day C++ compilers sucked dick. you can but then sometimes you want to use someone's awful library that is only available as undocumented c++ source so even though your codebase is basically just C you still have to compile with g++ also std::vector is pretty handy imo
|
# ? May 13, 2013 17:49 |
|
ratbert90 posted:Also why can't I just use a struct and not be loving retarded when accessing my structs? Seems easier to me so idk why you would use C++ when the entire thing can be replaced with structs and pointers to pointers. Unless you are retarded, then feel free to use C++. C++ is a tool for turning imaginary problems into real ones
|
# ? May 13, 2013 18:12 |
|
Mr Dog posted:C++ is a tool for turning imaginary problems into real ones
|
# ? May 13, 2013 18:22 |
|
ratbert90 posted:
other people will use your code, unless you only write code for school or social media startups
|
# ? May 13, 2013 18:58 |
|
you can still use structs and write your own vtables in c++ you can be one of those cool dudes who only uses c++ for vectors and strings
|
# ? May 13, 2013 19:00 |
|
abraham linksys posted:i've never used anything with static types (besides minimal java dabbling) gonna shagger a bit here and say what the gently caress are you doing with your life that led you to make these poor decisions
|
# ? May 13, 2013 19:15 |
|
|
# ? Jun 6, 2024 13:51 |
|
I learned C++ to code in C++ but then I realized that C++ was being stupid, so I can read other peoples C++ just fine. And yeah, C++ is p-ok with strings, but 99% of C++ string manip can be done with a for loop and 10 seconds of coding.
|
# ? May 13, 2013 19:16 |