Search found 461 matches

by Tub
Sat May 18, 2019 10:00 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

It's also fast. Counting the time between starting the game and watching the last object pop in, the wasm implementation appears to be ~20-50% faster. Success. I wasn't happy with this. A bit of benchmarking later, the mesh generation code has been improved by another +120% on top of the previous i...
by Tub
Thu May 09, 2019 8:14 pm UTC
Forum: Science
Topic: Science fleeting thoughts
Replies: 248
Views: 43284

Re: Science fleeting thoughts

You were the one that brought up the book. Don't expect a recommendation from me. Anyone who claims that time doesn't exist is demonstrably wrong. Anyone who claims that time is "just an illusion" is misunderstanding the nature of scientific theories as descriptions of our universe. Anyone...
by Tub
Thu May 09, 2019 4:39 pm UTC
Forum: Science
Topic: Science fleeting thoughts
Replies: 248
Views: 43284

Re: Science fleeting thoughts

My point is that the entirety of the state of Conway's Game of Life is the position of the cells, and an evolution function which does not include time in the description, but only tells you the next position. Considering that time is discrete here, your evolution function implicitly works on a tim...
by Tub
Thu May 09, 2019 3:29 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

TIL that google will happily store and monetize all of your location data, but considers it a privacy problem when someone else does. :roll:

Xeio wrote:I can't decide if this is beautiful or horrifying:

It can be used for good or evil. I wonder, which is it?
by Tub
Thu May 09, 2019 9:38 am UTC
Forum: Science
Topic: Science fleeting thoughts
Replies: 248
Views: 43284

Re: Science fleeting thoughts

We can describe things in terms of time, but that doesn't necessarily mean that time actually exists. For example, it may be that everything in the universe can be described in terms of different fundamental dimensions and that dimensions like mass and time can be expressed in terms of units like s...
by Tub
Wed May 08, 2019 10:19 pm UTC
Forum: Science
Topic: Science fleeting thoughts
Replies: 248
Views: 43284

Re: Science fleeting thoughts

Is it a dimension, though? By any common mathematical definition, time is a dimension. If you want to uniquely identify an event within the universe (or a game of conway), you need 3 (or 2) spatial coordinates and one time coordinate. You can't go backwards, and forwards doesn't exist until the cha...
by Tub
Tue May 07, 2019 11:39 am UTC
Forum: Science
Topic: Is it possible to escape from a black hole using another black hole?
Replies: 56
Views: 2187

Re: Is it possible to escape from a black hole using another black hole?

I think the event horizons of Kerr black holes are oblate spheroids, or something similar, and the minor radius is smaller than the Schwarzschild radius. This should in principle allow two Kerr black holes that are rotating extremely quickly to pass by each other without their event horizons overla...
by Tub
Sat May 04, 2019 9:00 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

Update: I ended up solving the mutability problem by using std::Cell. Cells cheat the whole lifetime issue by disallowing getting a reference to the things inside. You can just copy values in, or copy the current value out. With those semantics, it's safe for them to allow changing the value inside ...
by Tub
Fri May 03, 2019 10:00 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

Would it make sense to map over the collection producing a collection of Option<Mesh> objects (Some if a mesh is generated) and then zip the two collections? Or can the (re)generation of one mesh depend on the (re)generation of another mesh during the same iteration? Yeah, I can push all the change...
by Tub
Fri May 03, 2019 2:00 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

Instead of writing wasm in a language I know (c++), I decided to learn rust first. It seems interesting, and rust-wasm is hip these days. Rust has come a long way since the last time I looked at it, and I'm impressed by its current design. Rust 2018 looks worth using. Except for the borrow checker. ...
by Tub
Thu May 02, 2019 9:17 am UTC
Forum: Science
Topic: Is it possible to escape from a black hole using another black hole?
Replies: 56
Views: 2187

Re: Is it possible to escape from a black hole using another black hole?

You have massless ice? I'm sure that's going to have excellent culinary applications. Can you make it tasty while keeping it at 0 calories? I'm not sure if I'm misunderstanding your question, or if you stopped reading halfway through my last post. Gravity wins. Your feeble contenders will be destroy...
by Tub
Thu May 02, 2019 8:00 am UTC
Forum: Science
Topic: Is it possible to escape from a black hole using another black hole?
Replies: 56
Views: 2187

Re: Is it possible to escape from a black hole using another black hole?

Or the probe could just be microscopic. Not much tidal force across a one micron robot. In these thought experiments, the best kind of probe is always a photon. Ok so what would happen if a black hole made of ice collided with a black hole made of lava (regular black hole)? The temperature of a bla...
by Tub
Mon Apr 29, 2019 4:48 pm UTC
Forum: Science
Topic: Is it possible to escape from a black hole using another black hole?
Replies: 56
Views: 2187

Re: Is it possible to escape from a black hole using another black hole?

But suppose I am in a spaceship in orbit about a stellar mass black hole a few Schwarzschild radii from its center. Now suppose the black hole is falling into a supermassive black hole. Surely I should not see anything strange happen to the black hole as we cross the event horizon of the supermassi...
by Tub
Mon Apr 29, 2019 10:27 am UTC
Forum: Science
Topic: Is it possible to escape from a black hole using another black hole?
Replies: 56
Views: 2187

Re: Is it possible to escape from a black hole using another black hole?

Is it possible to have a stellar mass black hole inside a supermassive black hole, such that some objects are outside both, some are inside both, and some are inside the supermassive black hole but outside the stellar mass black hole? Obviously they will merge eventually, but before they do . . . A...
by Tub
Sun Apr 28, 2019 10:24 pm UTC
Forum: Science
Topic: Is it possible to escape from a black hole using another black hole?
Replies: 56
Views: 2187

Re: Is it possible to escape from a black hole using another black hole?

You carelessly dropped your probe past an event horizon. No amount of acceleration can allow it to escape. Your first idea is thus to try accelerating it, via a nearby gravitational source. Why exactly is that supposed to help? Looking at simulations of black hole mergers , it appears as if the area...
by Tub
Mon Apr 22, 2019 10:30 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

Batching improves throughput, but also increases per-job latency. If the latency is greater than one frame, then I need to take care not to submit a job twice. As jobs are defined by (object-id, object-generation), I need - wait for it! - another multi-key Map (or Set). For now, I've ignored that pr...
by Tub
Sun Apr 21, 2019 7:31 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

Before going WebAssembly, I wanted to try boosting performance with WebWorkers. tl;dr: - doing the task in the main thread: 2-3 ms - doing the task in a worker: 20-100ms welp. This is a webgl game. The task is to prepare an object for rendering, and I have >1000 of these objects. They are prioritize...
by Tub
Tue Apr 16, 2019 9:24 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

Ah, so they don't just have different equality semantics, they're also immutable. That's certainly a lot more powerful.
by Tub
Tue Apr 16, 2019 4:46 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

Thanks for the insight. I'm having trouble coming up with consumers (besides Set and WeakMap). Surely there's some user code that'd be prettier with these types, but you can always implement your own comparison function. I can't find anything besides Map/Set were you have to rely on behind-the-scene...
by Tub
Fri Apr 12, 2019 7:15 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 2136: "Election Commentary"
Replies: 13
Views: 1968

Re: 2136: "Election Commentary"

To be fair, the american election system actually is an unnecessarily convoluted way to add up votes.
by Tub
Thu Apr 11, 2019 2:43 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

I really wish javascript's Map class had the ability to accept multiple keys. With the good old object-as-maps, you'd just concatenate all your keys; they had to be strings anyway. let m = {}; m[x + '|' + y] = 42. Somewhat expensive if you want to implement huge multi-dimensional arrays, but fine fo...
by Tub
Thu Apr 11, 2019 9:37 am UTC
Forum: Science
Topic: Event Horizon Telescope image
Replies: 24
Views: 1263

Re: Event Horizon Telescope image

Some members of the EHT team did a reddit AMA yesterday, where they answered many common questions (including yours) in great detail.
https://www.reddit.com/r/askscience/com ... s_here_to/
by Tub
Sun Apr 07, 2019 7:58 am UTC
Forum: Hardware
Topic: Smartwatch without a smartphone?
Replies: 2
Views: 4180

Re: Smartwatch without a smartphone?

Despite the lack of responses, I can't leave the thread hanging like this. After realizing that the battery lifetimes between a smart watch and my old casio differ by three orders of magnitude, I just ordered a casio again. If I have to recharge the watch every couple of days, then the maintenance o...
by Tub
Sat Mar 30, 2019 9:14 am UTC
Forum: Science
Topic: Miscellaneous Science Questions
Replies: 2934
Views: 700727

Re: Miscellaneous Science Questions

Although, does that ambiguity exist since it holds for the components (0.999...,0.999...)=(1,1)=(1,0.999...)=(0.999...,1) too? Go ahead and interleave these pairs. If interleaving is a bijection, all four of them must yield the same number. There is only a countably infinite amount of numbers with ...
by Tub
Fri Mar 29, 2019 10:30 pm UTC
Forum: Science
Topic: Miscellaneous Science Questions
Replies: 2934
Views: 700727

Re: Miscellaneous Science Questions

Hang on.. the discrete iterations of space-filling curves may be bijective, but the limits aren't. Space-filling curves are necessarily self-intersecting. You can use them to prove that | R² | <= | R |, and it's easy to prove that | R | <= | R² |, but that's just an existence proof. It's not constru...
by Tub
Fri Mar 29, 2019 7:35 pm UTC
Forum: Hardware
Topic: Smartwatch without a smartphone?
Replies: 2
Views: 4180

Smartwatch without a smartphone?

Hello, In 2006 I bought a casio watch. Today, I dropped it. Now it's dead. Looking at casio's innovative product lineup, I could just.. buy the same model again. But maybe I should try to be a bit more modern? I really just need a quick 5 minute timer (I like tea), the current date and time, and an ...
by Tub
Thu Mar 28, 2019 8:31 pm UTC
Forum: The Help Desk
Topic: EFI boot from card reader
Replies: 1
Views: 556

Re: EFI boot from card reader

Someone is asking for trouble. 1) you need a bootloader on an EFI partition 2) you need the firmware ("bios") of your computer to recognize that partition 3) you need an initramfs that can mount the root partition. For the first problem, you can either re-use the existing EFI partition fro...
by Tub
Tue Mar 26, 2019 2:58 pm UTC
Forum: Science
Topic: Verifying physics at home
Replies: 15
Views: 1484

Re: Verifying physics at home

Yeah, I almost mentioned that for the atomic clocks. We all know that the illuminati mandate all commercially available atomic clocks to carry GPS sensors and fake a clock drift according to altitude and velocity. Right? It's not as bad in the case of a spectrometer. You have a black box on your des...
by Tub
Tue Mar 26, 2019 11:54 am UTC
Forum: Science
Topic: Verifying physics at home
Replies: 15
Views: 1484

Re: Verifying physics at home

Thanks for your ideas. Props to Heimhenge for actually doing the experiment! The insights into modern telescopes from DavidSh and LaserGuy are much appreciated; they're a lot more capable than I thought. re: spectroscopes. I know a couple of chemists, and their equipment is quite expensive. I also w...
by Tub
Mon Mar 25, 2019 11:55 am UTC
Forum: Science
Topic: Verifying physics at home
Replies: 15
Views: 1484

Verifying physics at home

Let's say you're a die-hard skeptic, and you doubt every experiment that you haven't done yourself. So you set out to re-produce all major experiments at home. I'm wondering, how much of modern physics can be reproduced at home, and on what budget? I'll skip over newtonian physics because a) a lot o...
by Tub
Fri Mar 22, 2019 9:21 am UTC
Forum: Mathematics
Topic: Most useful isomorphisms you know?
Replies: 6
Views: 1201

Re: Most useful isomorphisms you know?

This may be too trivial for your taste, but having isomorphisms between any (discrete, finite) piece of information and a binary representation is pretty useful if you like having general-purpose computers.
by Tub
Mon Mar 11, 2019 9:25 pm UTC
Forum: Science
Topic: Extracting energy from a black hole via gravitational blueshift
Replies: 20
Views: 1893

Re: Extracting energy from a black hole via gravitational blueshift

The Ferris wheel was in response to ijun's "climbing out of the gravity well" wording. It's not a perfect analogy, but it shows that if you take a system that's stable due to inertia and use it to lift stuff against gravitation (i.e. do work), you will affect the system. If the analogy doe...
by Tub
Sun Mar 10, 2019 10:50 am UTC
Forum: Science
Topic: Extracting energy from a black hole via gravitational blueshift
Replies: 20
Views: 1893

Re: Extracting energy from a black hole via gravitational blueshift

The mass of a satellite has no bearing on its orbit, right? That's true for a constant mass, but you're adding and removing mass mid-flight. It's true for a Ferris wheel that (ignoring friction) it will keep its rotational speed forever, regardless of mass. But if you start loading cinder blocks at...
by Tub
Thu Mar 07, 2019 3:41 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

frames are just windows. Isn't there something like myIframe.contentWindow.history.back() ?
by Tub
Tue Mar 05, 2019 10:10 am UTC
Forum: Science
Topic: Biggest Telescope
Replies: 2
Views: 821

Re: Biggest Telescope

What is your desired spatial and temporal resolution? Angular resolution is strictly limited by aperture size and wavelength. An internet search turns up the Dawes' limit. It's not perfect, but it seems to be good enough for an approximation, and the formula is simple enough that you can plot your o...
by Tub
Wed Feb 27, 2019 10:44 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

So the tl;dr is that let/const are not just scoping restrictions, but the runtime will actually create a new variable each time program flow encounters a let/const declaration for capturing purposes. Hence, implementing let/const requires more than resolving naming conflicts, enforcing temporal dead...
by Tub
Tue Feb 26, 2019 10:50 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

return ; //<- inserted here { a: 42 } ; //<-and here Yeah I came across that too when advocating my non-use of semicolons. Opening-bracket-on-the-same-line styles save the day once more. :lol: Interesting that you got it wrong, then. Hint: that's not an object literal there. I predict you're going ...
by Tub
Tue Feb 26, 2019 1:01 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9968
Views: 1950901

Re: Coding: Fleeting Thoughts

... kmlReq.addEventListener('load', () => { const routes = toGeoJSON.kml(kmlReq.responseXML) const features = routes.features.map(({'geometry': g, 'properties': { 'name': n='' }}) => ({'name': n, 'geom': g})) //flatten the structure a bunch const [points,paths] = features.partition(({'geom': {'type...
by Tub
Mon Feb 25, 2019 9:27 am UTC
Forum: Computer Science
Topic: CSS Sins
Replies: 4
Views: 1120

Re: CSS Sins

Can you please make that css crash the browser? I feel like it should crash the browser.
by Tub
Thu Feb 21, 2019 12:03 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 2113: "Physics Suppression"
Replies: 23
Views: 4546

Re: 2113: "Physics Suppression"

Ignore hydrogen for a moment, because nucleosynthesis didn't happen until after inflation ended. What's important is that you can take one empty volume of space and stretch it into two empty volumes of space. As space is never "empty", you've now created both new space and new energy, for ...

Go to advanced search