Cuberite Forum
Random Chitchat 2012-2016 - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Off Topic (https://forum.cuberite.org/forum-9.html)
+--- Forum: Off Topic Discussion (https://forum.cuberite.org/forum-10.html)
+--- Thread: Random Chitchat 2012-2016 (/thread-434.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487


RE: What we're doing - ThuGie - 10-27-2016

Couldn't you just upgrade your cpu instead ? if there was a usb like that it would probably be quite expensive, but funny to see.


RE: What we're doing - xoft - 10-27-2016

Why expensive? The RasPi Zero retails for around 150 CZK, I don't think the CPU-in-USB-stick would have to be much more costly. Someone even already did a RaspiZero USB stick. The only problem is in the software - providing a real compiler and a management tool for multiple such sticks.

Upgrading my CPU would mean upgrading the entire computer, since I'd have to upgrade the mobo and move from DDR3 to DDR4. Hence the cost would be quite large (50 000 CZK for a CPU, 10 000 CZK for a mobo, 8 000 CZK for the RAMs). And still I'd get a CPU that has no more than 10 cores, so 10 parallel compilations anyway. The USB sticks would be a viable option, even if costing 1 000 CZK for one, I could get 68 "cores" for the same price, or less cores for a (much) smaller price.

Just a random thought Smile


RE: What we're doing - ShadowCone - 10-27-2016

You mean stuff like PKCS#11 in cryptography?

That standard actually describes that you can pass data to a smartcard and you get decrypted data back. Keeping the key in-house.

What you mean is a compiling stick similar to the yubikey with some predefined compilers, where you can pass code and get a binary, right?

Optionally available for multiple architectures supporting native cross-platform builds


"oh you have the newest clang stick! Is it nice?" - "yes, much faster than the old gcc one"


RE: What we're doing - xoft - 10-27-2016

Something like that. But the stick could be upgradeable, the compilers wouldn't have to be predefined. If it runs Linux (like the RasPi Zero), it could just upgrade the compiler when requested.


RE: What we're doing - ShadowCone - 10-28-2016

Well, you would want to start a business, right?

I've digged a bit into this area. Running a general purpose processor and a linux operating system can get you the same speed as a Raspberry zero at 10$ cost. It's low cost, but your old cpu would do it faster than 10 sticks. Apart from that, you got 70 usb ports? Usb also has an exact limit somewhere at 140 where no more devices can be attached cause the host controller can't control them all. But that's a different story.

You would want to either go for ASIC's or FPGA's or similar stuff. Ultimately, ASIC's would be the best way, but that means the highest effort and the highest risk cause of relatively high cost unless you get really big sales numbers.

OK, FPGA's then. They are basically ASIC's but programmable, which makes it easier for semiconductor companies to produce and sell them (they wouldn't need to produce a line for one customer thus dumping the price). You can get relatively potent FPGA's for like 10$ per chip or dev kits for like 20-30$ as a USB pen with some ports on it.

Telling you that this 10$ chip runs with 500MHz and 128kbit of total memory might underwhelm you, considering the 1GHz processor of the pi zero and the 500mb memory, but these FPGA's can be highly optimized and put in some really small casings.

The main problem is: How the fuck am I going to run a compiler written in c++ on native hardware. Basically dropping the OS or reducing it to a minimum.

After all dropping the OS and rewriting the pi zero's firmware to run a compiler directly and solely might actually be the best go, as it involves the least amount of work. Gcc's pretty sophisticated after all. After all I don't like the idea of using a pi 0 because it's relatively big in size. It contains a lot more than just the needed stuff and makes so much overhead.

Last but not least I want to name the idea that just came to my mind. An FPGA alone won't solve the problem. Targeting around 50$ would give you enough money to think about a "quad core" array of 4 FPGA chips (two on the up and two on the down of the stick) as well as 2 ram chips (again one up and one down). But I have no idea if it's ever possible to adjust gcc or rewrite a valid c++ compiler for that thing. I mean, if you even could use standard gcc code as it's released, it wouldn't help you as you would need to optimize it in order to get it faster. After all, FPGA's aren't just make-it-faster devices. You just drop the OS and build the stuff that's crucially needed yourself.

For God's sake, please leave the cmake on your computer.


RE: What we're doing - xoft - 11-12-2016

After a long time, I decided to update to the latest Minecraft and actually play the game for a while. Suddenly there was a skeleton horse in my Overworld, and I was like "what? are those supposed to spawn?" I went to have a closer look and was taken by surprise when that horse transformed into three skeleton "riders of doom". Wtf did they implement???Big Grin


RE: What we're doing - ShadowCone - 11-12-2016

Loool didn't play standard minecraft for ages..... @xoft you read the post above? The main work would be programming a compiler for an fpga


RE: What we're doing - PureTryOut - 11-12-2016

Lol have you been living under a rock? Wink

They spawn when there is lightning. Sometimes if you get close, they get struck by lightning and transform into those "riders of doom". This does not happen always however Wink
It would be great to first get regular horses and horse riding working properly before you start implementing skeleton horses lol.


RE: What we're doing - xoft - 11-12-2016

Yeah, it's kinda shame that one of the main Cuberite devs hasn't actually started Minecraft for almost a yearTongue

I'm now reading up on the woodland mansion, the generator behind it will be a nice treat to solve Smile


RE: What we're doing - PureTryOut - 11-12-2016

If only my C++ was better, I would try to implement all the missing features Sad

The End has all kind of new stuff that hasn't been implemented yet as well.