Show newer

Recent activities.

I sincerely hope that I can choose something like IBM cloud to host my app, rather than blockchain contact.

But if you have to deal with zero-trust things, then I guess that's the only way to go. At least you have to trust IBM before you order their super expensive hyper secured server. But for blockchain, you can only trust the math (and a reliable network).

Neo N3 is the most developer friendly blockchain, but it still has a long way to go.

Making a real world blockchain application is much harder than get a excellence award in Hackathon.

Scent of a woman

Last time, also the first time I watched it is 4 years ago, I was 17 and not expect that much of unexpected words, but the end of the movie still makes me excited.

4 years later I watched it again, but still not understanding too much. I can get the story, a story about two men. There are rich detials in this movie, like the change of Slade's react to his grandchildren, those are making this movie vivid.

But for some detials, like after they drove the Ferrari, Slade across the street, i didn't quite understand why he must do that.

Maybe I'd watch again after another 4 years.

Also I don't know why the second pic is reversed, weird.

使用暴力,正义与之毫不相关
Violence is the opposite of justify

有组织的使用暴力,正义绝对与之没有任何关系
Organized violence is absolutely the opposite of justify

无论是个人、组织、政党,抑或是国家,大抵都是如此
That's true, for individuals, organizations and countries.

The game DeathStranding tought me a lot, that fraction is one of them.

没想到区块链这么难顶(

在电脑上看论文经常看串行(太丢人了

于是就打印出来看了
看了八年发现本以为没啥难度的东西还挺难懂

我傻了

这玩意儿咋操作

我就想换成iota而已
怎么这么复杂(阿巴阿巴

我买到币了!

准备买MIOTA
最近看论文发现这个币有点东西

以及炒币这个事情我似乎干不来啊
没有那个头脑的说(

Finally get through OpenCL's Hello World in Kotlin. Computing 3 million times sin and cos using GPU, total time is 456ms, 105ms is used to compute and read result back to CPU. On the other hand, CPU takes whole 891ms to compute cos and sin. Which I guess it's more convinced for me to just say "GPU is good for parallel computing". The result is more vivid than sentences.

After doing this, I though LWJGL's document on OpenCL is really bad. What all I referenced are Java test codes and C++ codes. And I rely on my experience a lot to debug it. It looks like JOCL's binding is more object oriented and more user friendly. But LWJGL is offering a integrated package of OpenGL, GLFW and OpenCL binding, which I guess I have to stick with it for now.

Besides auto converting Java bytecode to OpenCL kernel, Aparapi seems much easier to get start with. Without dealing a lot of data copying and buffer creating things, life is much simpler.

I might write a blog(in Chinese of course, since I'm a Chinese, maybe I'll commit this program to LWJGL as a OpenCL HelloWorld) to describe where you should take a good care with LWJGL's OpenCL binding, where I actually crash the JVM by doing it wrong. (BTW, using println to locate the crash point is way faster than step through XD)

Now I achieved 11+ fps with GLSL shaders to draw a colored circle. This circle has been sliced into 30e5 segments and CPU only give a index of each segment, then shader computes each vertex's coordinate and give them color.

I think that is a nice try for a OpenGL beginner.

Encountered a mind-blowing problem with OpenGL.

When I finally drew a circle using LWJGL with OpenGL, I tried moving my code from glBegin/glEnd calls to VBOs, and today I tried to make my code using shaders. And problem is here.

I draw a circle by slicing it into some segments and calculate the coordinates of points on the edge, then I can use GL_TRIANGLE_FAN or GL_LINE_LOOP to draw a circle. I randomly choose a color by assigning red equals cos(theta), where the i th theta is 2 * pi * i divided by total segments.

If I draw the circle using GL_LINE_LOOP, the color on the edge is correct, where only theta in mines pi to pi is positive number, thus given the red color, which should be the right hand side of the circle. Picture 1 is a compare that on the left I used GL_COLOR_ARRAY client state to draw color, on the right side I use shader but calculated cos before fragment shader(both in CPU part and vertex shader, they are same in result). In picture 2, I calculate cos value in the fragment shader by the theta passed by vertex shader. And it shows on the right of the picture, which is pretty odd.

I knew there other stages between vertex shader and fragment shader, but how they effect those color or theta value? Also on the left side of picture, color gradient given by fixed pipeline also seems a little bit weird.

BTW I have no ideas about where to find those documents. LWJGL doesn't have a detailed document on OpenGL(which I guess they of course not have one), and on the OpenGL side, the documents are just overwhelmed me...

Medicine always amazing

As soon as I take the first pill, my nose feels much better.

I want to draw a circle using lwjgl (with OpenGL as underlying library) as a hello world program

...and the jvm just keep crashing

Fine.

Anything related to C++ is hard.

This is why we can't have nice things

This video is about stuff: light bulbs, printers, phones and why they aren't better. Go to NordVPN.com/veritasium and use code VERITASIUM to get a 2-...

youtu.be/j5v8D-alAKE

New configuration

Dual screen works fine for me.

Another use of dual screen is laptop for gaming guides, monitor for switch XD

应该是我遇到过的最帅反派了
他竟然讲道理

史克威尔还是牛逼

「This bot will boost all posts it comes across from posters that have a low enough post rate.」

Fine.

New blade 15 arrived

expecting service as daily drive for next 5 years

Vultr Japan
using Vless protocol
YouTube 8K is smooooth

Vultr日本机房,YouTube看8K没问题
我该考虑换笔记本了,8k解不动了

my laptop is struggling when decode 8k YouTube videos

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.