投稿時間:2022-04-11 17:33:54 RSSフィード2022-04-11 17:00 分まとめ(42件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] ユニクロ、即完売した「3WAY スマートバッグ」を再販 価格や薄さがSNSで話題に https://www.itmedia.co.jp/business/articles/2204/11/news123.html itmedia 2022-04-11 16:30:00
IT ITmedia 総合記事一覧 [ITmedia Mobile] Spigen Korea、スマホ向け充電器&ケーブルを最大30%オフに 14日まで https://www.itmedia.co.jp/mobile/articles/2204/11/news126.html amazon 2022-04-11 16:30:00
IT ITmedia 総合記事一覧 [ITmedia PC USER] サンワ、簡単にコンセントから抜ける“楽抜け構造”を採用したACタップ https://www.itmedia.co.jp/pcuser/articles/2204/11/news122.html itmediapcuser 2022-04-11 16:17:00
IT ITmedia 総合記事一覧 [ITmedia News] エディオングループに不正アクセス 約8万件のデータが消される 流出の可能性も https://www.itmedia.co.jp/news/articles/2204/11/news121.html itmedia 2022-04-11 16:15:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] グランピングが人気の宿ランキング、1位は山梨県の……? https://www.itmedia.co.jp/business/articles/2204/11/news113.html bywbf 2022-04-11 16:07:00
IT 情報システムリーダーのためのIT情報専門サイト IT Leaders Sansan、画面に「企業DB」タブを新設、帝国データバンクの企業情報を標準で閲覧可能に | IT Leaders https://it.impress.co.jp/articles/-/22993 itleaderssansan 2022-04-11 16:47:00
python Pythonタグが付けられた新着投稿 - Qiita mcrconとdiscord.pyを用いてdiscordからminecraftサーバに出力する https://qiita.com/mutchan1k/items/15d31f13874b0bb5fd14 discord 2022-04-11 16:37:58
python Pythonタグが付けられた新着投稿 - Qiita Pythonで特殊ディレクトリの絶対パスを取得する https://qiita.com/shirokuma1101/items/a41d35b2bda00f4996f9 getfolderpathmyvideosrea 2022-04-11 16:27:15
python Pythonタグが付けられた新着投稿 - Qiita テスト投稿 https://qiita.com/ml_memo/items/12f52087f0e96014c1bc yaxmsedisplays 2022-04-11 16:06:43
python Pythonタグが付けられた新着投稿 - Qiita 知識ゼロなのでとりあえずPythonをインストールしてみた。 https://qiita.com/_starfields_/items/cec6efc796e27acfe8e8 関係 2022-04-11 16:04:29
js JavaScriptタグが付けられた新着投稿 - Qiita AWSでWebサイトを作ってみた(3) フロントエンド・キーワード抽出編 https://qiita.com/alksoho/items/d29239cf48efe18fbe2e wordpress 2022-04-11 16:53:04
js JavaScriptタグが付けられた新着投稿 - Qiita 【6日目】メモ帳アプリの作成 [3] https://qiita.com/ri6616/items/8640b5a06e0313d94810 localstrage 2022-04-11 16:01:06
AWS AWSタグが付けられた新着投稿 - Qiita SPA+LaravelをAWS ECSへデプロイするのにしんどかったところ https://qiita.com/reopa_sharkun/items/298ae40947cd5f796cdd awsecs 2022-04-11 16:53:13
AWS AWSタグが付けられた新着投稿 - Qiita AWSでWebサイトを作ってみた(3) フロントエンド・キーワード抽出編 https://qiita.com/alksoho/items/d29239cf48efe18fbe2e wordpress 2022-04-11 16:53:04
golang Goタグが付けられた新着投稿 - Qiita Go 言語スプレッドシートライブラリ:Excelize 2.6.0 がリリースされました https://qiita.com/xuri/items/cbd23a243921c9d45aa6 microso 2022-04-11 16:42:58
技術ブログ Developers.IO 【アップデート】Mackerelでタグを利用したロールの割り当てが可能になりました https://dev.classmethod.jp/articles/mackerel-assigning-roles-using-tags/ ashissan 2022-04-11 07:48:12
海外TECH DEV Community Does Java 18 finally have a better alternative to JNI? https://dev.to/oktadev/does-java-18-finally-have-a-better-alternative-to-jni-1ka9 Does Java finally have a better alternative to JNI Java was released last month March and with it comes the second incubator of the Foreign Function amp Memory API so let us look at the state of Foreign Function Interface FFI in Java If you would prefer to follow along by watching a video here s the recording of my FOSDEM talk on this topic from the the OktaDev YouTube channel What is a Foreign Function Interface A foreign function interface is the ability to call functions or routines written in one programming language from another programming language This is generally used to access native functions or programs on the host OS written in low level languages like C Most languages provide some form of this feature out of the box The term originated from common LISP but it s known by different names in different languages Most languages use the C C calling conventions for FFI and natively support calling C C functions Why is Foreign Function Interface needed Most of the use cases for FFI are around interacting with legacy apps and accessing host OS features or native libraries But the recent surge in machine learning and advanced arithmetics make FFI even more necessary These days we use foreign functions for an array of use cases some of which are Interacting with legacy appsAccessing features not available in the languageUsing native librariesAccessing functions or programs on the host OSMulti precision arithmetic Matrix multiplicationsGPU and CPU offloading Cuda OpenCL OpenGL Vulcan DirectX and so on Deep learning Tensorflow cuDNN Blas and so on OpenSSL V and many more A brief history of FFI in JavaBefore we dwell on the current state of FFI in Java let s look at a brief history of FFI in Java Java Native Interface JNI For a long time the standard for FFI in Java has been Java Native Interface JNI and it is notorious for being slow and insecure If you are used to other languages like Rust Go or Python you probably know how easy and intuitive it is to use FFI in them and that leaves something to be desired in Java Even to do a small native call using JNI you have to do a considerable amount of work and it could still go wrong and end up being a security issue for the app The main issues with JNI are its complexity to use and the need to write C bridge code manually These issues can lead to unsafe code and security risks This can also cause performance overhead in some situations The performance and memory safety of the JNI code depends on the developer and hence reliability will vary ProsNative interface access for C C AssemblyFastest solution in JavaConsComplicated to use and brittleNot very secure and could cause memory safety issuesOverhead and performance loss is possibleDifficult to debugDepends on Java developers to write safe C binding code manuallyYou need to compile and ship the C code for each target platform Java Native Access JNA The complexity of JNI has given rise to some community driven libraries that make it simpler to do FFI in Java Java Native Access JNA is one of them It s built on top of JNI and at least makes FFI easier to use especially as it removes the need to write any C binding code manually and reduces the chances of memory safety issues Still it has some of the disadvantages of being JNI based and is slightly slower than JNI in many cases However JNA is widely used and battle tested so definitely a better option than using JNI directly ProsNative interface access for C C AssemblySimpler to use compared to JNIDynamic binding no need to write any C binding code manuallyWidely used and mature libraryBetter cross platform supportConsUses reflectionBuilt on top of JNIHas performance overhead and can be slower than JNIDifficult to debug Java Native Runtime JNR Another popular option is Java Native Runtime JNR Though not as widely used or mature as JNA it s much more modern and has better performance than JNA for most use cases However there are some cases where JNA might perform better ProsNative interface access for C C AssemblyEasy to useDynamic binding no need to write any C binding code manuallyModern APIComparable performance to JNIBetter cross platform supportConsBuilt on top of JNIDifficult to debug Enter Project PanamaProject Panama is the latest Java project aiming to simplify and improve FFI in Java and as part of this many proposals are currently being incubated Let s take a look at some of the active proposals and how they will work and let s see if we finally get proper native FFI in Java Foreign Memory Access APIThe first piece of the puzzle is the foreign memory access API It was first incubated in JDK and after three incubations a new JEP combined it into the Foreign Function amp Memory API API to safely and efficiently access foreign memory outside of the Java heapConsistent API for different types of memoryDoes not compromise JVM memory safetyExplicit memory deallocationInteracts with different memory resources including off heap or native memoryJEP First incubator in JDK JEP Second incubator in JDK JEP Third incubator in JDK Foreign Linker APIAnother essential part that makes FFI possible is Foreign Linker API This was first incubated in JDK and was combined into Foreign Function amp Memory API in the next revision API for statically typed pure Java access to native codeFocuses on ease of use flexibility and performanceInitial support for C interopCalls native code in a dll so or dylibCreates a native function pointer to a Java method that can be passed to code in a native libraryJEP First incubator in JDK Vector APINext is the vector API which is crucial for FFI especially in machine learning and advanced computations API for reliable and performant vector computationsPlatform agnosticClear and concise APIReliable runtime compilation and performanceGraceful degradationsJEP First incubator in JDK JEP Second incubator in JDK JEP Third incubator in JDK Foreign Function amp Memory APIFinally the Foreign Linker API amp Foreign Memory Access API has evolved together to become the Foreign Function amp Memory API It was first incubated in JDK Evolution of the Foreign Memory Access API and the Foreign Linker APISame goals and features as the original two ease of use safety performance generality JEP First incubator in JDK JEP Second incubator in JDK JEP First preview expected in JDK jextractAnd finally there is the fantastic jextract tool While it s not an API or part of the JDK itself it is an essential tool for Project Panama A simple command line toolGenerates a Java API from one or more native C headersShips with OpenJDK Panama builds at the moment and will be part of the JDK in the futureMakes working with large C headers a cakewalkFor example to generate a Java API for OpenGL with jextract you could simply run the following on a Unix like OS jextract source t org opengl I usr include usr include GL glut h JNI vs PanamaSince JNI is the current standard and Panama aims to replace that it makes sense to compare the two Let s take a simple example of calling the getpid function from the standard C unistd header JNIAs you can see here there are precisely six steps to make this simple native call using JNI You start by writing a Java class that declares the native method Then you use javac to generate a header file and a C class for this These are the native bindings Next you will implement the C class Remember these are Java developers writing C code This means you must write memory safe C code which has access to the entire JVM via the JNIEnv variable passed to the C class In many scenarios the developer may not have much experience in C So that will be fun or more like a security nightmare Next you will compile the C code into a platform specific dynamic library and determine where to place that binary Pray if you must that all this works without exposing the app to a security vulnerability Then you will load this into the Java class and compile and run the class and hopefully it works Ooof This was just a simple getpid call imagine writing something like an OpenGL interface or GPU offloading program using JNI PanamaUsing the new Panama APIs you can do the same thing in two different ways either by manually looking up and loading the native function or using the jextract tool In the first case you just write some Java code using CLinker API You look up the native method and invoke it it s as simple as that You can also do more complex stuff like working with native memory etc With this approach you are using the Foreign Linker API and Foreign Memory API directly to do native calls and manage native memory This is not the most efficient way as this requires you to write a lot of boilerplate code and is not very scalable when working with large C headers The second option is to use jextract With jextract the entire process above can be turned into one line of code With jextract you get a pure Java API for the native program and you won t have to write any native code or touch any header files jextract generates everything using the Foreign Linker and Foreign Memory API Isn t that awesome This is the kind of FFI experience you get in languages like Go and Rust For simple native calls you can use the first approach but for complex ones the second approach is much better and scalable BenchmarkLet s run some Java Microbenchmark Harness JMH benchmarks to compare the performance of JNI and Panama API We will use the getpid function from the standard C unistd header for the comparison We will call the API using JNI and Panama APIs and compare the performance I m running the benchmark on Linux with OpenJDK early access build for Panama openjdk panama Here is the code for JNI which uses the prebuilt JavaCPP library to call the getpid function We don t have to write all the manual C binding code and rituals as the JavaCPP library already does it Benchmarkpublic int JNILinux return org bytedeco javacpp linux getpid Benchmarkpublic int JNIMac return org bytedeco javacpp macosx getpid Here is the code for Panama which uses the Foreign Linker API to call the getpid function manually get System linkerprivate static final CLinker linker CLinker systemCLinker predefine symbols and method handle infoprivate static final NativeSymbol nativeSymbol linker lookup getpid get private static final MethodHandle getPidMH linker downcallHandle nativeSymbol FunctionDescriptor of ValueLayout OfInt JAVA INT Benchmarkpublic int panamaDowncall throws Throwable return int getPidMH invokeExact With jextract you can further simplify it by generating a Java API for the header file with the below command Linuxexport C INCLUDE usr include macOSexport C INCLUDE Applications Xcode app Contents Developer Platforms MacOSX platform Developer SDKs MacOSX sdk usr includejextract source d generated src main java t org unix I C INCLUDE C INCLUDE unistd hAnd here is the code for calling the API generated by jextract Benchmarkpublic int panamaJExtract return org unix unistd h getpid This is a sample result Benchmark Mode Cnt Score Error UnitsFFIBenchmark JNI avgt ± ns opFFIBenchmark panamaDowncall avgt ± ns opFFIBenchmark panamaJExtract avgt ± ns opIt seems like using Panama API is slightly faster than JNI which is at the incubator stage so I m expecting this to become better when stable If you would like to run the benchmarks yourself follow the instructions in the readme file on the source repository So are we there yet The current state of Project Panama as of JDK is as follows Still incubatingCan already work with languages that have C interop like C C Fortran Rust etc Performance on par or better than JNI Hopefully this will be improved further jextract makes it really easy to use native libs Memory safe and less brittle than JNINative off heap memory accessDocumentation needs huge improvement It s an incubator feature so expect this to improve Learn more about Java and FFIIf you want to learn more about Java and FFI in general check out these additional resources Three Ways to Run Your Java Locally with HTTPSFive Anti Patterns with Secrets in JavaIntroducing Spring Native for JHipster Serverless Full Stack Made EasyJava Records A WebFlux and Spring Data ExampleProject Panama for NewbiesIf you liked this tutorial chances are you ll enjoy the others we publish Please follow oktadev on Twitter and subscribe to our YouTube channel to get notified when we publish new developer tutorials 2022-04-11 07:21:26
海外TECH DEV Community 3 Ways to declare variables in JavaScript: var, let, and const explained https://dev.to/anshuman_bhardwaj/3-ways-to-declare-variables-in-javascript-var-let-and-const-explained-45am Ways to declare variables in JavaScript var let and const explainedAt the time of writing this article there are only two popular ways of declaring variables in JavaScript let and const poor var is long lost in the darkness of misunderstood principles The idea behind writing this article is to try and clear up the air around why new developers are sceptical about using var and every time I ask this question in an interview all I get to hear is var is bad var makes global variables bla bla tldr var is function scoped that is it ll only be accessible in the scope of the function it s declared in let and const are block scoped that is they ll only be accessible in the scope of the block they re declared in Those who are looking for a deeper explanation should continue reading varvar has been around since the beginning of time just kidding I think even before that Some characteristics of a variable declared using varit is function scoped when defined inside one otherwise is globally scopedcan be re declared in the same scope without throwing an error even in strict mode can be re assignedcan be used before the declaration line in code although the value will be undefined console log test undefinedvar test console log test because the interpreter sees this code likevar test undefined is the default valueconsole log test undefinedtest console log test const and letThe behavior of const and let is the same other than the fact that variables declared using const cannot be re assigned Some characteristics of variables declared using const and letit is block scoped when defined inside one otherwise is globally scopedcannot be re declaredvariables declared using let can be re assigned but not constcannot be used before the declaration line in code Reference error is thrown because variables are not a given default value console log test ReferenceError Cannot access test before initializationvar test console log test ConclusionEvery tool is build for serving some purpose we should utilise for it s goodness and not just follow the herd criticising it I ll be writing another article explaining how we can best use these tools That s it for this one I hope you find this article helpful Should you have any feedback or questions please feel free to put them in the comments below For more such articles please follow me on TwitterUntil next time 2022-04-11 07:05:38
海外TECH Engadget Elon Musk won't join Twitter's board of directors after all https://www.engadget.com/elon-musk-isnt-joining-twitters-board-of-directors-after-all-072046416.html?src=rss Elon Musk won x t join Twitter x s board of directors after allElon Musk will no longer join Twitter s board of directors Twitter CEO Parag Agrawal revealed in a tweet Last week it was reported that Musk would join as a Class II director following his purchase of percent of the company s shares but he has now decided against the move nbsp quot We announced on Tuesday that Elon would be appointed to the Board contingent on a background check and formal acceptance quot said Agrawal quot Elon s appointment to the board was to become officially effective but Elon shared that same morning that he will no longer be joining the board I believe this is for the best We have and will always value input from our shareholders whether they are on our Board or not Elon is our biggest shareholder and we will remain open to his input quot Musk s Twitter stock purchase was worth billion when it was revealed by the SEC but some recent reports questioned whether he revealed his stake early enough Joining the board would have restricted Musk s purchases to percent of common stock during his tenure and for days afterward nbsp It s not clear why Musk decided not to join Twitter s board especially since he seemed to be full of ideas on how to change the social media network Most recently he tweeted out the idea of giving verification checkmarks to paid Twitter Blue subscribers and suggested that Twitter convert its San Francisco office to a homeless shelter since quot no one shows up anyway quot He also ran a poll asking users if Twitter should add an edit button and just a day later the company confirmed it would do just that nbsp Musk also recently tweeted a photo of himself smoking cannabis on the Joe Rogan podcast on Spotify in stating the next board meeting was quot going to be lit quot When his joining the board appeared imminent Agrawal offered to address any employee concerns in a Q amp A session with Musk Musk appears to have removed some of his Twitter related tweets like the poll and homeless shelter ones over the last few hours nbsp 2022-04-11 07:20:46
医療系 医療介護 CBnews 施設内療養への支援対象を拡大、厚労省-1人当たり最大30万円、7月末まで https://www.cbnews.jp/news/entry/20220411153615 人当たり 2022-04-11 16:10:00
金融 RSS FILE - 日本証券業協会 インターネット取引に係るシステム障害件数 https://www.jsda.or.jp/shiryoshitsu/toukei/inter/index.html 取引 2022-04-11 09:00:00
金融 JPX マーケットニュース [東証]監理銘柄(確認中)の指定:(株)フルスピード https://www.jpx.co.jp/news/1023/20220411-11.html 監理銘柄 2022-04-11 16:40:00
金融 日本銀行:RSS 日本銀行当座預金のマクロ加算残高にかかる基準比率の見直しについて http://www.boj.or.jp/announcements/release_2022/rel220411a.pdf 当座預金 2022-04-11 17:00:00
ニュース ジェトロ ビジネスニュース(通商弘報) FAOの3月の食料価格指数、過去最高を更新 https://www.jetro.go.jp/biznews/2022/04/afa914e3615455c9.html 過去最高 2022-04-11 07:25:00
ニュース ジェトロ ビジネスニュース(通商弘報) シンガポールの農園数と調達先が増加、食糧の安全保障の取り組み強化 https://www.jetro.go.jp/biznews/2022/04/c19296ea8f5a34e5.html 取り組み 2022-04-11 07:15:00
海外ニュース Japan Times latest articles Ukraine calls for more support as country’s east becomes focus of new Russian assault https://www.japantimes.co.jp/news/2022/04/11/world/ukraine-russia-support-east/ Ukraine calls for more support as country s east becomes focus of new Russian assaultUkrainian President Volodymyr Zelenskyy kept up his tireless campaign to generate international support and rally his countrymen warning the coming week would be important and 2022-04-11 16:49:16
ニュース BBC News - Home Covid left Queen 'tired' and Liz Carr's mask-only performance call https://www.bbc.co.uk/news/uk-61059865?at_medium=RSS&at_campaign=KARANGA coronavirus 2022-04-11 07:12:19
ニュース BBC News - Home UK economic growth slows sharply in February https://www.bbc.co.uk/news/business-61064546?at_medium=RSS&at_campaign=KARANGA expansion 2022-04-11 07:38:11
ビジネス 不景気.com 神奈川の日本茶販売「茶加藤」に破産決定、負債4億円 - 不景気.com https://www.fukeiki.com/2022/04/chakato.html 株式会社 2022-04-11 07:11:04
北海道 北海道新聞 静岡知事「能動的な対応不十分」 熱海土石流起点巡り https://www.hokkaido-np.co.jp/article/668144/ 静岡県熱海市 2022-04-11 16:32:00
北海道 北海道新聞 オリックス戦3試合は延期 新型コロナ、計9試合に https://www.hokkaido-np.co.jp/article/668142/ 日本野球機構 2022-04-11 16:28:00
北海道 北海道新聞 東証反落、終値は2万6821円 164円安、半導体関連に売り https://www.hokkaido-np.co.jp/article/668122/ 日経平均株価 2022-04-11 16:03:13
マーケティング MarkeZine WOWOWコミュニケーションズ、フリーアンサーなどのVOCからインサイトを発掘するサービスを開始 http://markezine.jp/article/detail/38760 wowow 2022-04-11 16:30:00
マーケティング MarkeZine 博報堂プロダクツ、ビジュアル化によってマーケティングコミュニケーションを変革するVXサイトを開始 http://markezine.jp/article/detail/38766 変革 2022-04-11 16:15:00
IT 週刊アスキー 学生限定で2人なら1杯の料金でもう1杯は無料! タピオカミルクティーの春水堂が「なかよしキャンペーン」4月11日~4月24日開催 https://weekly.ascii.jp/elem/000/004/088/4088940/ 限定 2022-04-11 16:40:00
IT 週刊アスキー ヤマハ、flatoneを採用した埋込型の平面スピーカーシステム「YFS」計4モデルを発売 https://weekly.ascii.jp/elem/000/004/088/4088937/ flatone 2022-04-11 16:30:00
IT 週刊アスキー ケンタッキー感謝祭でお得な1000円or1500円パックを販売 https://weekly.ascii.jp/elem/000/004/088/4088947/ 販売 2022-04-11 16:30:00
IT 週刊アスキー NICT、ドローン同士が相互に連携して直接通信するシステムを開発 https://weekly.ascii.jp/elem/000/004/088/4088939/ 位置情報 2022-04-11 16:10:00
マーケティング AdverTimes エディオン、データ漏えい7.7万件 運送管理サーバーに攻撃か https://www.advertimes.com/20220411/article381472/ 運送 2022-04-11 07:52:28
マーケティング AdverTimes テレビとデジタルが混じり合う市場へ 求められる、新たなチャレンジ https://www.advertimes.com/20220411/article381292/ tvisioninsights 2022-04-11 07:30:02
マーケティング AdverTimes 「5%以上物価が上昇」が5割 消費意識は3月も下方修正 https://www.advertimes.com/20220411/article381455/ 下方修正 2022-04-11 07:07:16
海外TECH reddit All the Japan advice out there is written by American centric perspective without consideration for a lot of English teachers from other places https://www.reddit.com/r/japanlife/comments/u11oma/all_the_japan_advice_out_there_is_written_by/ All the Japan advice out there is written by American centric perspective without consideration for a lot of English teachers from other placesAnyone else feel like this I heard all the talk before I came about how Japan has tiny house and tiny road and tiny portions etc etc I came here and it s just not true a lot of it and a lot of it is just the same as back home in many ways A tonne of house here are literally the same size as European houses it s just Americans live in mansions by comparison Also a lot of the advice about face can be applied in some contexts to the UK People don t like to go out of their way to discredit someone s political or situation it s looked down upon by everyone else around them just as bad Inside and outside face concepts in the workplace I thought were a given Do North Americans really think people show the same side in the workplace as outside The indirectness and politeness in Japan gels very well with my British culture and is very easy to get on board with Americans in my real life experience are extremely direct and take everything I say at face value and actually quite foreign to me in the way they act at times Any other Brits or Irish also AU NZ for that matter feel similar TL Dr UK and other European countries feel more similar in culture to Japan in some ways than North Americans All the advice online is America centric submitted by u strykor to r japanlife link comments 2022-04-11 07:01:15

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)