Welcome, Guest

Author Topic: Coding  (Read 261919 times)

Darvince

  • *****
  • Posts: 1842
  • 差不多
Re: Coding
« Reply #540 on: September 21, 2015, 05:00:23 PM »
universe sandbox 0.001

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Coding
« Reply #541 on: September 21, 2015, 11:59:54 PM »
Kol :P

Here I let it run for 100 time units with the same conditions





kol this is too addicting







« Last Edit: September 22, 2015, 02:57:09 AM by Bla »

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Coding
« Reply #542 on: October 01, 2015, 08:15:03 AM »
>Saving a file
>Accidentally save entire matrix instead of specific matrix elements in loop
>End up with 10 GB file instead of 270 kB



wait nooo wait what it's still growing oshi- stop stop stope



catalog.bin was keeled to death after reaching 23.8 GB. Rip in peach catalog.bin after reaching 29% of progress in trying to take over my remaining hard disk space.


vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Coding
« Reply #543 on: October 01, 2015, 12:41:47 PM »
is that nbt explorer i see there

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Coding
« Reply #544 on: October 01, 2015, 02:33:13 PM »
Kolyes nbt-exploder is my default program for .dat files



Also the gravity sim got an upgrade so it now can make videos

https://www.youtube.com/watch?v=aEh9Y5kqUH8
« Last Edit: October 01, 2015, 02:57:13 PM by Bla »

atomic7732

  • Global Moderator
  • *****
  • Posts: 3848
  • caught in the river turning blue
    • Paladin of Storms
Re: Coding
« Reply #545 on: October 01, 2015, 02:59:59 PM »
cute

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Coding
« Reply #546 on: October 01, 2015, 03:18:14 PM »
Thank

atomic7732

  • Global Moderator
  • *****
  • Posts: 3848
  • caught in the river turning blue
    • Paladin of Storms
Re: Coding
« Reply #547 on: October 03, 2015, 12:59:26 AM »
Hurricane Marty overlaid on top of every named Pacific storm from 2004-2013
green = tropical
yellow = subtropical
blue = extratropical
gray = disturbance
black = other



and Hurricane Jimena


« Last Edit: October 03, 2015, 01:06:17 AM by atomic7732 »

Darvince

  • *****
  • Posts: 1842
  • 差不多
Re: Coding
« Reply #548 on: October 03, 2015, 10:08:46 AM »
jimena BIG

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Coding
« Reply #549 on: October 05, 2015, 03:03:25 PM »
This week we had to make GUIs

It's depressing to think about the fact that Matlab costs $$$s though, and that even if I wrote e.g. Map War 2 in it, nobody would be able to play it I guess, since they'd have to buy Matlab. Or Idk about the Python Matlab thing. But some day, I hope I can use my experiences to revive the Map War project and program the Strategy Game I Always Dreamt of.


atomic7732

  • Global Moderator
  • *****
  • Posts: 3848
  • caught in the river turning blue
    • Paladin of Storms
Re: Coding
« Reply #550 on: October 05, 2015, 03:30:05 PM »
wow this is orange oppression

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Coding
« Reply #551 on: October 06, 2015, 02:37:35 AM »
It has no simple orange command :(

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Coding
« Reply #552 on: October 07, 2015, 06:48:33 AM »
Actually I think I've found a way to make Matlab compile scripts into .exe, that would be supercute. The first exe should run a figure demonstrating some Feynman clocks moving. The second one should run the oscillator GUI and plot stuff. If anyone wants to try, let me know if it works for you.

mcc -m <scriptname>
« Last Edit: October 07, 2015, 04:22:07 PM by Bla »

atomic7732

  • Global Moderator
  • *****
  • Posts: 3848
  • caught in the river turning blue
    • Paladin of Storms
Re: Coding
« Reply #553 on: October 07, 2015, 05:58:33 PM »
i tried running it but it complained about some acronym


Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Coding
« Reply #554 on: October 08, 2015, 04:08:36 AM »
Oh great apparently the .exes require this 400 MB thing...

http://se.mathworks.com/products/compiler/mcr/index.html

Thanks for testing though.

I was working on a GUI for Orbit for fun but I guess it won't be of much interest to others if they need to download and install over 400 MB to try it. Anyway this is how it looks





« Last Edit: October 08, 2015, 07:05:11 AM by Bla »

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Coding
« Reply #555 on: October 08, 2015, 09:01:43 AM »
400 MB is ezpz

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Coding
« Reply #556 on: October 08, 2015, 11:22:18 AM »
If you feel like it, the program in its current state is here

Also this

« Last Edit: October 08, 2015, 11:33:03 AM by Bla »

atomic7732

  • Global Moderator
  • *****
  • Posts: 3848
  • caught in the river turning blue
    • Paladin of Storms
Re: Coding
« Reply #557 on: October 08, 2015, 11:54:40 AM »
what happened to 15% of the energy

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Coding
« Reply #558 on: October 08, 2015, 11:55:11 AM »
Fuck energy conservation, just go with the colorful lines!

Lord DC

  • *****
  • Posts: 318
  • Omnitae - Leader of Omnipotencia
    • Steam profile
Re: Coding
« Reply #559 on: October 08, 2015, 01:24:35 PM »
Fuck energy conservation, just go with the colorful lines!

atomic7732

  • Global Moderator
  • *****
  • Posts: 3848
  • caught in the river turning blue
    • Paladin of Storms
Re: Coding
« Reply #560 on: October 18, 2015, 09:58:29 PM »
i'm play code windowed program

currently it handles not much more than a pannable and zoomable map (but it scales the pan when zoomed in! and stays centered!)

you can also adjust the text boxes at the top, and it tells you your cursor position


Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Coding
« Reply #561 on: October 19, 2015, 09:36:14 AM »
Nice start, I expect to see Map War 2 gameplay implemented by November 1st

FiahOwl

  • *****
  • Posts: 1234
  • This is, to give a dog and in recompense desire my dog again.
Re: Coding
« Reply #562 on: October 25, 2015, 10:03:13 PM »

This message is only viewable with Universe Sandbox Galaxy Edition. Access it and much more with promo-code '159542'.

« Last Edit: March 22, 2021, 01:13:18 AM by FiahOwl »

atomic7732

  • Global Moderator
  • *****
  • Posts: 3848
  • caught in the river turning blue
    • Paladin of Storms
Re: Coding
« Reply #563 on: December 13, 2015, 03:48:00 AM »
I wrote a cute little script today which generates this every 30 minutes.

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Coding
« Reply #564 on: December 13, 2015, 06:10:07 AM »
Cute colors thar

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Coding
« Reply #565 on: December 27, 2015, 08:46:44 AM »
going to talk about my code without actually posting it cause it's on my rl github account
i've been working on a gravity simulation to model the cosmological structure of the universe
here are how many gravitational interactions a brute force approach would have to compute:
Code: [Select]
2^10 (periodic boundary conditions)
2^12 (number of timesteps)
2^32 (number of bodies squared)
2^1  (number of acceleration calculations per step of verlet)
2^55 (total)
2^55 is about 36000 trillion, which is a bit even for modern computers.

anyway i managed to optimize it down. i added a counter to see how many computations i ran, and it ends up equivalent to 2^35 gravitational interactions, or about 34 billion, which my laptop does inside of an hour.

that's a speed of factor of 2^20 -- around a million, which is not so bad if i say so. also i managed to get multiprocessing working so that's another speedup of 2^3 on top of everything
« Last Edit: December 27, 2015, 08:51:46 AM by vh »

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Coding
« Reply #566 on: January 21, 2016, 02:03:43 PM »
[16:00] <+syule> what the hell
[16:01] <+syule> i changed my code in a way that shouldn't speed it up
[16:01] <+syule> and my code sped up by a factor of like 100
[16:01] <+syule> what the fucking fuck
[16:01] <+syule> wait i know why
[16:01] <+syule> branch prediction
[16:01] <+syule> gdi

immediately before this i had a problem where multiprocessing slowed down my code by a factor of 6

vh

  • formerly mudkipz
  • *****
  • Posts: 1140
  • "giving heat meaning"
Re: Coding
« Reply #567 on: January 21, 2016, 02:26:59 PM »
i just realized i was using the debugger in release mode

disabling it just sped up my code by another factor of 100+
this is glorious

atomic7732

  • Global Moderator
  • *****
  • Posts: 3848
  • caught in the river turning blue
    • Paladin of Storms
Re: Coding
« Reply #568 on: January 21, 2016, 03:30:06 PM »
so is that a factor of 101 (after the second) and 10000 after the first?

how do factors work

Lord DC

  • *****
  • Posts: 318
  • Omnitae - Leader of Omnipotencia
    • Steam profile
Re: Coding
« Reply #569 on: January 21, 2016, 03:43:21 PM »
factor is a fancy way of saying multiplied, atleast the way ive heard it used.

Ex: Training with Omnipotencian trainers ups your power by a factor of 1,000