Beep Boop Bip
Name
Email
Subject   (new thread)
Message
BB Code
File
File URL
Embed   Help
Password  (for post and file deletion)
  • Supported file types are: BMP, C, CPP, CSS, EPUB, FLAC, FLV, GIF, JPG, OGG, PDF, PNG, PSD, RAR, TORRENT, TXT, WEBM, ZIP
  • Maximum file size allowed is 10000 KB.
  • Images greater than 260x260 pixels will be thumbnailed.
  • Currently 950 unique user posts.
  • board catalog

File 16698735903.png - (1.55MB , 1920x1080 , SUPPA HAKKA.png )
3044 No. 3044 hide watch expand quickreply [Reply] [Edit]
Hello gentlemen, and welcome to the Advent of Code: TOHNO-CHAN Edition.

Post your solutions!
Ask questions!
Have fun!

Leaderboard: 1795791-8781b07c
36 posts and 21 images omitted. Click Reply to view.
>> No. 3084 [Edit]
File 167050104617.png - (290.73KB , 1540x3250 , carbon.png )
3084
I make hamsters seem intelligent.

>>3081
>yeah, I've been doing these on my phone so far, so I have a strong incentive to keep keystrokes per puzzle to a minimum
>I'll re-implement a few of these in assembly
Wow! T-C truly has all kinds.

>>3082
>I didn't like how I hard-coded the entire alphabet
Why is that?
>> No. 3085 [Edit]
File 167053148822.png - (695.48KB , 1620x3804 , carbon.png )
3085
I just sort of wrote what first came to mind for part 1 and thought I'd have to rewrite it into something more efficient, but turns out it's fine even for the large input.

I guess it wasn't that hard, but it still took me a while...
>> No. 3086 [Edit]
File 167054078417.png - (82.09KB , 610x878 , aoc5-1.png )
3086
>>3084
>T-C truly has all kinds.
oh don't worry, I'll get filtered by some math-heavy puzzle soon enough.

>Why is that?
Iterating through a long hard-coded sequence of characters is much less efficient than doing a small number of arithmetic operations.
On the flip-side, it would always work even if Eric decided to change the priority values of the symbols around, and not just in the special case where the priority symbols are in alphabetic order.
>> No. 3087 [Edit]
File 16705532136.png - (23.93KB , 517x228 , aoc6-2.png )
3087
>>3065
>Pretty easy today
yeah day 6 was definitely easier than the crane thingy

File 150448609042.jpg - (110.47KB , 1280x720 , mpv-shot0028.jpg )
1547 No. 1547 hide watch quickreply [Reply] [Edit] [First 100 posts] [Last 50 posts]
It doesn't matter if you're a beginner or Dennis Ritchie, come here to talk about what you are doing, your favorite language and all that stuff.
I've been learning python because c++ was too hard for me (I'm sorry nenecchi I failed to you), reached OOP and it feels weird compared to the latter one, anyway I never got it completely.
311 posts and 71 images omitted. Click Reply to view.
>> No. 3040 [Edit]
>>3038
Thanks for participating!
I didn't know you could name leaderboards. But I was going to make a new thread, assuming we had gotten enough people, on the 30th, and have the information to join the leaderboard there.
>> No. 3042 [Edit]
File 166891525337.png - (131.45KB , 894x1041 , intcode_interpreter.png )
3042
>>3031
>You won't be judged for not using Haskell
Using Haskell isn't hard, it just has a lot of stupid syntax that you have to remember.
Last time I did AoC I wrote most solutions in ARM assembly using no library functions other than syscalls, that was pretty fun.

If you want a good score though, best thing would be to use something like Python or Ruby and get familiar with the libraries for common algorithms. From what I saw, the solutions for the first 7 puzzles or so of most of the top scorers basically looked like:
import "solution" solution.algo("input_data.txt")


I myself would probably use Clojure now, it's kind of my new favorite language. But I probably won't have time to participate this year around, unfortunately.
>> No. 3062 [Edit]
File 167026805814.jpg - (293.17KB , 850x1202 , large.jpg )
3062
I wrote an IRC bot that posts a youtube video's title and description. IRC has kind of messy documentation, and I had to rely on a lot of trial and error. It works though.
https://gitgud.io/nvtelen/chii

Post edited on 6th Dec 2022, 6:10am
>> No. 3068 [Edit]
File 167035604848.jpg - (606.63KB , 2252x1780 , 3433a45becd7a46dc337b00c3b7ed38d.jpg )
3068
>>3062
It can report the weather now too.

File 129592276815.jpg - (141.99KB , 716x742 , millenium_tan.jpg )
165 No. 165 hide watch quickreply [Reply] [Edit] [First 100 posts] [Last 50 posts]
Need help with computers? Post your questions here.

ME-tan will do her best to help (with the help of other users, ofc).
448 posts and 61 images omitted. Click Reply to view.
>> No. 3035 [Edit]
My computer likes to crash when starting a program in full screen. It's pretty annoying and I'm not certain why it happens. My guess is that it has something to do with the GPU drivers. They are up to date, but I'm not certain I really want them to be current while using Windows XP. Maybe that's a stupid idea, I wouldn't know. Another thought is that the PSU might be inadequate with the upgrades the machine has received. It is labeled at 250W.
It's not a consistent thing and happens with anything when going into full screen mode occasionally.
>> No. 3036 [Edit]
>>3035
>Windows XP
There's your problem.
>> No. 3037 [Edit]
>>3036
Why not run windows 7 and then run windows xp in a vm? Windows graphics stack changed quite a bit from xp to windows 7 (aero compositing, direct2d, etc.)
>> No. 3041 [Edit]
>>3037
>Why not run windows 7 and then run windows xp in a vm?
For fun, mostly.

File 161811634729.jpg - (7.33MB , 1600x2300 , eefdb99c068cdc0d245e8a15f77d2223.jpg )
2260 No. 2260 hide watch expand quickreply [Reply] [Edit]
Surprised this doesn't exist yet.

So what do you think the future of AI is? Do you think eventually, we'll be able to give an AI general instructions and have it program something based on that? Like "write a play station 5 emulator" and then it would actually be able do it? Would that be a good or bad thing?
24 posts and 7 images omitted. Click Reply to view.
>> No. 2996 [Edit]
>>2267
>since it just apes what came before
So it's just like humans.
>> No. 3015 [Edit]
>>2996
(pun intended?)
I think the success of transformer and diffusion models shows that "generalizability" is actually a lot easier to get than we originally thought. If you think about it, it's absolutely mind-bending that transformer models which were essentially trained solely to predict the next token can do so well on a wide-variety of general-language tasks. There's no reason to think a priori that this would be the case, and yet for some reason it does, and it even generalizes well.
>> No. 3028 [Edit]
File 166854032979.png - (348.59KB , 512x512 , 1668022144885006.png )
3028
i'm going to train a hypernetwork intensely on my favorite ntr artist until the style is indiscernable, then i'm going to build up a massive hoard of fanart of his best story without releasing any online, and finally i'm going to collect the very best few dozen or so and send them to him along with the network and instructions on its use as thanks for his splendid work; ai will soon do for 2d art what the steam engine did for manual labor (luddite cybermobs are already gathering) and with this i hope he'll get a good head start as a manual-automatic bicompetent artist capable of once-mythical production rates while the technology is still in its relative infancy, before the value of his hard-earned skill tanks and before the visual art market (including flawless 2d animation) shifts sharply in favor of creative-conceptual thinking over budget or artisanal capability, thus becoming oversaturated at levels previously unimaginable
ai lies on the path to GOD
>> No. 3030 [Edit]
>>3028
>train a hypernetwork
A what now? I'm assuming it's as defined in [1, 2]. The term as used in an ML context was originally proposed in 2016 for RNN/LSTM architectures [3], and [2] states point-blank that their method isn't the same thing, so I don't know why they co-opted the same term. Although if you squint I guess they accomplish the same thing, basically doing fine-tuning not by changing the weights of the original model directly but instead training a smaller network that then modifies the hidden states of the larger network. I'd be curious to know how exactly this works. This seems equivalent to including the smaller hypernetwork's parameters in the original model itself and then just doing fine-tuning with all except the hypernetwork's parameters frozen. Seems like a $10 word for a 10¢ idea to me.

[1] https://bennycheung.github.io/stable-diffusion-training-for-embeddings
[2] https://blog.novelai.net/novelai-improvements-on-stable-diffusion-e10d38db82ac
[3] https://arxiv.org/abs/1609.09106v4

File 135734470139.gif - (24.00KB , 301x322 , lolifox.gif )
418 No. 418 hide watch expand quickreply [Reply] [Edit] [Last 50 posts]
Let's turn this thread into a browser war!
87 posts and 12 images omitted. Click Reply to view.
>> No. 3023 [Edit]
>>3022
This is beyond parody.
>> No. 3024 [Edit]
I've hated everything about firefox since their quantum update, but I guess it beats using chrome or IE, or one of those half broken offshoots.
>> No. 3025 [Edit]
>>3024
I've given Brave a try, and it's pretty nice. For one reason or another, Firefox feels like home to me, but that's just an emotional attachment.
>> No. 3026 [Edit]
>>3025
Every chromium fork has the same problems. The obscenely, overly tall, non-adjustable tabs, designed for touch screens, and the god awful management of history and bookmarks. Some, like Edge, improve the latter two problems a little bit, but not substantially enough.

And then there's the whole "delete history older than 3 months" shit, which I've complained about many times. Forks also seem to guzzle up even more ram than vanilla chrome does.

File 16677815986.png - (120.33KB , 1920x1080 , 2018-09-15.png )
2992 No. 2992 hide watch expand quickreply [Reply] [Edit]
Well, I want to wanna learn. Blows my mind reading some of these threads where it's like I'm reading another language. The whole thing is overwhelming, which only intrigues me more. How did you get started with coding/internet languages/programming. I don't even know what to call it, see? Where does one begin? I remember buying a C64 a few years ago with the goal of learning basic and creating a very simple game like the protagonist in RPO, but I gave up pretty fast and sold the god damn thing. Bought a Vic-20 too for some reason, but I still have that. Think I was just obsessing over old computers at the time. Had some experience with python in my physics class, but that didn't last long cuz I dropped that major the next semester lol.

Please, I at least want some kind've a general idea about what the fuck you guys are saying sometimes. It's so intimidating, but fascinating. Like I know another reality exists within my own, but I can't perceive or interact with it in any meaningful way. Where do I start?
2 posts omitted. Click Reply to view.
>> No. 3010 [Edit]
File 166787030688.jpg - (47.06KB , 500x336 , tumblr_c0434cec864285858e5ea221d159ee7e_e6bec17b_5.jpg )
3010
>>2994
Thanks for the advice, that physics class was 5 years ago, so I doubt I'll even remember anything from python. I'll try to find something I like.

Yes, a few years ago I had an obsession with vintage computers. I think it spawned from an obsession with the vaporwave genre, but it was very genuine and I still am fascinated by the aesthetic of older computers till this day. I forgot to mention I also bought a Toshiba 3100/20 that has some error message I was gonna fix, but never did as finding info about that computer isn't easy. I still have that computer too. Are there any subtopics pertaining to that kinda thing? I doubt I still remember anything about python at this point.
>> No. 3011 [Edit]
>>3010
>subtopics pertaining
You mean restoring vintage computers? There's a decent amount of people into retrocomputing (not on TC but elsewhere on the internet), and you don't even necessarily have to know anything about programming to do that. In fact having some soldering knowledge will probably be more useful since you'll probably need to replace bad capacitors and such. But I'm not sure what people do with them once they get it running.
>> No. 3012 [Edit]
>>3011
Good point haha, I guess the only real thing you can do is mess with software formats that aren't compatible with today's computers. I have a lot of old floppy discs I'd love to check out. Maybe even buy some vintage games and run them on their original hardware for that authenticity. I'm not too sure haha, but I know for sure it spikes my interest. What interested you and what subtopic do you thrive in?
>> No. 3013 [Edit]
>>3012
>what subtopic do you thrive in?
I wouldn't say I'm interested in a particular subfield more than any other, I find all of them interesting and will eagerly seek out opportunities to learn more about them.

>What interested you
I don't really remember. I think it's just that I spend a lot of time on the computer, so it was a motivation to know enough to be able to have unilateral control over my environment. And to be able to confidently mess around with things, you need to know how they work.

File 14269825194.gif - (43.50KB , 120x90 , sAWJYKX.gif )
1280 No. 1280 hide watch expand quickreply [Reply] [Edit] [Last 50 posts]
A bit late with this one, but whatever. To start off:

https://torrentfreak.com/utorrent-quietly-installs-riskware-bitcoin-miner-users-report-150306/
87 posts and 13 images omitted. Click Reply to view.
>> No. 2989 [Edit]
>>2988
I believe it's developers' job to use an api properly. The api should not be responsible for hand-holding the developer in their usage of memory. Vulkan allowing a developer to do things improperly, is clearly different from "how Vulkan works". The latter implies Vulkan is at fault.

Post edited on 6th Nov 2022, 11:31am
>> No. 2990 [Edit]
>>2989
If it's easy to misuse an API though then to me that's an issue with the api. Yes in theory you can blame the developer but at the end of the day if even Google engineers can't use it properly, then it's just bad api design. And you can blame the developers all you like, at the end of the day the user is going to suffer.
>> No. 2991 [Edit]
>>2990
You're forgetting how complicated Chromium is(obscenely so). The more complicated something is, the more likely there will be bugs regardless of implementation. It says little about the api in simpler use cases, especially since it's a work in progress hidden behind experimental option flags.
>> No. 3005 [Edit]
More math than technology, but seems like the best thread: https://arxiv.org/abs/2211.02515

Assuming it's not retracted (which it probably won't be given that he's the one who worked on the bounded prime gaps conjecture) this should have interesting implications on GRH and analytic number theory as a whole

Post edited on 7th Nov 2022, 1:28pm

File 163077248017.jpg - (1.25MB , 974x1324 , 19cd3e1a0cd2d6965d56358ed1c09dac.jpg )
2400 No. 2400 hide watch expand quickreply [Reply] [Edit]
Lets talk about tools. Text editors, IDEs, color schemes, version control, etc. What does tohno use?
18 posts and 6 images omitted. Click Reply to view.
>> No. 2605 [Edit]
>>2604
Can't argue with $100, anon.
>> No. 2984 [Edit]
File 166757231025.jpg - (415.60KB , 1132x1600 , 5c6bad68b30f33e9ecbeaf84571f8964.jpg )
2984
>>2437
It's been a while. I've had to reinstall my environment multiple times since this post. Micro has given me quite a bit of trouble with its clipboard support. Maybe I figured it out, but I don't feel like doing that again.

So I switched to neovim, and that was okay for a bit. It now hangs for a few seconds after quitting though(only in wsl though), and I don't know why. I don't have any plugins and my config is 4 lines long. I also find the plugin system to be a bit of a clusterfuck. And I don't like the fixation they have on lua.

So now I'm trying Kakoune. It's nice and relatively familiar. The select first, act second model is cool. Unfortunately, there's no windows port, but I can just keep using neovim there. And I would say its obscurity is a negative.

There's also Helix, which is cross-platform, but I don't like how it's made in Rust, and has all these dependencies. My confidence in it is pretty low considering they've decided to implement their plugin system in webassembly of all things.

Post edited on 4th Nov 2022, 7:47am
>> No. 2985 [Edit]
>>2984
Use ed man, ed!
https://www.gnu.org/fun/jokes/ed-msg.en.html
>> No. 2986 [Edit]
>>2985
This one always gets me. Thanks for posting it.

File 129830710196.jpg - (179.83KB , 1024x638 , BanchouShark.jpg )
1002 No. 1002 hide watch expand quickreply [Reply] [Edit]
so is it like possible to create an algorithm to calculate any function using only addition and subtraction.
I tried my hand at that the day and I couldn't find a way to calculate multiplication that didn't involve integers(2.45*3.68 for example) as I couldn't find a way to move a number's decimal place using only addition or subtraction.
what do you guys think
am I missing something here?
6 posts omitted. Click Reply to view.
>> No. 2813 [Edit]
>create an algorithm to calculate any function using only addition and subtraction.
If you allow only linear functions, your output can only be a linear function of the input. But add simple non-linearity (e.g. in the form of ReLU function) and yes you can approximate any (*) function to any precision you'd like. It's basically what neural networks do. https://en.wikipedia.org/wiki/Universal_approximation_theorem

(*) Computable, continuous, and probably differentiable if you want to be pedantic.

Post edited on 27th Jul 2022, 7:22pm
>> No. 2977 [Edit]
2,45*3.68 = 0,0001 x (245*368)
>> No. 2978 [Edit]
>>2977
You can obviously carry out any finite precision arithmetic (and in practice, finite precision arithmetic is all there is) if you track the precision yourself, since that's how computers do it. But that's not strictly speaking "only addition and subtraction" as I interpreted the question since you track the pair (significand, precision). Although I suppose it's a minor point since even rational numbers are constructed as equivalence classes.

Even allowing linear functions isn't enough for arbitrary computation (since the output can only be linear in the input), but with non-linearity added we can approximate functions to arbitrary precision we choose. If we go further and allow feedback, then we just have turing machines and we can compute any computable function.
>> No. 2979 [Edit]
>>2978
You might also be interested in the complexity class p/poly. The circuit model of complexity is in some sense more "natural" to analyze since it's a simple feed-forward network. Of course the limitation is a circuit has fixed number of inputs, so the language decided by a given circuit has finite, bounded string length. If you loosen this by allowing circuit families, you get p/poly which is stronger than p.

There are very interesting theorems here, e.g. bounded-depth circuits using AND, OR, NOT, and mod-p gates can't compute mod q, for p and q distinct primes. (Razborov Smolensky theorem). This can be considered as a more general-case of the fact that parity is not in AC0 (try it out, computing parity for an n-bit input requires log-depth circuits!).

What's interesting is that if you allow mod-6 gates you get surprising power, and so far not much is known about what's not solvable. A somewhat recent result (2010-ish) is nexp not in acc0[m] for any m, i.e. it's only recently that we've been able to prove bounded-depth circuits with boolean and modulo gates can't decide languages in NEXP.

The above can be extended to arithmetic circuits as well, which are essentially what simple neural networks are. See https://core.ac.uk/download/pdf/4894171.pdf

Post edited on 31st Oct 2022, 2:29am

File 166597370150.jpg - (3.43MB , 3285x4869 , f.jpg )
2948 No. 2948 hide watch quickreply [Reply] [Edit]
I'm considering switching to an immutable OS because I want to be able to move my workstation around devices with as little delay as possible, and without needing to connect to the internet to install anything. Alowing me to start working ASAP.
Both Fedora Silverblue and NixOS seem like good options. Someone told me I could also use a functionality of the BTRFS filesystem to create snapshots of my machine.
My current setup consists of:
>core programs (docker, VirtualBox, a text editor, compilers, interpreters, etc)
These probably won't change in a while.
>configs, data, source code
These change, and need to be synced often. Specially the code, which needs to be always up-to-date and synced with the remote repo.

I want to know if an immutable OS would allow me to make portable snapshots of my OS I could easily deploy to another machine, and if any of these (besides Silverblue) has first-class support for containerized applications.
>> No. 2949 [Edit]
>move my workstation around devices with as little delay as possible, and without needing to connect to the internet to install anything
From what I understand NixOS can allow you to define your userspace environment declaratively, but that doesn't guarantee it will remain in sync between machines. How many devices do you have that this is a major issue? I'd probably use nix as the package manager to set up userspace however you like, then keep all configs/data/source-code on a central NAS.

But another simpler option is to avoid state syncing entirely and go full-on with thin-client approach. Dedicate the beefiest machine to being the host where all data and compute will occur and use the other machines only as remote terminals (e.g. emacs tramp, or go fancier with vscode remote/jetbrains projector).
>> No. 2950 [Edit]
>I'd probably use nix as the package manager to set up userspace however you like, then keep all configs/data/source-code on a central NAS.
Yes, this is my plan too. Using rsync to keep my data updated. It's way faster than copying the entire backup.
>But another simpler option is to avoid state syncing entirely and go full-on with thin-client approach
This would be a problem outside my local environment because I would depend on the network if I work on a remote machine.

>How many devices do you have that this is a major issue?
TL;DR: I work with brittle hardware so I have to setup my workstation on a new HDD 3+ times every week.

File 133699565596.jpg - (74.31KB , 800x600 , 1281122789294.jpg )
931 No. 931 hide watch expand quickreply [Reply] [Edit]
Lets start a game where we try to answer a science question, and also think up other questions. The aim is to make a question that the average untrained but curious tohnochanner can think about and also have a bit of fun discussing things. Try not to make questions which require too much specialised technical knowledge. Also note this is not just a place to get your homework questions answered.

First question: from an evolutionary point of view, is it possible for a species of parasite to completely wipe out its host species?
43 posts and 8 images omitted. Click Reply to view.
>> No. 2931 [Edit]
File 16650807518.jpg - (66.69KB , 749x774 , peace was never an option.jpg )
2931
Could someone use the Joule–Thomson effect to create a showerhead whose water runs off a capillary tube and thus gets colder than room temperature without using any additional source of power or something? You would use a capillary tube for the water to run through thus getting colder.
>> No. 2932 [Edit]
>>2931
I don't understand the setup, how exactly do you plan to use the capillary tube to cool liquid water? There's a joule thompson inversion point where expansion ends up heating the fluid rather than cooling it (and I believe for liquid water it is as such), so exiting the capillary tube the water would end up heating slightly.

Post edited on 6th Oct 2022, 1:28pm
>> No. 2943 [Edit]
>>2932
I discovered this technique while reading about fridges. Yes, it works on water. I forgot to factor the exiting of the fluid from the capillary tube. In this setup the water would cool but would heat up on the person's head, just as it leaves the tube. It doesn't work.
>> No. 2944 [Edit]
>>2943
>Yes, it works on water
Well the effect exists for all fluids, but for liquid water expansion doesn't result in cooling. See [1]

>Although the Joule–Thomson coefficient is not a thermodynamic property for itself, the effect is important for practical purposes and values for the Joule–Thomson coefficient help to realize the changes occurring during processes. From the table, it can be seen that during expansion of liquid water the temperature increases. In the gaseous and near-critical state, temperature of water during expansion drops.


Also it should be noted that (as far as I understand) the joule-thomson effect doesn't play a major part in the refrigeration cycle, it's the phase changes between liquid/gas of the coolant that are responsible for most of the heat transfer to/from the environment.

[1] https://www.sciencedirect.com/topics/chemistry/joule-thomson-effect

Post edited on 9th Oct 2022, 12:09pm

View catalog

Delete post []
Password  
Report post
Reason  
Previous [0] [1] [2] [3] [4] [5] [6] [7] [8]


[Home] [Manage]



[ Rules ] [ an / foe / ma / mp3 / vg / vn ] [ cr / fig / navi ] [ mai / ot / so / tat ] [ arc / ddl / irc / lol / ns / pic ] [ home ]