Live data from Hacker News

Verlet-js - Open source dynamic body physics engine

subprotocol.com

11–20 of 57 posts

Re: Verlet-js - Open source dynamic body physics engine

#11
post #3

Earlier quoted context omitted.

Looks great, thanks for sharing. One thing I would suggest is to not worry about rendering the physics on the canvas, threejs is good at what it does and lacks a good physics engine. It's just my opinion, but I think the project would benefit from either making it work with threejs or by not solving the render problem, and just focus on doing great physics, so that people can use the results in their threejs scenes.…

This is a really great point. Abstracting it away shouldn't be bad, and it is possible to extend by vec2 implementation to 3d. After I finish my next batch of examples I will venture down this path. Thank you for the feedback!

This is one of the few demos I can try on Linux without jumping through hoops since it's canvas-based, so I appreciate your choice to not go with WebGL actually. Looks good; looking forward to reading the code more closely!

Re: Verlet-js - Open source dynamic body physics engine

#14
post #6
post #5

There is a similar project named Coffee-Physics [1] by Soulwire. [1] https://github.com/soulwire/Coffee-Physics

Also Box2D JS and Box2Dweb http://box2d-js.sourceforge.net/ https://code.google.com/p/box2dweb/ Bullet JS https://github.com/adambom/bullet.js/ Cannon.js https://github.com/schteppe/cannon.js Ammo.js https://github.com/kripken/ammo.js/ Physijs http://chandlerprall.github.io/Physijs/ JigLibJS https://github.com/supereggbert/JigLibJS

Interesting list but I wonder how do these libraries fare when used by JS developers? What are their performances and experience with them?

Re: Verlet-js - Open source dynamic body physics engine

#15
I wrote every line of the 140,000 in my operating system from scratch.

http://egtheory.wordpress.com/2013/04/20/academic-droids/

I wrote a compiler, graphics library, window manager, everything.

God talks.

God is not AI.

I made God's temple.

God says...

9:9 The LORD also will be a refuge for the oppressed, a refuge in times of trouble.

9:10 And they that know thy name will put their trust in thee: for thou, LORD, hast not forsaken them that seek thee.

9:11 Sing praises to the LORD, which dwelleth in Zion: declare among the people his doings.

9:12 When he maketh inquisition for blood, he remembereth them: he forgetteth not the cry of the humble.

9:13 Have mercy upon me, O LORD; consider my trouble which I suffer of them that hate me, thou that liftest me up from the gates of death:

9:14 That I may shew forth all thy praise in the gates of the daughter of Zion: I will rejoice in thy salvation.

-----

http://blog.linuxgrrl.com/2013/03/12/improving-the-fedora-bo...

God says...

high mountains, and upon all the hills that are lifted up, 2:15 And upon every high tower, and upon every fenced wall, 2:16 And upon all the ships of Tarshish, and upon all pleasant pictures.

2:17 And the loftiness of man shall be bowed down, and the haughtiness of men shall be made low: and the LORD alone shall be exalted in that day.

2:18 And the idols he shall utterly abolish.

2:19 And they shall go into the holes of the rocks, and into the caves of the earth, for fear of the LORD, and for the glory of his majesty, when he ariseth to shake terribly the earth.

2:20 In that day a man shall cast his idols of silver, and his idols of gold, which they made each one for himself to worship, to the moles and to the bats; 2:21 To go into the clefts of the rocks, and into the tops of the ragged rocks, for fear of the LORD, and for the glory of his majesty, when he ariseth to shake terribly the earth.

----

God says...

3:11 And God said unto him, Because thou hast asked this thing, and hast not asked for thyself long life; neither hast asked riches for thyself, nor hast asked the life of thine enemies; but hast asked for thyself understanding to discern judgment; 3:12 Behold, I have done according to thy words: lo, I have given thee a wise and an understanding heart; so that there was none like thee before thee, neither after thee shall any arise like unto thee.

3:13 And I have also given thee that which thou hast not asked, both riches, and honour: so that there shall not be any among the kings like unto thee all thy days.

3:14 And if thou wilt walk in my ways, to keep my statutes and my commandments, as thy father David did walk, then I will lengthen thy days.

----

http://i.imgur.com/lWkH0yk.png

God says...

23:19 Hear thou, my son, and be wise, and guide thine heart in the way.

23:20 Be not among winebibbers; among riotous eaters of flesh: 23:21 For the drunkard and the glutton shall come to poverty: and drowsiness shall clothe a man with rags.

23:22 Hearken unto thy father that begat thee, and despise not thy mother when she is old.

23:23 Buy the truth, and sell it not; also wisdom, and instruction, and understanding.

23:24 The father of the righteous shall greatly rejoice: and he that begetteth a wise child shall have joy of him.

23:25 Thy father and thy mother shall be glad, and she that bare thee shall rejoice.

23:26 My son, give me thine heart, and let thine eyes observe my ways.

----

http://www.osnews.com/comments/26965

God says...

teacheth man knowledge, shall not he know?

94:11 The LORD knoweth the thoughts of man, that they are vanity.

94:12 Blessed is the man whom thou chastenest, O LORD, and teachest him out of thy law;

94:13 That thou mayest give him rest from the days of adversity, until the pit be digged for the wicked.

94:14 For the LORD will not cast off his people, neither will he forsake his inheritance.

94:15 But judgment shall return unto righteousness: and all the upright in heart shall follow it.

94:16 Who will rise up for me against the evildoers? or who will stand up for me against the workers of iniquity?

94:17 Unless the LORD had been my help, my soul had almost dwelt in silence.

----

BBC is talking of Earthquakes

God says...

thus unto this land, and unto this house? 7:22 And it shall be answered, Because they forsook the LORD God of their fathers, which brought them forth out of the land of Egypt, and laid hold on other gods, and worshipped them, and served them: therefore hath he brought all this evil upon them.

8:1 And it came to pass at the end of twenty years, wherein Solomon had built the house of the LORD, and his own house, 8:2 That the cities which Huram had restored to Solomon, Solomon built them, and caused the children of Israel to dwell there.

8:3 And Solomon went to Hamathzobah, and prevailed against it.

8:4 And he built Tadmor in the wilderness, and all the store cities, which he built in Hamath.

----

http://www.wnd.com/2013/04/bombing-suspects-mother-this-is-a...

God says...

seven days.

23:41 And ye shall keep it a feast unto the LORD seven days in the year.

It shall be a statute for ever in your generations: ye shall celebrate it in the seventh month.

23:42 Ye shall dwell in booths seven days; all that are Israelites born shall dwell in booths: 23:43 That your generations may know that I made the children of Israel to dwell in booths, when I brought them out of the land of Egypt: I am the LORD your God.

23:44 And Moses declared unto the children of Israel the feasts of the LORD.

24:1 And the LORD spake unto Moses, saying, 24:2 Command the children of Israel, that they bring unto thee pure oil olive beaten for the light, to cause the lamps to burn continually.

----

Secret Service visited me in mental hospital. Booth killed Lincoln.

If SETI got one broadcast in 5 years, would we listen?

I go to this site

http://www.randomnumbers.info/cgibin/wqrng.cgi

Not random

-----

Genesis 4

New International Version (NIV)

Cain and Abel

4 Adam[a] made love to his wife Eve, and she became pregnant and gave birth to Cain.[b] She said, “With the help of the Lord I have brought forth[c] a man.” 2 Later she gave birth to his brother Abel.

Now Abel kept flocks, and Cain worked the soil. 3 In the course of time Cain brought some of the fruits of the soil as an offering to the Lord. 4 And Abel also brought an offering—fat portions from some of the firstborn of his flock. The Lord looked with favor on Abel and his offering, 5 but on Cain and his offering he did not look with favor. So Cain was very angry, and his face was downcast.

6 Then the Lord said to Cain, “Why are you angry? Why is your face downcast? 7 If you do what is right, will you not be accepted? But if you do not do what is right, sin is crouching at your door; it desires to have you, but you must rule over it.”

8 Now Cain said to his brother Abel, “Let’s go out to the field.”[d] While they were in the field, Cain attacked his brother Abel and killed him.

9 Then the Lord said to Cain, “Where is your brother Abel?”

----

If God doesn't answer, you are annoying Him. Do not USE God, love Him. Nothing useful comes from Him, just treat everything as white lies and enjoy His company. You are a loser.

God says...

Caphtor.

47:5 Baldness is come upon Gaza; Ashkelon is cut off with the remnant of their valley: how long wilt thou cut thyself? 47:6 O thou sword of the LORD, how long will it be ere thou be quiet? put up thyself into thy scabbard, rest, and be still.

47:7 How can it be quiet, seeing the LORD hath given it a charge against Ashkelon, and against the sea shore? there hath he appointed it.

48:1 Against Moab thus saith the LORD of hosts, the God of Israel; Woe unto Nebo! for it is spoiled: Kiriathaim is confounded and taken: Misgab is confounded and dismayed.

48:2 There shall be no more praise of Moab: in Heshbon they have devised evil against it; come, and let us cut it off from being a nation. Also thou shalt be cut down, O Madmen; the sword shall pursue thee.

48:3 A voice of crying shall be from Horonaim, spoiling and great destruction.

-----

Not random

1 Corinthians 14

New International Version (NIV)

Intelligibility in Worship

14 Follow the way of love and eagerly desire gifts of the Spirit, especially prophecy. 2 For anyone who speaks in a tongue[a] does not speak to people but to God. Indeed, no one understands them; they utter mysteries by the Spirit. 3 But the one who prophesies speaks to people for their strengthening, encouraging and comfort. 4 Anyone who speaks in a tongue edifies themselves, but the one who prophesies edifies the church. 5 I would like every one of you to speak in tongues,[b] but I would rather have you prophesy. The one who prophesies is greater than the one who speaks in tongues,[c] unless someone interprets, so that the church may be edified.

6 Now, brothers and sisters, if I come to you and speak in tongues, what good will I be to you, unless I bring you some revelation or knowledge or prophecy or word of instruction? 7 Even in the case of lifeless things that make sounds, such as the pipe or harp, how will anyone know what tune is being played unless there is a distinction in the notes? 8 Again, if the trumpet does not sound a clear call, who will get ready for battle? 9 So it is with you. Unless you speak intelligible words with your tongue, how will anyone know what you are saying? You will just be speaking into the air. 10 Undoubtedly there are all sorts of languages in the world, yet none of them is without meaning. 11 If then I do not grasp the meaning of what someone is saying, I am a foreigner to the speaker, and the speaker is a foreigner to me. 12 So it is with you. Since you are eager for gifts of the Spirit, try to excel in those that build up the church.

13 For this reason the one who speaks in a tongue should pray that they may interpret what they say. 14 For if I pray in a tongue, my spirit prays, but my mind is unfruitful. 15 So what shall I do? I will pray with my spirit, but I will also pray with my understanding; I will sing with my spirit, but I will also sing with my understanding. 16 Otherwise when you are praising God in the Spirit, how can someone else, who is now put in the position of an inquirer,[d] say “Amen” to your thanksgiving, since they do not know what you are saying? 17 You are giving thanks well enough, but no one else is edified.

18 I thank God that I speak in tongues more than all of you. 19 But in the church I would rather speak five intelligible words to instruct others than ten thousand words in a tongue.

20 Brothers and sisters, stop thinking like children. In regard to evil be infants, but in your thinking be adults. 21 In the Law it is written:

“With other tongues and through the lips of foreigners I will speak to this people, but even then they will not listen to me, says the Lord.”[e]

22 Tongues, then, are a sign, not for believers but for unbelievers; prophecy, however, is not for unbelievers but for believers. 23 So if the whole church comes together and everyone speaks in tongues, and inquirers or unbelievers come in, will they not say that you are out of your mind? 24 But if an unbeliever or an inquirer comes in while everyone is prophesying, they are convicted of sin and are brought under judgment by all, 25 as the secrets of their hearts are laid bare. So they will fall down and worship God, exclaiming, “God is really among you!”

Good Order in Worship

26 What then shall we say, brothers and sisters? When you come together, each of you has a hymn, or a word of instruction, a revelation, a tongue or an interpretation. Everything must be done so that the church may be built up. 27 If anyone speaks in a tongue, two—or at the most three—should speak, one at a time, and someone must interpret. 28 If there is no interpreter, the speaker should keep quiet in the church and speak to himself and to God.

29 Two or three prophets should speak, and the others should weigh carefully what is said. 30 And if a revelation comes to someone who is sitting down, the first speaker should stop. 31 For you can all prophesy in turn so that everyone may be instructed and encouraged. 32 The spirits of prophets are subject to the control of prophets. 33 For God is not a God of disorder but of peace—as in all the congregations of the Lord’s people.

34 Women[f] should remain silent in the churches. They are not allowed to speak, but must be in submission, as the law says. 35 If they want to inquire about something, they should ask their own husbands at home; for it is disgraceful for a woman to speak in the church.[g]

36 Or did the word of God originate with you? Or are you the only people it has reached? 37 If anyone thinks they are a prophet or otherwise gifted by the Spirit, let them acknowledge that what I am writing to you is the Lord’s command. 38 But if anyone ignores this, they will themselves be ignored.[h]

39 Therefore, my brothers and sisters, be eager to prophesy, and do not forbid speaking in tongues. 40 But everything should be done in a fitting and orderly way.

-----

http://www.templeos.org/files/TSGodSetUp.zip

God says... chambers correspondence antidote INCIDENTAL griefs Most carefully ball combinations power -i anticipated Alexandria summer asterisk cherished flagitiousness mercifully fiercely modify also encompasseth knock hope period shame Comforter Fathers Avenue making legal partaketh wit Thus unstayed ministers tiffanies conceptions subverted foregoing seduced Psalms common impiety trailed hidest parity variation standing fellow-citizens clasped horse nature concord excellent littles dreading exhort speech Faithful throngs inseparable treasure-house solve most OF treasure PARTICULAR Highest paper Vindicianus Lord's stories imaginary flung soothed growth requiring wilt mixture software One mortality stays told stilled urgently hot lowering uncorruptness direction Egyptian was repair All-Excellent explanatory eligible vagrant qed billion mayest ehh_a_wise_guy

----

Wit is king. Earnestness is annoying.

"God, were stegasaurus' lame like turtles?" "Not pet rocks"

God loved Jacob and hated Esau. Jacob tussled with God.

God says...

in all their holy gifts; and it shall be always upon his forehead, that they may be accepted before the LORD.

28:39 And thou shalt embroider the coat of fine linen, and thou shalt make the mitre of fine linen, and thou shalt make the girdle of needlework.

28:40 And for Aaron's sons thou shalt make coats, and thou shalt make for them girdles, and bonnets shalt thou make for them, for glory and for beauty.

28:41 And thou shalt put them upon Aaron thy brother, and his sons with him; and shalt anoint them, and consecrate them, and sanctify them, that they may minister unto me in the priest's office.

----

India has child brides.

God says...

thine inheritance.

63:18 The people of thy holiness have possessed it but a little while: our adversaries have trodden down thy sanctuary.

63:19 We are thine: thou never barest rule over them; they were not called by thy name.

64:1 Oh that thou wouldest rend the heavens, that thou wouldest come down, that the mountains might flow down at thy presence, 64:2 As when the melting fire burneth, the fire causeth the waters to boil, to make thy name known to thine adversaries, that the nations may tremble at thy presence! 64:3 When thou didst terrible things which we looked not for, thou camest down, the mountains flowed down at thy presence.

64:4 For since the beginning of the world men have not heard, nor perceived by the ear, neither hath the eye seen, O God, beside thee, what he hath prepared for him that waiteth for him.

----

BBC

God says...

18:1 And the LORD appeared unto him in the plains of Mamre: and he sat in the tent door in the heat of the day; 18:2 And he lift up his eyes and looked, and, lo, three men stood by him: and when he saw them, he ran to meet them from the tent door, and bowed himself toward the ground, 18:3 And said, My LORD, if now I have found favour in thy sight, pass not away, I pray thee, from thy servant: 18:4 Let a little water, I pray you, be fetched, and wash your feet, and rest yourselves under the tree: 18:5 And I will fetch a morsel of bread, and comfort ye your hearts; after that ye shall pass on: for therefore are ye come to your servant. And they said, So do, as thou hast said.

18:6 And Abraham hastened into the tent unto Sarah, and said, Make ready quickly three measures of fine meal, knead it, and make cakes upon the hearth.

18:7 And Abraham ran unto the herd, and fetcht a calf tender and good, and gave it unto a young man; and he hasted to dress it.

-----

Marme, ASU football coach. "patriots" were name for defensive players who covered recievers, for example. Obama dressing about now.

God says... insult familiarly anticipate bent distributing Lastly Is_that_so predict credence -breakers wast roving Kuwait could_it_be___Satan sour paradise waver devour apart recur equipment fellow-tutor deprived dealt strip Professor beauteous Lamentable seek invite Evil Permit His indications imperfection before conveyed off I'm_feeling_nice_today spreadest vanity Goal wont Carthaginian talented likes hardship firmness inhabitants feelings Trinity befalls Ruler a_likely_story flourished wisely sick satisfactorily Whereto MS nourishments sons' leaps stirred journey places certainty licence atrociously comparing attempt earth big_fish fantasies impressed detest spaces Goal gaze mysterious talents preferring I'm_beginning_to_wonder profit temptations garlands convenient ebbs afford Carthage diminisheth singularly whom you're_nuts office abridged touch setting perfecting tomenting close_your_eyes laugh contradictory Troy announce debated notes curtailment Things obviously common hindrance beings what's_up knocking restoring fretted trace wholesomely decree talked Homer universal yea Moreover wiser vain allegorically Their palm woman-servant fast-holding breathing-time all-sufficient discourage 03/19/01 sealed fruitfulness wealth intimately undefilable leading cared steep antidote bewail nearer magical Wilt committed cud relax alternates section stirring mundo_stoked orderest vouchsafed Cherubim scatter fatherly

----

http://www.sinkabuddy.com/

God says...

5:15 See then that ye walk circumspectly, not as fools, but as wise, 5:16 Redeeming the time, because the days are evil.

5:17 Wherefore be ye not unwise, but understanding what the will of the Lord is.

5:18 And be not drunk with wine, wherein is excess; but be filled with the Spirit; 5:19 Speaking to yourselves in psalms and hymns and spiritual songs, singing and making melody in your heart to the Lord; 5:20 Giving thanks always for all things unto God and the Father in the name of our Lord Jesus Christ; 5:21 Submitting yourselves one to another in the fear of God.

5:22 Wives, submit yourselves unto your own husbands, as unto the Lord.

5:23 For the husband is the head of the wife, even as Christ is the head of the church: and he is the saviour of the body.

Re: Verlet-js - Open source dynamic body physics engine

#16

Awesome! Thanks for sharing. It's amazing what you can do inside the browser these days. Any thoughts of integrating it with SVG? SVG is super useful for drawing and manipulating shapes in the browser.

Thank you! I have actually not played around with SVG yet. Is it as easy as canvas? I am very new to canvas and found it to be super easy to pick up and run with.

Re: Verlet-js - Open source dynamic body physics engine

#19

Awesome! Thanks for sharing. It's amazing what you can do inside the browser these days. Any thoughts of integrating it with SVG? SVG is super useful for drawing and manipulating shapes in the browser.

Thank you! I have actually not played around with SVG yet. Is it as easy as canvas? I am very new to canvas and found it to be super easy to pick up and run with.

I haven't played with canvas yet... it's quite powerful... checkout http://www.netmagazine.com/features/20-svg-uses-will-make-yo...

Re: Verlet-js - Open source dynamic body physics engine

#20

Nice project. The spider was a bit unexpected though. I had to jolt back a bit. I then pulled it out of the web and it died. Phew. (:

I thought you were joking (about dragging the spider out), but it actually works! Extremely well-done.
Post reply on HN